From b6aeada044ccfcd56cb3959216cf0870893982d6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 6 May 2018 20:13:48 +0100 Subject: app-portage/sisyphus : revision bump --- .../30fb816f2482fd06a60b557de5bf7cf6e8212d2a.patch | 13 +++++ app-portage/sisyphus/sisyphus-1.1805-r1.ebuild | 62 ++++++++++++++++++++++ app-portage/sisyphus/sisyphus-1.1805.ebuild | 60 --------------------- 3 files changed, 75 insertions(+), 60 deletions(-) create mode 100644 app-portage/sisyphus/files/30fb816f2482fd06a60b557de5bf7cf6e8212d2a.patch create mode 100644 app-portage/sisyphus/sisyphus-1.1805-r1.ebuild delete mode 100644 app-portage/sisyphus/sisyphus-1.1805.ebuild diff --git a/app-portage/sisyphus/files/30fb816f2482fd06a60b557de5bf7cf6e8212d2a.patch b/app-portage/sisyphus/files/30fb816f2482fd06a60b557de5bf7cf6e8212d2a.patch new file mode 100644 index 00000000..4f65edbb --- /dev/null +++ b/app-portage/sisyphus/files/30fb816f2482fd06a60b557de5bf7cf6e8212d2a.patch @@ -0,0 +1,13 @@ +diff --git a/src/helpers/make_local_csv b/src/helpers/make_local_csv +index 91e00bb..fadc41e 100755 +--- a/src/helpers/make_local_csv ++++ b/src/helpers/make_local_csv +@@ -1,7 +1,7 @@ + #!/usr/bin/env bash + + makecsv() { +- qlist -ICScv|sed -e "s/\//\,/" -e "s/[\t ]/\,/" -e "s/\:/\,/" >> /tmp/localPackagesPre.csv ++ qlist -ICSv|sed -e "s/\//\,/" -e "s/[\t ]/\,/" -e "s/\:/\,/" >> /tmp/localPackagesPre.csv + mv /tmp/localPackagesPre.csv /var/lib/sisyphus/csv/ + } + diff --git a/app-portage/sisyphus/sisyphus-1.1805-r1.ebuild b/app-portage/sisyphus/sisyphus-1.1805-r1.ebuild new file mode 100644 index 00000000..1ebe7f8b --- /dev/null +++ b/app-portage/sisyphus/sisyphus-1.1805-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 2016-2017 Redcore Linux Project +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{4,5,6} ) + +inherit eutils python-r1 + +DESCRIPTION="A simple portage python wrapper which works like other package managers(apt-get/yum/dnf)" +HOMEPAGE="http://redcorelinux.org" +SRC_URI="https://github.com/redcorelinux/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="+gui" + +PATCHES=( "${FILESDIR}"/30fb816f2482fd06a60b557de5bf7cf6e8212d2a.patch ) + +DEPEND="dev-lang/python[sqlite]" +RDEPEND="${DEPEND} + app-portage/gentoolkit[${PYTHON_USEDEP}] + dev-python/animation[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + sys-apps/portage[${PYTHON_USEDEP}] + gui? ( dev-python/PyQt5[designer,gui,widgets,${PYTHON_USEDEP}] sys-apps/gentoo-functions )" + +src_install() { + default + + inject_libsisyphus() { + # FIXME, ugly hack + python_moduleinto "$(python_get_sitedir)/.." + python_domodule src/backend/libsisyphus.py + rm -rf ${D}$(python_get_sitedir) + } + + python_foreach_impl inject_libsisyphus + + dosym /usr/share/${PN}/${PN}-cli.py /usr/bin/${PN} + dodir var/lib/${PN}/{csv,db} + + dodir etc/${PN} + insinto etc/${PN} + doins ${FILESDIR}/mirrors.conf + + 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}/${PN}-gui.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 +} + +pkg_postinst() { + sisyphus rescue +} diff --git a/app-portage/sisyphus/sisyphus-1.1805.ebuild b/app-portage/sisyphus/sisyphus-1.1805.ebuild deleted file mode 100644 index caa492df..00000000 --- a/app-portage/sisyphus/sisyphus-1.1805.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2016-2017 Redcore Linux Project -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{4,5,6} ) - -inherit eutils python-r1 - -DESCRIPTION="A simple portage python wrapper which works like other package managers(apt-get/yum/dnf)" -HOMEPAGE="http://redcorelinux.org" -SRC_URI="https://github.com/redcorelinux/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="+gui" - -DEPEND="dev-lang/python[sqlite]" -RDEPEND="${DEPEND} - app-portage/gentoolkit[${PYTHON_USEDEP}] - dev-python/animation[${PYTHON_USEDEP}] - dev-python/python-dateutil[${PYTHON_USEDEP}] - dev-python/urllib3[${PYTHON_USEDEP}] - sys-apps/portage[${PYTHON_USEDEP}] - gui? ( dev-python/PyQt5[designer,gui,widgets,${PYTHON_USEDEP}] sys-apps/gentoo-functions )" - -src_install() { - default - - inject_libsisyphus() { - # FIXME, ugly hack - python_moduleinto "$(python_get_sitedir)/.." - python_domodule src/backend/libsisyphus.py - rm -rf ${D}$(python_get_sitedir) - } - - python_foreach_impl inject_libsisyphus - - dosym /usr/share/${PN}/${PN}-cli.py /usr/bin/${PN} - dodir var/lib/${PN}/{csv,db} - - dodir etc/${PN} - insinto etc/${PN} - doins ${FILESDIR}/mirrors.conf - - 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}/${PN}-gui.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 -} - -pkg_postinst() { - sisyphus rescue -} -- cgit v1.2.3