Gentoo Archives: gentoo-commits

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