diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-09-01 11:00:13 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-09-01 11:00:13 +0000 |
commit | 6fd1e05bc678b5e9cc256e35b6814380be2f60dd (patch) | |
tree | 58b66135ed85d4ca27e072bae2a59eeee69c7550 /app-portage | |
parent | Bump to 3.0.6, fixes #283001 (diff) | |
download | gentoo-2-6fd1e05bc678b5e9cc256e35b6814380be2f60dd.tar.gz gentoo-2-6fd1e05bc678b5e9cc256e35b6814380be2f60dd.tar.bz2 gentoo-2-6fd1e05bc678b5e9cc256e35b6814380be2f60dd.zip |
Bump to 0.13. Ebuild patches by Rene Neumann. Closes #283071
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/portato/ChangeLog | 7 | ||||
-rw-r--r-- | app-portage/portato/portato-0.13.ebuild | 112 |
2 files changed, 118 insertions, 1 deletions
diff --git a/app-portage/portato/ChangeLog b/app-portage/portato/ChangeLog index 23e6be4421be..c7adac5b417f 100644 --- a/app-portage/portato/ChangeLog +++ b/app-portage/portato/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-portage/portato # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.17 2009/05/19 22:21:34 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.18 2009/09/01 11:00:13 patrick Exp $ + +*portato-0.13 (01 Sep 2009) + + 01 Sep 2009; Patrick Lauer <patrick@gentoo.org> +portato-0.13.ebuild: + Bump to 0.13. Ebuild patches by Rene Neumann. Closes #283071 19 May 2009; Markus Ullmann <jokey@gentoo.org> portato-0.12.1.ebuild: Fix dep for bug #267182 diff --git a/app-portage/portato/portato-0.13.ebuild b/app-portage/portato/portato-0.13.ebuild new file mode 100644 index 000000000000..34dfed96f569 --- /dev/null +++ b/app-portage/portato/portato-0.13.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/portato-0.13.ebuild,v 1.1 2009/09/01 11:00:13 patrick Exp $ + +EAPI="2" + +NEED_PYTHON="2.5" +inherit python eutils distutils + +DESCRIPTION="A GUI for Portage written in Python." +HOMEPAGE="http://portato.origo.ethz.ch/" +SRC_URI="http://download.origo.ethz.ch/portato/1376/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="kde +libnotify nls userpriv sqlite" +LANGS="ca de es_ES pl pt_BR tr" +for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done + +RDEPEND="app-portage/portage-utils + x11-libs/vte[python] + >=dev-lang/python-2.5[sqlite?,threads] + dev-python/pygtksourceview:2 + >=dev-python/pygtk-2.14.0 + >=sys-apps/portage-2.1.6 + + !userpriv? ( + dev-python/shm + kde? ( || ( kde-base/kdesu kde-base/kdebase ) ) + !kde? ( || ( x11-misc/ktsuss x11-libs/gksu ) ) ) + + libnotify? ( dev-python/notify-python ) + nls? ( virtual/libintl )" + +# only needs gettext as build dependency +# python should be set as DEPEND in the python-eclass +DEPEND="nls? ( sys-devel/gettext )" + +CONFIG_DIR="etc/${PN}" +DATA_DIR="usr/share/${PN}" +LOCALE_DIR="usr/share/locale" +PLUGIN_DIR="${DATA_DIR}/plugins" +ICON_DIR="${DATA_DIR}/icons" +TEMPLATE_DIR="${DATA_DIR}/templates" + +src_configure () +{ + sed -i -e "s;^\(VERSION\s*=\s*\).*;\1\"${PV}\";" \ + -e "s;^\(CONFIG_DIR\s*=\s*\).*;\1\"${ROOT}${CONFIG_DIR}/\";" \ + -e "s;^\(DATA_DIR\s*=\s*\).*;\1\"${ROOT}${DATA_DIR}/\";" \ + -e "s;^\(TEMPLATE_DIR\s*=\s*\).*;\1\"${ROOT}${TEMPLATE_DIR}/\";" \ + -e "s;^\(ICON_DIR\s*=\s*\).*;\1\"${ROOT}${ICON_DIR}/\";" \ + -e "s;^\(LOCALE_DIR\s*=\s*\).*;\1\"${ROOT}${LOCALE_DIR}/\";" \ + "${PN}"/constants.py || die "sed failed" + + if use userpriv; then + sed -i -e "s/Exec=.*/Exec=portato --no-fork/" portato.desktop || die "sed failed" + fi +} + +src_compile () +{ + if use nls; then + ./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed" + fi + + distutils_src_compile +} + +src_install () +{ + dodir ${DATA_DIR} || die + + distutils_src_install + + newbin portato.py portato || die + dodoc doc/* + + # config + insinto ${CONFIG_DIR} + doins etc/* || die + + # plugins + insinto ${PLUGIN_DIR} + + # desktop + doicon icons/portato-icon.png || die + domenu portato.desktop || die + + # nls + use nls && domo i18n/mo/* + + # man page + doman portato.1 +} + +pkg_postinst () +{ + distutils_pkg_postinst + python_mod_optimize "/${PLUGIN_DIR}" +} + +pkg_postrm () +{ + distutils_pkg_postrm + python_mod_cleanup "/${PLUGIN_DIR}" + + # try to remove the DATA_DIR, because it may still reside there, as it was tried + # to remove it before plugin stuff was purged + rmdir "${ROOT}"${DATA_DIR} 2> /dev/null +} |