1 |
jokey 08/08/01 21:12:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: portato-0.11.ebuild |
5 |
Log: |
6 |
Version bump per necoro's request |
7 |
(Portage version: 2.2_rc4/cvs/Linux 2.6.26-gentoo i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.10 app-portage/portato/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/ChangeLog?rev=1.10&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/ChangeLog?rev=1.10&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/ChangeLog?r1=1.9&r2=1.10 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v |
19 |
retrieving revision 1.9 |
20 |
retrieving revision 1.10 |
21 |
diff -u -r1.9 -r1.10 |
22 |
--- ChangeLog 8 Jun 2008 18:04:19 -0000 1.9 |
23 |
+++ ChangeLog 1 Aug 2008 21:12:13 -0000 1.10 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for app-portage/portato |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.9 2008/06/08 18:04:19 jokey Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.10 2008/08/01 21:12:13 jokey Exp $ |
29 |
+ |
30 |
+*portato-0.11 (01 Aug 2008) |
31 |
+ |
32 |
+ 01 Aug 2008; Markus Ullmann <jokey@g.o> +portato-0.11.ebuild: |
33 |
+ Version bump per necoro's request |
34 |
|
35 |
08 Jun 2008; Markus Ullmann <jokey@g.o> metadata.xml: |
36 |
Update metadata |
37 |
|
38 |
|
39 |
|
40 |
1.1 app-portage/portato/portato-0.11.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/portato-0.11.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/portato-0.11.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: portato-0.11.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/portato-0.11.ebuild,v 1.1 2008/08/01 21:12:13 jokey Exp $ |
50 |
|
51 |
EAPI=1 |
52 |
|
53 |
NEED_PYTHON="2.5" |
54 |
inherit python eutils distutils |
55 |
|
56 |
DESCRIPTION="A GUI for Portage written in Python." |
57 |
HOMEPAGE="http://portato.origo.ethz.ch/" |
58 |
SRC_URI="http://download.origo.ethz.ch/portato/733/${P}.tar.gz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~x86" |
63 |
IUSE="kde +libnotify nls userpriv" |
64 |
LANGS="ca de pl tr" |
65 |
for LANG in $LANGS; do IUSE="${IUSE} linguas_${LANG}"; done |
66 |
|
67 |
RDEPEND="app-portage/portage-utils |
68 |
x11-libs/vte |
69 |
gnome-base/libglade |
70 |
dev-python/pygtksourceview:2 |
71 |
>=dev-python/pygtk-2.12.0 |
72 |
>=sys-apps/portage-2.1.2 |
73 |
|
74 |
!userpriv? ( |
75 |
dev-python/shm |
76 |
kde? ( || ( kde-base/kdesu kde-base/kdebase ) ) |
77 |
!kde? ( x11-libs/gksu ) ) |
78 |
|
79 |
libnotify? ( dev-python/notify-python ) |
80 |
nls? ( virtual/libintl )" |
81 |
|
82 |
# only needs gettext as build dependency |
83 |
# python should be set as DEPEND in the python-eclass |
84 |
DEPEND="nls? ( sys-devel/gettext )" |
85 |
|
86 |
S="${WORKDIR}/${PN}" |
87 |
CONFIG_DIR="etc/${PN}" |
88 |
DATA_DIR="usr/share/${PN}" |
89 |
LOCALE_DIR="usr/share/locale" |
90 |
PLUGIN_DIR="${DATA_DIR}/plugins" |
91 |
ICON_DIR="${DATA_DIR}/icons" |
92 |
TEMPLATE_DIR="${DATA_DIR}/templates" |
93 |
|
94 |
pkg_setup () |
95 |
{ |
96 |
if ! built_with_use x11-libs/vte python; then |
97 |
echo |
98 |
eerror "x11-libs/vte has not been built with python support." |
99 |
eerror "Please re-emerge vte with the python use-flag enabled." |
100 |
die "missing python flag for x11-libs/vte" |
101 |
fi |
102 |
} |
103 |
|
104 |
src_compile () |
105 |
{ |
106 |
local su="\"gksu -D 'Portato'\"" |
107 |
use kde && su="\"kdesu -t -d -i '%s' --nonewdcop -c\" % APP_ICON" |
108 |
|
109 |
sed -i -e "s;^\(VERSION\s*=\s*\).*;\1\"${PV}\";" \ |
110 |
-e "s;^\(CONFIG_DIR\s*=\s*\).*;\1\"${ROOT}${CONFIG_DIR}/\";" \ |
111 |
-e "s;^\(DATA_DIR\s*=\s*\).*;\1\"${ROOT}${DATA_DIR}/\";" \ |
112 |
-e "s;^\(TEMPLATE_DIR\s*=\s*\).*;\1\"${ROOT}${TEMPLATE_DIR}/\";" \ |
113 |
-e "s;^\(ICON_DIR\s*=\s*\).*;\1\"${ROOT}${ICON_DIR}/\";" \ |
114 |
-e "s;^\(LOCALE_DIR\s*=\s*\).*;\1\"${ROOT}${LOCALE_DIR}/\";" \ |
115 |
-e "s;^\(SU_COMMAND\s*=\s*\).*;\1$su;" \ |
116 |
"${PN}"/constants.py || die "sed failed" |
117 |
|
118 |
if use userpriv; then |
119 |
sed -i -e "s/Exec=.*/Exec=portato --no-fork/" portato.desktop || die "sed failed" |
120 |
fi |
121 |
|
122 |
if use nls; then |
123 |
./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed" |
124 |
fi |
125 |
|
126 |
distutils_src_compile |
127 |
} |
128 |
|
129 |
src_install () |
130 |
{ |
131 |
dodir ${DATA_DIR} || die |
132 |
distutils_src_install |
133 |
|
134 |
newbin portato.py portato || die |
135 |
dodoc doc/* |
136 |
|
137 |
# config |
138 |
insinto ${CONFIG_DIR} |
139 |
doins etc/* || die |
140 |
|
141 |
# plugins |
142 |
insinto ${PLUGIN_DIR} |
143 |
|
144 |
# desktop |
145 |
doicon icons/portato-icon.png || die |
146 |
domenu portato.desktop || die |
147 |
|
148 |
# nls |
149 |
use nls && domo i18n/mo/* |
150 |
} |
151 |
|
152 |
pkg_postinst () |
153 |
{ |
154 |
distutils_pkg_postinst |
155 |
python_mod_optimize "/${PLUGIN_DIR}" |
156 |
} |
157 |
|
158 |
pkg_postrm () |
159 |
{ |
160 |
distutils_pkg_postrm |
161 |
python_mod_cleanup "/${PLUGIN_DIR}" |
162 |
|
163 |
# try to remove the DATA_DIR, because it may still reside there, as it was tried |
164 |
# to remove it before plugin stuff was purged |
165 |
rmdir ${ROOT}${DATA_DIR} 2> /dev/null |
166 |
} |