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