Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/portato: portato-0.14.1.ebuild ChangeLog
Date: Wed, 08 Sep 2010 16:52:20
Message-Id: 20100908165211.A081C20051@flycatcher.gentoo.org
1 idl0r 10/09/08 16:52:11
2
3 Modified: ChangeLog
4 Added: portato-0.14.1.ebuild
5 Log:
6 Version bump. Bug 336425.
7
8 (Portage version: 2.2_rc77/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.28 app-portage/portato/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portato/ChangeLog?rev=1.28&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portato/ChangeLog?rev=1.28&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portato/ChangeLog?r1=1.27&r2=1.28
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v
20 retrieving revision 1.27
21 retrieving revision 1.28
22 diff -u -r1.27 -r1.28
23 --- ChangeLog 13 May 2010 12:47:45 -0000 1.27
24 +++ ChangeLog 8 Sep 2010 16:52:11 -0000 1.28
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-portage/portato
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.27 2010/05/13 12:47:45 idl0r Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.28 2010/09/08 16:52:11 idl0r Exp $
30 +
31 +*portato-0.14.1 (08 Sep 2010)
32 +
33 + 08 Sep 2010; Christian Ruppert <idl0r@g.o> +portato-0.14.1.ebuild:
34 + Version bump. Bug 336425.
35
36 13 May 2010; Christian Ruppert <idl0r@g.o> portato-0.14.ebuild:
37 Remove eix as default useflag, bug 319321.
38
39
40
41 1.1 app-portage/portato/portato-0.14.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portato/portato-0.14.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/portato/portato-0.14.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: portato-0.14.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-portage/portato/portato-0.14.1.ebuild,v 1.1 2010/09/08 16:52:11 idl0r Exp $
51
52 EAPI="2"
53
54 inherit python eutils distutils
55
56 DESCRIPTION="A GUI for Portage written in Python"
57 HOMEPAGE="http://necoro.eu/portato"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
63 IUSE="eix kde libnotify nls +sqlite userpriv"
64 LANGS="ca de es fr it pl pt_BR tr"
65 for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done
66
67 COMMON_DEPEND="|| (
68 dev-lang/python:2.7[sqlite?,threads]
69 dev-lang/python:2.6[sqlite?,threads] )"
70
71 RDEPEND="$COMMON_DEPEND
72 app-portage/portage-utils
73 x11-libs/vte[python]
74 >=dev-python/pygtk-2.14.0
75 dev-python/pygtksourceview:2
76 >=sys-apps/portage-2.1.7.17
77
78 kde? ( kde-base/kdesu )
79 !kde? ( || ( x11-misc/ktsuss x11-libs/gksu ) )
80 libnotify? ( dev-python/notify-python )
81 nls? ( virtual/libintl )
82 eix? ( >=app-portage/eix-0.15.4 )"
83
84 DEPEND="$COMMON_DEPEND
85 nls? ( sys-devel/gettext )"
86
87 # filled later on
88 PLUGIN_DIR=""
89
90 pkg_setup()
91 {
92 python_set_active_version 2
93
94 if use eix && ! use sqlite; then
95 ewarn "You have enabled 'eix' but not 'sqlite'!"
96 ewarn "eix-support depends on sqlite, so it will be disabled as well."
97 fi
98 }
99
100 src_configure ()
101 {
102 # set this before changing ROOT_DIR
103 # else it would include $ROOT -- which would be plusungood
104 PLUGIN_DIR=$(./portato.py --plugin-dir)
105
106 sed -i -e "s;^\(ROOT_DIR\s*=\s*\).*;\1\"${ROOT}\";" portato/constants.py || die "sed failed"
107
108 if use userpriv; then
109 sed -i -e "s/Exec=.*/Exec=portato --no-fork/" portato.desktop || die "sed failed"
110 fi
111
112 # change configured db-type depending on useflags
113 local dbtype="dict"
114
115 if use sqlite; then
116 if use eix; then
117 dbtype="eixsql"
118 else
119 dbtype="sql"
120 fi
121 fi
122
123 sed -i -e "s;^\(type\s*=\s*\).*;\1${dbtype};" etc/portato.cfg || die "sed failed"
124 }
125
126 src_compile ()
127 {
128 if use nls; then
129 ./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
130 fi
131
132 if ! use eix || ! use sqlite; then
133 distutils_src_compile --disable-eix
134 else
135 distutils_src_compile
136 fi
137 }
138
139 src_install ()
140 {
141 if ! use eix || ! use sqlite; then
142 distutils_src_install --disable-eix
143 else
144 distutils_src_install
145 fi
146
147 newbin portato.py portato || die "newbin failed"
148 dodoc doc/* || die "dodoc failed"
149
150 # config
151 insinto /etc
152 doins etc/* || die "installing config files failed"
153
154 # desktop
155 doicon icons/portato-icon.png || die "doicon failed"
156 domenu portato.desktop || die "domenu failed"
157
158 # nls
159 if use nls && [ -d i18n/mo ]; then
160 domo i18n/mo/*
161 fi
162
163 # man page
164 doman portato.1
165 }
166
167 pkg_postinst ()
168 {
169 distutils_pkg_postinst
170 python_mod_optimize "${PLUGIN_DIR}"
171
172 if use eix && use sqlite; then
173 einfo
174 elog "If you are using eix-remote there is no guarantee,"
175 elog "that portato will work as expected with the eixsql database."
176 elog "If in doubt, change back to sql."
177 fi
178 }
179
180 pkg_postrm ()
181 {
182 distutils_pkg_postrm
183 python_mod_cleanup "${PLUGIN_DIR}"
184
185 # try to remove the DATA_DIR, as it may still exist
186 # reason: it was tried to remove it before plugin stuff was purged
187 rmdir "${ROOT}"$(dirname ${PLUGIN_DIR}) 2> /dev/null
188 }