summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2008-04-21 18:30:34 +0000
committerMarkus Ullmann <jokey@gentoo.org>2008-04-21 18:30:34 +0000
commitdf2c0713cfb4d9ff9bc0b6d355383510cf777716 (patch)
tree9871fe7312130733e7954bd3ed251da090d36e13 /app-portage
parentAdd ~alpha/~ia64/~sparc (diff)
downloadgentoo-2-df2c0713cfb4d9ff9bc0b6d355383510cf777716.tar.gz
gentoo-2-df2c0713cfb4d9ff9bc0b6d355383510cf777716.tar.bz2
gentoo-2-df2c0713cfb4d9ff9bc0b6d355383510cf777716.zip
(Proxy commit) Version Bump
(Portage version: 2.1.5_rc5)
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/portato/ChangeLog7
-rw-r--r--app-portage/portato/portato-0.10.ebuild107
2 files changed, 113 insertions, 1 deletions
diff --git a/app-portage/portato/ChangeLog b/app-portage/portato/ChangeLog
index f7c25cb82406..ea1173326274 100644
--- a/app-portage/portato/ChangeLog
+++ b/app-portage/portato/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-portage/portato
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.5 2008/03/03 18:16:52 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.6 2008/04/21 18:30:34 jokey Exp $
+
+*portato-0.10 (21 Apr 2008)
+
+ 21 Apr 2008; Markus Ullmann <jokey@gentoo.org> +portato-0.10.ebuild:
+ (Proxy commit) Version Bump
*portato-0.9.0.2 (03 Mar 2008)
diff --git a/app-portage/portato/portato-0.10.ebuild b/app-portage/portato/portato-0.10.ebuild
new file mode 100644
index 000000000000..ba22c410491e
--- /dev/null
+++ b/app-portage/portato/portato-0.10.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/portato-0.10.ebuild,v 1.1 2008/04/21 18:30:34 jokey Exp $
+
+EAPI=1
+
+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/506/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="etc-proposals kde +libnotify nls userpriv"
+LANGS="ca de pl tr"
+for LANG in $LANGS; do IUSE="${IUSE} linguas_${LANG}"; done
+
+RDEPEND="x11-libs/vte
+ gnome-base/libglade
+ dev-python/pygtksourceview:2
+ app-portage/portage-utils
+ =dev-python/lxml-1.3.6
+ >=dev-python/pygtk-2.12.0
+ >=sys-apps/portage-2.1.2 <sys-apps/portage-2.2
+
+ !userpriv? (
+ kde? ( || ( kde-base/kdesu kde-base/kdebase ) )
+ !kde? ( x11-libs/gksu ) )
+
+ libnotify? ( dev-python/notify-python )
+ nls? ( virtual/libintl )
+ etc-proposals? ( app-portage/etc-proposals )"
+
+# only needs gettext as build dependency
+# python should be set as DEPEND in the python-eclass
+DEPEND="nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${PN}"
+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"
+
+pkg_setup ()
+{
+ if ! built_with_use x11-libs/vte python; then
+ echo
+ eerror "x11-libs/vte has not been built with python support."
+ eerror "Please re-emerge vte with the python use-flag enabled."
+ die "missing python flag for x11-libs/vte"
+ fi
+}
+
+src_compile ()
+{
+ cd "${S}"
+
+ local su="\"gksu -D 'Portato'\""
+ use kde && su="\"kdesu -t -d -i %s --nonewdcop -c\" % APP_ICON"
+
+ 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}\";" \
+ -e "s;^\(SU_COMMAND\s*=\s*\).*;\1${su};" \
+ -e "s;^\(USE_CATAPULT\s*=\s*\).*;\1False;" \
+ "${PN}"/constants.py
+
+ use userpriv && sed -i -e "s/Exec=.*/Exec=portato --no-listener/" portato.desktop
+ use nls && ./pocompile.sh -emerge ${LINGUAS}
+
+ distutils_src_compile
+}
+
+src_install ()
+{
+ dodir ${DATA_DIR}
+ distutils_src_install
+
+ newbin portato.py portato
+ dodoc doc/*
+
+ # config
+ insinto ${CONFIG_DIR}
+ doins etc/*
+
+ # plugins
+ insinto ${PLUGIN_DIR}
+ keepdir ${PLUGIN_DIR}
+
+ use etc-proposals && doins plugins/etc_proposals.xml
+ use libnotify && doins plugins/notify.xml
+
+ # desktop
+ doicon icons/portato-icon.png
+ domenu portato.desktop
+
+ # nls
+ use nls && domo i18n/mo/*
+}