|
Lines 1-6
Link Here
|
| 1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/portato-0.12.1.ebuild,v 1.2 2009/05/19 22:21:34 jokey Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
EAPI="2" |
5 |
EAPI="2" |
| 6 |
|
6 |
|
|
Lines 9-21
Link Here
|
| 9 |
|
9 |
|
| 10 |
DESCRIPTION="A GUI for Portage written in Python." |
10 |
DESCRIPTION="A GUI for Portage written in Python." |
| 11 |
HOMEPAGE="http://portato.origo.ethz.ch/" |
11 |
HOMEPAGE="http://portato.origo.ethz.ch/" |
| 12 |
SRC_URI="http://download.origo.ethz.ch/portato/1045/${P}.tar.gz" |
12 |
SRC_URI="http://download.origo.ethz.ch/portato/1376/${P}.tar.gz" |
| 13 |
|
13 |
|
| 14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
| 15 |
SLOT="0" |
15 |
SLOT="0" |
| 16 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
16 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
| 17 |
IUSE="kde +libnotify nls userpriv sqlite" |
17 |
IUSE="kde +libnotify nls userpriv sqlite" |
| 18 |
LANGS="ca de es_ES pl tr" |
18 |
LANGS="ca de es_ES pl pt_BR tr" |
| 19 |
for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done |
19 |
for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done |
| 20 |
|
20 |
|
| 21 |
RDEPEND="app-portage/portage-utils |
21 |
RDEPEND="app-portage/portage-utils |
|
Lines 37-43
Link Here
|
| 37 |
# python should be set as DEPEND in the python-eclass |
37 |
# python should be set as DEPEND in the python-eclass |
| 38 |
DEPEND="nls? ( sys-devel/gettext )" |
38 |
DEPEND="nls? ( sys-devel/gettext )" |
| 39 |
|
39 |
|
| 40 |
S="${WORKDIR}/${PN}" |
|
|
| 41 |
CONFIG_DIR="etc/${PN}" |
40 |
CONFIG_DIR="etc/${PN}" |
| 42 |
DATA_DIR="usr/share/${PN}" |
41 |
DATA_DIR="usr/share/${PN}" |
| 43 |
LOCALE_DIR="usr/share/locale" |
42 |
LOCALE_DIR="usr/share/locale" |
|
Lines 47-62
Link Here
|
| 47 |
|
46 |
|
| 48 |
src_configure () |
47 |
src_configure () |
| 49 |
{ |
48 |
{ |
| 50 |
local su="\"gksu -D 'Portato'\"" |
|
|
| 51 |
use kde && su="\"kdesu -t -d -i '%s' -c\" % APP_ICON" |
| 52 |
|
| 53 |
sed -i -e "s;^\(VERSION\s*=\s*\).*;\1\"${PV}\";" \ |
49 |
sed -i -e "s;^\(VERSION\s*=\s*\).*;\1\"${PV}\";" \ |
| 54 |
-e "s;^\(CONFIG_DIR\s*=\s*\).*;\1\"${ROOT}${CONFIG_DIR}/\";" \ |
50 |
-e "s;^\(CONFIG_DIR\s*=\s*\).*;\1\"${ROOT}${CONFIG_DIR}/\";" \ |
| 55 |
-e "s;^\(DATA_DIR\s*=\s*\).*;\1\"${ROOT}${DATA_DIR}/\";" \ |
51 |
-e "s;^\(DATA_DIR\s*=\s*\).*;\1\"${ROOT}${DATA_DIR}/\";" \ |
| 56 |
-e "s;^\(TEMPLATE_DIR\s*=\s*\).*;\1\"${ROOT}${TEMPLATE_DIR}/\";" \ |
52 |
-e "s;^\(TEMPLATE_DIR\s*=\s*\).*;\1\"${ROOT}${TEMPLATE_DIR}/\";" \ |
| 57 |
-e "s;^\(ICON_DIR\s*=\s*\).*;\1\"${ROOT}${ICON_DIR}/\";" \ |
53 |
-e "s;^\(ICON_DIR\s*=\s*\).*;\1\"${ROOT}${ICON_DIR}/\";" \ |
| 58 |
-e "s;^\(LOCALE_DIR\s*=\s*\).*;\1\"${ROOT}${LOCALE_DIR}/\";" \ |
54 |
-e "s;^\(LOCALE_DIR\s*=\s*\).*;\1\"${ROOT}${LOCALE_DIR}/\";" \ |
| 59 |
-e "s;^\(SU_COMMAND\s*=\s*\).*;\1$su;" \ |
|
|
| 60 |
"${PN}"/constants.py || die "sed failed" |
55 |
"${PN}"/constants.py || die "sed failed" |
| 61 |
|
56 |
|
| 62 |
if use userpriv; then |
57 |
if use userpriv; then |
|
Lines 95-100
Link Here
|
| 95 |
|
90 |
|
| 96 |
# nls |
91 |
# nls |
| 97 |
use nls && domo i18n/mo/* |
92 |
use nls && domo i18n/mo/* |
|
|
93 |
|
| 94 |
# man page |
| 95 |
doman portato.1 |
| 98 |
} |
96 |
} |
| 99 |
|
97 |
|
| 100 |
pkg_postinst () |
98 |
pkg_postinst () |