summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-20 11:44:29 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-20 11:44:39 -0400
commit83fea39722d9a5a51a8643dba2a946e74b0b2560 (patch)
treeecced9d9f1f9083b02e477ef0205e37d5d8f31f3 /sys-apps/lshw
parentsys-apps/lshw: switch to l10n eclass to handle locales (diff)
downloadgentoo-83fea39722d9a5a51a8643dba2a946e74b0b2560.tar.gz
gentoo-83fea39722d9a5a51a8643dba2a946e74b0b2560.tar.bz2
gentoo-83fea39722d9a5a51a8643dba2a946e74b0b2560.zip
sys-apps/lshw: leverage usex to simplify code a bit
Diffstat (limited to 'sys-apps/lshw')
-rw-r--r--sys-apps/lshw/lshw-02.17b-r2.ebuild10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys-apps/lshw/lshw-02.17b-r2.ebuild b/sys-apps/lshw/lshw-02.17b-r2.ebuild
index bf6c99921945..1318e279305d 100644
--- a/sys-apps/lshw/lshw-02.17b-r2.ebuild
+++ b/sys-apps/lshw/lshw-02.17b-r2.ebuild
@@ -50,19 +50,13 @@ src_compile() {
tc-export CC CXX AR
use static && append-ldflags -static
- local sqlite=$(usex sqlite 1 0)
-
- emake SQLITE=$sqlite all
- if use gtk ; then
- emake SQLITE=$sqlite gui
- fi
+ emake SQLITE=$(usex sqlite 1 0) all $(usex gtk 'gui' '')
}
src_install() {
- emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install $(usex gtk 'install-gui' '')
dodoc README docs/*
if use gtk ; then
- emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui
make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg"
fi
}