mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
www-client/vimb: use same template for 9999
Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
@@ -5,11 +5,16 @@ EAPI=7
|
|||||||
|
|
||||||
inherit savedconfig optfeature
|
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/"
|
HOMEPAGE="https://fanglingsu.github.io/vimb/"
|
||||||
|
|
||||||
KEYWORDS="~amd64"
|
if [[ ${PV} == 9999 ]]; then
|
||||||
SRC_URI="https://github.com/fanglingsu/vimb/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
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"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
@@ -19,7 +24,6 @@ DEPEND="
|
|||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
adblock? ( www-misc/wyebadblock )
|
adblock? ( www-misc/wyebadblock )
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
x11-libs/gtk+:3
|
x11-libs/gtk+:3
|
||||||
>=net-libs/webkit-gtk-2.20.0:4
|
>=net-libs/webkit-gtk-2.20.0:4
|
||||||
@@ -31,11 +35,11 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
emake V=1 PREFIX="/usr"
|
emake PREFIX="/usr"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake V=1 PREFIX="/usr" DESTDIR="${D}" install
|
emake PREFIX="/usr" DESTDIR="${D}" install
|
||||||
save_config src/config.def.h
|
save_config src/config.def.h
|
||||||
use adblock && dosym /usr/lib/wyebrowser/adblock.so /usr/lib/vimb/adblock.so
|
use adblock && dosym /usr/lib/wyebrowser/adblock.so /usr/lib/vimb/adblock.so
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,23 +3,27 @@
|
|||||||
|
|
||||||
EAPI=7
|
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/"
|
HOMEPAGE="https://fanglingsu.github.io/vimb/"
|
||||||
|
|
||||||
inherit git-r3
|
if [[ ${PV} == 9999 ]]; then
|
||||||
KEYWORDS=""
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/fanglingsu/vimb.git"
|
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"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="savedconfig"
|
IUSE="savedconfig adblock"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
|
adblock? ( www-misc/wyebadblock )
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
x11-libs/gtk+:3
|
x11-libs/gtk+:3
|
||||||
>=net-libs/webkit-gtk-2.20.0:4
|
>=net-libs/webkit-gtk-2.20.0:4
|
||||||
@@ -31,10 +35,15 @@ src_prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
emake V=1 PREFIX="/usr"
|
emake PREFIX="/usr"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake V=1 PREFIX="/usr" DESTDIR="${D}" install
|
emake PREFIX="/usr" DESTDIR="${D}" install
|
||||||
save_config src/config.def.h
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user