Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/screenlets: screenlets-0.1.6.ebuild ChangeLog
Date: Sat, 01 Jun 2013 13:45:16
Message-Id: 20130601134509.949332171D@flycatcher.gentoo.org
1 jer 13/06/01 13:45:09
2
3 Modified: ChangeLog
4 Added: screenlets-0.1.6.ebuild
5 Log:
6 Version bump. Set python version, patch partly by Nils Andresen (bug #452656). Add LINGUAS support.
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.5 x11-plugins/screenlets/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/screenlets/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/screenlets/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/screenlets/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-plugins/screenlets/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 1 Jun 2013 11:39:54 -0000 1.4
24 +++ ChangeLog 1 Jun 2013 13:45:09 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-plugins/screenlets
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/screenlets/ChangeLog,v 1.4 2013/06/01 11:39:54 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/screenlets/ChangeLog,v 1.5 2013/06/01 13:45:09 jer Exp $
30 +
31 +*screenlets-0.1.6 (01 Jun 2013)
32 +
33 + 01 Jun 2013; Jeroen Roovers <jer@g.o> +screenlets-0.1.6.ebuild:
34 + Version bump. Set python version, patch partly by Nils Andresen (bug
35 + #452656). Add LINGUAS support.
36
37 01 Jun 2013; Pacho Ramos <pacho@g.o> metadata.xml:
38 Cleanup due bug #144305
39
40
41
42 1.1 x11-plugins/screenlets/screenlets-0.1.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/screenlets/screenlets-0.1.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/screenlets/screenlets-0.1.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: screenlets-0.1.6.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/screenlets/screenlets-0.1.6.ebuild,v 1.1 2013/06/01 13:45:09 jer Exp $
52
53 EAPI=5
54
55 PYTHON_COMPAT=( python2_{5,6,7} )
56 DISTUTILS_SINGLE_IMPL=yes
57
58 inherit distutils-r1 eutils
59
60 DESCRIPTION="Screenlets are small owner-drawn applications"
61 HOMEPAGE="http://www.screenlets.org"
62 SRC_URI="http://code.launchpad.net/screenlets/trunk/${PV}/+download/screenlets-${PV}.tar.bz2"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="+svg"
68
69 RDEPEND="dev-python/dbus-python
70 svg? ( dev-python/librsvg-python )
71 dev-python/libwnck-python
72 dev-python/gnome-keyring-python
73 dev-python/pyxdg
74 x11-libs/libnotify
75 x11-misc/xdg-utils
76 dev-python/beautifulsoup:python-2"
77
78 src_prepare() {
79 # this is tricky because screenlets translations do not always have -manager
80 # translations and vice versa, which is also why we do not die() on rm fail
81 strip-linguas -u ${PN}/ ${PN}-manager/
82 local lingua pofile
83 for pofile in ${PN}/*.po ${PN}-manager/*.po; do
84 lingua=${pofile/$PN*\/}
85 lingua=${lingua/.po}
86
87 if ! has ${lingua/.po} ${LINGUAS}; then
88 rm -f ${PN}/${lingua}.po
89 rm -f ${PN}-manager/${lingua}.po
90 fi
91 done
92
93 distutils-r1_src_prepare
94 python_fix_shebang src
95 sed -i $(find src/ -type f) -e 's|exec python|&2|g;s|python -u|python2 -u|g' || die
96 sed -i desktop-menu/screenlets-{daemon,manager}.desktop -e 's|> .*||g' || die
97 }
98
99 src_install() {
100 distutils-r1_src_install
101
102 insinto /usr/share/icons
103 doins desktop-menu/screenlets.svg
104
105 # Insert .desktop files
106 domenu desktop-menu/*.desktop
107 }