diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-02-04 09:52:16 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-02-04 09:52:55 +0100 |
commit | c9c4edea07ac15e9742774b877a200f67cae899a (patch) | |
tree | 221dd78c521c864790da05d56ddbfcdd79c538a3 /net-misc/packETH/packETH-2.1.ebuild | |
parent | sci-geosciences/qgis: x86 stable wrt bug #707010 (diff) | |
download | gentoo-c9c4edea07ac15e9742774b877a200f67cae899a.tar.gz gentoo-c9c4edea07ac15e9742774b877a200f67cae899a.tar.bz2 gentoo-c9c4edea07ac15e9742774b877a200f67cae899a.zip |
net-misc/packETH: Add USE="cli gtk"
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Closes: https://bugs.gentoo.org/708190
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-misc/packETH/packETH-2.1.ebuild')
-rw-r--r-- | net-misc/packETH/packETH-2.1.ebuild | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/net-misc/packETH/packETH-2.1.ebuild b/net-misc/packETH/packETH-2.1.ebuild index be593baac9e6..1bfcc33114eb 100644 --- a/net-misc/packETH/packETH-2.1.ebuild +++ b/net-misc/packETH/packETH-2.1.ebuild @@ -11,15 +11,21 @@ SRC_URI="https://github.com/jemcek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" +IUSE="cli +gtk" +REQUIRED_USE=" + || ( cli gtk ) +" RDEPEND=" - dev-libs/glib:2 - x11-libs/gdk-pixbuf - x11-libs/gtk+:2 + gtk? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + ) " DEPEND=" - virtual/pkgconfig ${RDEPEND} + gtk? ( virtual/pkgconfig ) " PATCHES=( "${FILESDIR}"/${PN}-1.8.1-libs-and-flags.patch @@ -29,5 +35,24 @@ DOCS=( AUTHORS CHANGELOG README ) src_prepare() { default - eautoreconf + use gtk && eautoreconf +} + +src_configure() { + use gtk && default +} + +src_compile() { + use gtk && default + use cli && emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli +} + +src_install() { + use gtk && default + + if use cli; then + dobin cli/${PN}cli + local i + for i in NEWS README TODO; do newdoc cli/${i} ${i}.cli; done + fi } |