Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/portato: ChangeLog portato-0.13.ebuild
Date: Tue, 01 Sep 2009 05:51:29
Message-Id: E1MiR5y-0005Fd-9l@stork.gentoo.org
1 patrick 09/09/01 11:00:14
2
3 Modified: ChangeLog
4 Added: portato-0.13.ebuild
5 Log:
6 Bump to 0.13. Ebuild patches by Rene Neumann. Closes #283071
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.18 app-portage/portato/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/ChangeLog?rev=1.18&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/ChangeLog?rev=1.18&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/ChangeLog?r1=1.17&r2=1.18
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v
19 retrieving revision 1.17
20 retrieving revision 1.18
21 diff -u -r1.17 -r1.18
22 --- ChangeLog 19 May 2009 22:21:34 -0000 1.17
23 +++ ChangeLog 1 Sep 2009 11:00:13 -0000 1.18
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-portage/portato
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.17 2009/05/19 22:21:34 jokey Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-portage/portato/ChangeLog,v 1.18 2009/09/01 11:00:13 patrick Exp $
29 +
30 +*portato-0.13 (01 Sep 2009)
31 +
32 + 01 Sep 2009; Patrick Lauer <patrick@g.o> +portato-0.13.ebuild:
33 + Bump to 0.13. Ebuild patches by Rene Neumann. Closes #283071
34
35 19 May 2009; Markus Ullmann <jokey@g.o> portato-0.12.1.ebuild:
36 Fix dep for bug #267182
37
38
39
40 1.1 app-portage/portato/portato-0.13.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/portato-0.13.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/portato/portato-0.13.ebuild?rev=1.1&content-type=text/plain
44
45 Index: portato-0.13.ebuild
46 ===================================================================
47 # Copyright 1999-2009 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.13.ebuild,v 1.1 2009/09/01 11:00:13 patrick Exp $
50
51 EAPI="2"
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/1376/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
63 IUSE="kde +libnotify nls userpriv sqlite"
64 LANGS="ca de es_ES pl pt_BR tr"
65 for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done
66
67 RDEPEND="app-portage/portage-utils
68 x11-libs/vte[python]
69 >=dev-lang/python-2.5[sqlite?,threads]
70 dev-python/pygtksourceview:2
71 >=dev-python/pygtk-2.14.0
72 >=sys-apps/portage-2.1.6
73
74 !userpriv? (
75 dev-python/shm
76 kde? ( || ( kde-base/kdesu kde-base/kdebase ) )
77 !kde? ( || ( x11-misc/ktsuss 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 CONFIG_DIR="etc/${PN}"
87 DATA_DIR="usr/share/${PN}"
88 LOCALE_DIR="usr/share/locale"
89 PLUGIN_DIR="${DATA_DIR}/plugins"
90 ICON_DIR="${DATA_DIR}/icons"
91 TEMPLATE_DIR="${DATA_DIR}/templates"
92
93 src_configure ()
94 {
95 sed -i -e "s;^\(VERSION\s*=\s*\).*;\1\"${PV}\";" \
96 -e "s;^\(CONFIG_DIR\s*=\s*\).*;\1\"${ROOT}${CONFIG_DIR}/\";" \
97 -e "s;^\(DATA_DIR\s*=\s*\).*;\1\"${ROOT}${DATA_DIR}/\";" \
98 -e "s;^\(TEMPLATE_DIR\s*=\s*\).*;\1\"${ROOT}${TEMPLATE_DIR}/\";" \
99 -e "s;^\(ICON_DIR\s*=\s*\).*;\1\"${ROOT}${ICON_DIR}/\";" \
100 -e "s;^\(LOCALE_DIR\s*=\s*\).*;\1\"${ROOT}${LOCALE_DIR}/\";" \
101 "${PN}"/constants.py || die "sed failed"
102
103 if use userpriv; then
104 sed -i -e "s/Exec=.*/Exec=portato --no-fork/" portato.desktop || die "sed failed"
105 fi
106 }
107
108 src_compile ()
109 {
110 if use nls; then
111 ./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
112 fi
113
114 distutils_src_compile
115 }
116
117 src_install ()
118 {
119 dodir ${DATA_DIR} || die
120
121 distutils_src_install
122
123 newbin portato.py portato || die
124 dodoc doc/*
125
126 # config
127 insinto ${CONFIG_DIR}
128 doins etc/* || die
129
130 # plugins
131 insinto ${PLUGIN_DIR}
132
133 # desktop
134 doicon icons/portato-icon.png || die
135 domenu portato.desktop || die
136
137 # nls
138 use nls && domo i18n/mo/*
139
140 # man page
141 doman portato.1
142 }
143
144 pkg_postinst ()
145 {
146 distutils_pkg_postinst
147 python_mod_optimize "/${PLUGIN_DIR}"
148 }
149
150 pkg_postrm ()
151 {
152 distutils_pkg_postrm
153 python_mod_cleanup "/${PLUGIN_DIR}"
154
155 # try to remove the DATA_DIR, because it may still reside there, as it was tried
156 # to remove it before plugin stuff was purged
157 rmdir "${ROOT}"${DATA_DIR} 2> /dev/null
158 }