summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-29 14:03:35 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-29 14:03:35 +0100
commit81ad8ce72ce4d8937f8aa546c41913e68992f34a (patch)
tree341c3b69890426ec01f52685d7c83fd307b088cd
parent7307e1513a60b4402f4b250ada255d008e20d3e5 (diff)
make GUI useflag optional
-rw-r--r--app-portage/sisyphus/sisyphus-0.1-r3.ebuild (renamed from app-portage/sisyphus/sisyphus-0.1-r2.ebuild)25
1 files changed, 13 insertions, 12 deletions
diff --git a/app-portage/sisyphus/sisyphus-0.1-r2.ebuild b/app-portage/sisyphus/sisyphus-0.1-r3.ebuild
index 51e62551..45a92e0a 100644
--- a/app-portage/sisyphus/sisyphus-0.1-r2.ebuild
+++ b/app-portage/sisyphus/sisyphus-0.1-r3.ebuild
@@ -18,26 +18,27 @@ EGIT_COMMIT="97ac8f5f4b6f36db3a52cc6a5f72b616127b3ba2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
-IUSE=""
+IUSE="gui"
DEPEND="dev-lang/python:3.4[sqlite]"
RDEPEND="${DEPEND}
app-portage/gentoolkit[${PYTHON_USEDEP}]
- dev-python/PyQt5[designer,gui,widgets,${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
- sys-apps/portage[${PYTHON_USEDEP}]"
+ sys-apps/portage[${PYTHON_USEDEP}]
+ gui? ( dev-python/PyQt5[designer,gui,widgets,${PYTHON_USEDEP}] )"
src_install() {
default
dosym /usr/bin/${PN}-cli.py /usr/bin/${PN}
dodir /var/lib/${PN}/{csv,db}
- # don't include any graphical interface code...for now
- rm -rf ${ED}usr/bin/${PN}-gui
- rm -rf ${ED}usr/bin/${PN}-gui-pkexec
- rm -rf ${ED}usr/share/${PN}/*py
- rm -rf ${ED}usr/share/${PN}/icon
- rm -rf ${ED}usr/share/${PN}/ui
- rm -rf ${ED}usr/share/applications
- rm -rf ${ED}usr/share/pixmaps
- rm -rf ${ED}usr/share/polkit-1
+ if ! use gui; then
+ rm -rf ${ED}usr/bin/${PN}-gui
+ rm -rf ${ED}usr/bin/${PN}-gui-pkexec
+ rm -rf ${ED}usr/share/${PN}/*py
+ rm -rf ${ED}usr/share/${PN}/icon
+ rm -rf ${ED}usr/share/${PN}/ui
+ rm -rf ${ED}usr/share/applications
+ rm -rf ${ED}usr/share/pixmaps
+ rm -rf ${ED}usr/share/polkit-1
+ fi
}