Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/sunflower: sunflower-0.1_alpha57.ebuild ChangeLog
Date: Mon, 27 Jan 2014 13:45:31
Message-Id: 20140127134528.955622004C@flycatcher.gentoo.org
1 hasufell 14/01/27 13:45:28
2
3 Modified: ChangeLog
4 Added: sunflower-0.1_alpha57.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.10 x11-misc/sunflower/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/sunflower/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/sunflower/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/sunflower/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/sunflower/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 30 Oct 2013 22:18:37 -0000 1.9
24 +++ ChangeLog 27 Jan 2014 13:45:28 -0000 1.10
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-misc/sunflower
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/ChangeLog,v 1.9 2013/10/30 22:18:37 hasufell Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/ChangeLog,v 1.10 2014/01/27 13:45:28 hasufell Exp $
31 +
32 +*sunflower-0.1_alpha57 (27 Jan 2014)
33 +
34 + 27 Jan 2014; Julian Ospald <hasufell@g.o>
35 + +sunflower-0.1_alpha57.ebuild:
36 + version bump
37
38 30 Oct 2013; Julian Ospald <hasufell@g.o>
39 -sunflower-0.1_alpha53.ebuild, -sunflower-0.1_alpha54.ebuild,
40
41
42
43 1.1 x11-misc/sunflower/sunflower-0.1_alpha57.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/sunflower/sunflower-0.1_alpha57.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/sunflower/sunflower-0.1_alpha57.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sunflower-0.1_alpha57.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/sunflower-0.1_alpha57.ebuild,v 1.1 2014/01/27 13:45:28 hasufell Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python{2_6,2_7} )
57 inherit eutils fdo-mime gnome2-utils python-r1
58
59 MY_PN="Sunflower"
60 DESCRIPTION="Small and highly customizable twin-panel file manager with plugin-support"
61 HOMEPAGE="http://code.google.com/p/sunflower-fm"
62 SRC_URI="http://sunflower-fm.org/pub/sunflower-${PV/_alpha/a-}.tgz"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE=""
68 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
69
70 DEPEND="${PYTHON_DEPS}"
71 RDEPEND="${DEPEND}
72 >=dev-python/pygtk-2.15.0[${PYTHON_USEDEP}]
73 >=dev-python/notify-python-0.1[${PYTHON_USEDEP}]
74 gnome-base/librsvg:2
75 virtual/python-argparse[${PYTHON_USEDEP}]"
76
77 S=${WORKDIR}/${MY_PN}
78
79 src_prepare() {
80 find "${S}" -name "*.py[co]" -delete || die
81 find "${S}"/translations -name "*.po" -delete || die
82 rm "${S}"/translations/${PN}.pot || die
83
84 sed -i \
85 -e '/^application_file/s/os.path.dirname(sys.argv\[0\])/os.getcwd()/' \
86 ${MY_PN}.py || die
87 }
88
89 src_install() {
90 touch __init__.py || die
91 installme() {
92 # install modules
93 python_moduleinto ${PN}
94 python_domodule images application ${MY_PN}.py \
95 AUTHORS CHANGES COPYING DEPENDS TODO __init__.py
96
97 # generate and install startup scripts
98 sed \
99 -e "s#@SITEDIR@#$(python_get_sitedir)/${PN}#" \
100 "${FILESDIR}"/${PN} > "${T}"/${PN} || die
101 python_doscript "${T}"/${PN}
102 }
103
104 # install for all enabled implementations
105 python_foreach_impl installme
106
107 insinto /usr/share/locale
108 # correct gettext behavior
109 if [[ -n "${LINGUAS+x}" ]] ; then
110 for i in $(cd "${S}"/translations ; echo *) ; do
111 if has ${i} ${LINGUAS} ; then
112 doins -r "${S}"/translations/${i}
113 fi
114 done
115 else
116 doins -r "${S}"/translations/*
117 fi
118
119 newicon -s 64 images/${PN}_64.png ${PN}.png
120 doicon -s scalable images/${PN}.svg
121 newmenu ${MY_PN}.desktop ${PN}.desktop
122 }
123
124 pkg_preinst() {
125 gnome2_icon_savelist
126 }
127
128 pkg_postinst() {
129 fdo-mime_desktop_database_update
130 gnome2_icon_cache_update
131
132 # TODO: better description
133 elog "optional dependencies:"
134 elog " dev-python/libgnome-python"
135 elog " media-libs/mutagen"
136 elog " x11-libs/vte:0[python] (terminal support)"
137 }
138
139 pkg_postrm() {
140 fdo-mime_desktop_database_update
141 gnome2_icon_cache_update
142 }