diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-23 04:19:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-23 04:19:44 +0000 |
commit | c5283d322accc6097afec74eab24550829788bab (patch) | |
tree | b99ce668128d82a026eaa31461643f9173f9b77b /app-portage/porthole/porthole-0.6.1-r5.ebuild | |
parent | 5510d9d7d1c93c2ea71a2bd6f0666168808d5dd6 (diff) |
gentoo resync : 23.03.2018
Diffstat (limited to 'app-portage/porthole/porthole-0.6.1-r5.ebuild')
-rw-r--r-- | app-portage/porthole/porthole-0.6.1-r5.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/app-portage/porthole/porthole-0.6.1-r5.ebuild b/app-portage/porthole/porthole-0.6.1-r5.ebuild new file mode 100644 index 000000000000..4c439daffb48 --- /dev/null +++ b/app-portage/porthole/porthole-0.6.1-r5.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PYTHON_COMPAT=(python2_7) +PYTHON_REQ_USE="threads(+),xml(+)" + +inherit distutils-r1 eutils + +DESCRIPTION="A GTK+-based frontend to Portage" +HOMEPAGE="http://porthole.sourceforge.net" +SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ppc ~ppc64 sparc x86 ~x86-fbsd" +IUSE="nls" +LANGS="de pl ru vi it fr tr" + +RDEPEND=" + || ( + >=sys-apps/portage-2.1[${PYTHON_USEDEP}] + sys-apps/portage-mgorny[${PYTHON_USEDEP}] + ) + dev-python/pygtk:2[${PYTHON_USEDEP}] + gnome-base/libglade:2.0 + dev-python/pygtksourceview:2[${PYTHON_USEDEP}] + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( >=sys-devel/gettext-0.14 )" + +PATCHES=( + "${FILESDIR}/${P}-masking_status.patch" # bug 307037 + "${FILESDIR}/${P}-missing_import.patch" # bug 323179 + "${FILESDIR}/${P}-missing-attribute.patch" #bug 323179 +) + +src_compile(){ + # Compile localizations if necessary + if use nls ; then + cd scripts + ./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed" + fi +} + +python_install_all() { + distutils-r1_python_install_all + + dodoc TODO README NEWS AUTHORS + + keepdir /var/log/porthole + fperms g+w /var/log/porthole + keepdir /var/db/porthole + fperms g+w /var/db/porthole + + # nls + if use nls; then + # mo directory doesn't exists with nls enabled and unsupported LINGUAS + [[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/* + fi +} + +pkg_preinst() { + chgrp portage "${D}"/var/log/porthole + chgrp portage "${D}"/var/db/porthole +} + +pkg_postinst() { + einfo + einfo "Porthole has updated the way that the upgrades are sent to emerge." + einfo "In this new way the user needs to set any 'Settings' menu emerge options" + einfo "Porthole automatically adds '--oneshot' for all upgrades selections" + einfo "Other options recommended are '--noreplace' along with '--update'" + einfo "They allow for portage to skip any packages that might have already" + einfo "been upgraded as a dependency of another previously upgraded package" + einfo +} |