From 81ad8ce72ce4d8937f8aa546c41913e68992f34a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 29 Jun 2017 14:03:35 +0100 Subject: make GUI useflag optional --- app-portage/sisyphus/sisyphus-0.1-r2.ebuild | 43 ---------------------------- app-portage/sisyphus/sisyphus-0.1-r3.ebuild | 44 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 43 deletions(-) delete mode 100644 app-portage/sisyphus/sisyphus-0.1-r2.ebuild create mode 100644 app-portage/sisyphus/sisyphus-0.1-r3.ebuild diff --git a/app-portage/sisyphus/sisyphus-0.1-r2.ebuild b/app-portage/sisyphus/sisyphus-0.1-r2.ebuild deleted file mode 100644 index 51e62551..00000000 --- a/app-portage/sisyphus/sisyphus-0.1-r2.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -PYTHON_COMPAT=( python3_4 ) - -inherit eutils git-r3 python-r1 - -DESCRIPTION="A simple portage python wrapper which works like other package managers(apt-get/yum/dnf)" -HOMEPAGE="http://redcorelinux.org" - -EGIT_BRANCH=master -EGIT_REPO_URI="https://gitlab.com/redcore/sisyphus.git" -EGIT_COMMIT="97ac8f5f4b6f36db3a52cc6a5f72b616127b3ba2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="" - -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}]" - -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 -} diff --git a/app-portage/sisyphus/sisyphus-0.1-r3.ebuild b/app-portage/sisyphus/sisyphus-0.1-r3.ebuild new file mode 100644 index 00000000..45a92e0a --- /dev/null +++ b/app-portage/sisyphus/sisyphus-0.1-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python3_4 ) + +inherit eutils git-r3 python-r1 + +DESCRIPTION="A simple portage python wrapper which works like other package managers(apt-get/yum/dnf)" +HOMEPAGE="http://redcorelinux.org" + +EGIT_BRANCH=master +EGIT_REPO_URI="https://gitlab.com/redcore/sisyphus.git" +EGIT_COMMIT="97ac8f5f4b6f36db3a52cc6a5f72b616127b3ba2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="gui" + +DEPEND="dev-lang/python:3.4[sqlite]" +RDEPEND="${DEPEND} + app-portage/gentoolkit[${PYTHON_USEDEP}] + dev-python/urllib3[${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} + 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 +} -- cgit v1.2.3