aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfe İzbudak <efe.izbudak@metu.edu.tr>2023-07-13 08:59:51 -0400
committerEfe İzbudak <efe.izbudak@metu.edu.tr>2023-07-13 16:22:42 +0300
commit3ec1c1f6648002d9ccb48ec5a3778d8aa5ff8cc3 (patch)
tree357d02e4f5944d63c33449dc70b860bc0829fd70 /www-client
parentdev-python/pygdbmi: add missing dependency (diff)
downloadguru-3ec1c1f6648002d9ccb48ec5a3778d8aa5ff8cc3.tar.gz
guru-3ec1c1f6648002d9ccb48ec5a3778d8aa5ff8cc3.tar.bz2
guru-3ec1c1f6648002d9ccb48ec5a3778d8aa5ff8cc3.zip
www-client/vimb: use same template for 9999
Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vimb/vimb-3.6.0.ebuild16
-rw-r--r--www-client/vimb/vimb-9999.ebuild27
2 files changed, 28 insertions, 15 deletions
diff --git a/www-client/vimb/vimb-3.6.0.ebuild b/www-client/vimb/vimb-3.6.0.ebuild
index 177a0dd03..6ef548506 100644
--- a/www-client/vimb/vimb-3.6.0.ebuild
+++ b/www-client/vimb/vimb-3.6.0.ebuild
@@ -5,11 +5,16 @@ EAPI=7
inherit savedconfig optfeature
-DESCRIPTION="a fast, lightweight, vim-like browser based on webkit"
+DESCRIPTION="A fast, lightweight, vim-like browser based on webkit"
HOMEPAGE="https://fanglingsu.github.io/vimb/"
-KEYWORDS="~amd64"
-SRC_URI="https://github.com/fanglingsu/vimb/archive/${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/fanglingsu/vimb.git"
+else
+ SRC_URI="https://github.com/fanglingsu/vimb/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
LICENSE="GPL-3"
SLOT="0"
@@ -19,7 +24,6 @@ DEPEND="
virtual/pkgconfig
adblock? ( www-misc/wyebadblock )
"
-
RDEPEND="
x11-libs/gtk+:3
>=net-libs/webkit-gtk-2.20.0:4
@@ -31,11 +35,11 @@ src_prepare() {
}
src_compile() {
- emake V=1 PREFIX="/usr"
+ emake PREFIX="/usr"
}
src_install() {
- emake V=1 PREFIX="/usr" DESTDIR="${D}" install
+ emake PREFIX="/usr" DESTDIR="${D}" install
save_config src/config.def.h
use adblock && dosym /usr/lib/wyebrowser/adblock.so /usr/lib/vimb/adblock.so
}
diff --git a/www-client/vimb/vimb-9999.ebuild b/www-client/vimb/vimb-9999.ebuild
index e0dd30cea..6ef548506 100644
--- a/www-client/vimb/vimb-9999.ebuild
+++ b/www-client/vimb/vimb-9999.ebuild
@@ -3,23 +3,27 @@
EAPI=7
-inherit savedconfig
+inherit savedconfig optfeature
-DESCRIPTION="a fast, lightweight, vim-like browser based on webkit"
+DESCRIPTION="A fast, lightweight, vim-like browser based on webkit"
HOMEPAGE="https://fanglingsu.github.io/vimb/"
-inherit git-r3
-KEYWORDS=""
-EGIT_REPO_URI="https://github.com/fanglingsu/vimb.git"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/fanglingsu/vimb.git"
+else
+ SRC_URI="https://github.com/fanglingsu/vimb/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+fi
LICENSE="GPL-3"
SLOT="0"
-IUSE="savedconfig"
+IUSE="savedconfig adblock"
DEPEND="
virtual/pkgconfig
+ adblock? ( www-misc/wyebadblock )
"
-
RDEPEND="
x11-libs/gtk+:3
>=net-libs/webkit-gtk-2.20.0:4
@@ -31,10 +35,15 @@ src_prepare() {
}
src_compile() {
- emake V=1 PREFIX="/usr"
+ emake PREFIX="/usr"
}
src_install() {
- emake V=1 PREFIX="/usr" DESTDIR="${D}" install
+ emake PREFIX="/usr" DESTDIR="${D}" install
save_config src/config.def.h
+ use adblock && dosym /usr/lib/wyebrowser/adblock.so /usr/lib/vimb/adblock.so
+}
+
+pkg_postinst() {
+ optfeature "media decoding support" media-plugins/gst-plugins-libav media-libs/gst-plugins-good
}