1 |
commit: ea3ee8ff16f4c3f28cb87d71512bcebddbc59719 |
2 |
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 23 20:23:50 2019 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 23 21:03:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea3ee8ff |
7 |
|
8 |
x11-misc/sunflower: add myself as maintainer, bump 0.3.61. |
9 |
|
10 |
Added myself to maintainers list as there wasn't any, bumped ebuild to |
11 |
0.3-61/0.3.61, updated it to EAPI=7, switched to github release |
12 |
tarballs. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/576882 |
15 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
16 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
17 |
|
18 |
x11-misc/sunflower/Manifest | 1 + |
19 |
x11-misc/sunflower/metadata.xml | 5 +- |
20 |
x11-misc/sunflower/sunflower-0.3.61.ebuild | 90 ++++++++++++++++++++++++++++++ |
21 |
3 files changed, 95 insertions(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/x11-misc/sunflower/Manifest b/x11-misc/sunflower/Manifest |
24 |
index 21a915b9965..5c5c22b73ac 100644 |
25 |
--- a/x11-misc/sunflower/Manifest |
26 |
+++ b/x11-misc/sunflower/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST sunflower-0.2-59.tgz 790126 BLAKE2B 32df1ced73ba0bf5e814e52010eefbbd10657bdbb602dd3a48dc08b865195c3d1efa631bfe2d421f0a12a2f01521a2c6248fe5b9ca8fcc268423f0c9aa3d252d SHA512 e97076eb1c57d52b8fd95501259acaaa9a429f9daacc30ef587cce2f3419433f5aa4554e0e86beeceda208b4be425b98c64c6ced04e36e86b2b4f803176c37f9 |
29 |
+DIST sunflower-0.3.61.tar.gz 975053 BLAKE2B 5845ce0e81cf98b7488c9c34b8a3b6702e01abe9976bd4186691ce3804164d707d3ca999896e3f8d60e5253891d94f39e2fabdb50170afa8ec0f937df141db89 SHA512 f55c2fb15889f903375776f989498827dcab287e87d4015c50f12780dd2f0271e1e127533a10ca94f44ebd44727018917cf92e828bbe82b7653d8ed559ee1cc3 |
30 |
|
31 |
diff --git a/x11-misc/sunflower/metadata.xml b/x11-misc/sunflower/metadata.xml |
32 |
index 1ba4c2fe874..a92806229f3 100644 |
33 |
--- a/x11-misc/sunflower/metadata.xml |
34 |
+++ b/x11-misc/sunflower/metadata.xml |
35 |
@@ -1,7 +1,10 @@ |
36 |
<?xml version="1.0" encoding="UTF-8"?> |
37 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
38 |
<pkgmetadata> |
39 |
-<!-- maintainer-needed --> |
40 |
+ <maintainer type="person"> |
41 |
+ <email>slashbeast@g.o</email> |
42 |
+ <name>Piotr Karbowski</name> |
43 |
+ </maintainer> |
44 |
<upstream> |
45 |
<remote-id type="github">MeanEYE/Sunflower</remote-id> |
46 |
</upstream> |
47 |
|
48 |
diff --git a/x11-misc/sunflower/sunflower-0.3.61.ebuild b/x11-misc/sunflower/sunflower-0.3.61.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..70998acf88e |
51 |
--- /dev/null |
52 |
+++ b/x11-misc/sunflower/sunflower-0.3.61.ebuild |
53 |
@@ -0,0 +1,90 @@ |
54 |
+# Copyright 1999-2019 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+PYTHON_COMPAT=( python2_7 ) |
60 |
+inherit python-r1 xdg-utils desktop |
61 |
+ |
62 |
+MY_PN="${PN^}" |
63 |
+MY_PV=$(ver_rs 2 '-') |
64 |
+ |
65 |
+DESCRIPTION="Small and highly customizable twin-panel file manager with plugin-support" |
66 |
+HOMEPAGE="https://github.com/MeanEYE/Sunflower |
67 |
+ http://sunflower-fm.org/" |
68 |
+SRC_URI="https://github.com/MeanEYE/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
69 |
+ |
70 |
+LICENSE="GPL-3" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~x86" |
73 |
+IUSE="" |
74 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
75 |
+ |
76 |
+DEPEND="${PYTHON_DEPS}" |
77 |
+RDEPEND="${DEPEND} |
78 |
+ >=dev-python/pygtk-2.15.0:2[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/notify-python-0.1[${PYTHON_USEDEP}] |
80 |
+ gnome-base/librsvg:2" |
81 |
+ |
82 |
+S=${WORKDIR}/${MY_PN}-$MY_PV |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ find "${S}"/translations -name "*.po" -delete || die |
87 |
+ rm "${S}"/translations/${PN}.pot || die |
88 |
+ |
89 |
+ sed -i \ |
90 |
+ -e '/^application_file/s/os.path.dirname(sys.argv\[0\])/os.getcwd()/' \ |
91 |
+ ${MY_PN}.py || die |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ touch __init__.py || die |
96 |
+ installme() { |
97 |
+ # install modules |
98 |
+ python_moduleinto ${PN} |
99 |
+ python_domodule images application ${MY_PN}.py \ |
100 |
+ AUTHORS CHANGES COPYING DEPENDS TODO __init__.py |
101 |
+ |
102 |
+ # generate and install startup scripts |
103 |
+ sed \ |
104 |
+ -e "s#@SITEDIR@#$(python_get_sitedir)/${PN}#" \ |
105 |
+ "${FILESDIR}"/${PN} > "${WORKDIR}"/${PN} || die |
106 |
+ python_doscript "${WORKDIR}"/${PN} |
107 |
+ } |
108 |
+ |
109 |
+ # install for all enabled implementations |
110 |
+ python_foreach_impl installme |
111 |
+ |
112 |
+ insinto /usr/share/locale |
113 |
+ # correct gettext behavior |
114 |
+ if [[ -n "${LINGUAS+x}" ]] ; then |
115 |
+ for i in $(cd "${S}"/translations ; echo *) ; do |
116 |
+ if has ${i} ${LINGUAS} ; then |
117 |
+ doins -r "${S}"/translations/${i} |
118 |
+ fi |
119 |
+ done |
120 |
+ else |
121 |
+ doins -r "${S}"/translations/* |
122 |
+ fi |
123 |
+ |
124 |
+ newicon -s 64 images/${PN}_64.png ${PN}.png |
125 |
+ doicon -s scalable images/${PN}.svg |
126 |
+ newmenu ${MY_PN}.desktop ${PN}.desktop |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ xdg_desktop_database_update |
131 |
+ xdg_icon_cache_update |
132 |
+ |
133 |
+ # TODO: better description |
134 |
+ elog "optional dependencies:" |
135 |
+ elog " dev-python/libgnome-python" |
136 |
+ elog " media-libs/mutagen" |
137 |
+ elog " x11-libs/vte:0[python] (terminal support)" |
138 |
+} |
139 |
+ |
140 |
+pkg_postrm() { |
141 |
+ xdg_desktop_database_update |
142 |
+ xdg_icon_cache_update |
143 |
+} |