1 |
commit: 7293a090ccc47daa13b660b23bbea7861fca01e0 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 7 02:05:10 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 7 02:05:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7293a090 |
7 |
|
8 |
media-sound/pithos: Update 9999 ebuild to work with modern versions |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
media-sound/pithos/pithos-9999.ebuild | 65 +++++++++++++++++++++++++++++++---- |
13 |
1 file changed, 58 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/media-sound/pithos/pithos-9999.ebuild b/media-sound/pithos/pithos-9999.ebuild |
16 |
index 5c9a2b865df..cdc45cb8f4a 100644 |
17 |
--- a/media-sound/pithos/pithos-9999.ebuild |
18 |
+++ b/media-sound/pithos/pithos-9999.ebuild |
19 |
@@ -1,12 +1,12 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
-PYTHON_COMPAT=(python3_4) |
26 |
-inherit eutils distutils-r1 |
27 |
+EAPI=6 |
28 |
+PYTHON_COMPAT=(python3_4 python3_5) |
29 |
+inherit autotools gnome2-utils python-r1 |
30 |
|
31 |
if [[ ${PV} =~ [9]{4,} ]]; then |
32 |
- inherit git-2 |
33 |
+ inherit git-r3 |
34 |
EGIT_REPO_URI="git://github.com/pithos/pithos.git |
35 |
https://github.com/pithos/pithos.git" |
36 |
else |
37 |
@@ -25,6 +25,7 @@ RDEPEND=" |
38 |
dev-python/pylast[${PYTHON_USEDEP}] |
39 |
dev-python/dbus-python[${PYTHON_USEDEP}] |
40 |
>=dev-python/pygobject-3.12[${PYTHON_USEDEP}] |
41 |
+ dev-libs/appstream-glib[introspection] |
42 |
x11-libs/pango[introspection] |
43 |
media-libs/gstreamer:1.0[introspection] |
44 |
media-plugins/gst-plugins-meta:1.0[aac,http,mp3] |
45 |
@@ -36,6 +37,56 @@ RDEPEND=" |
46 |
DEPEND="${RDEPEND} |
47 |
dev-python/setuptools[${PYTHON_USEDEP}]" |
48 |
|
49 |
-python_test() { |
50 |
- esetup.py test |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}/${PN}-1.3.1-dont-try-to-update-icon-cache.patch" |
53 |
+) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ eautoreconf |
58 |
+ python_copy_sources |
59 |
+} |
60 |
+ |
61 |
+pithos_src_configure() { |
62 |
+ pushd "${BUILD_DIR}" || die |
63 |
+ econf UPDATE_ICON_CACHE=":" |
64 |
+ popd || die |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ python_foreach_impl pithos_src_configure |
69 |
+} |
70 |
+ |
71 |
+pithos_src_compile() { |
72 |
+ pushd "${BUILD_DIR}" || die |
73 |
+ emake |
74 |
+ popd || die |
75 |
+} |
76 |
+ |
77 |
+src_compile() { |
78 |
+ python_foreach_impl pithos_src_compile |
79 |
+} |
80 |
+ |
81 |
+pithos_src_install() { |
82 |
+ pushd "${BUILD_DIR}" || die |
83 |
+ emake DESTDIR="${D}" install |
84 |
+ python_doscript "${D}"/usr/bin/pithos |
85 |
+ popd || die |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ python_foreach_impl pithos_src_install |
90 |
+} |
91 |
+ |
92 |
+pkg_preinst() { |
93 |
+ gnome2_icon_savelist |
94 |
+ gnome2_schemas_savelist |
95 |
+} |
96 |
+pkg_postinst() { |
97 |
+ gnome2_icon_cache_update |
98 |
+ gnome2_schemas_update |
99 |
+} |
100 |
+pkg_postrm() { |
101 |
+ gnome2_icon_cache_update |
102 |
+ gnome2_schemas_update |
103 |
} |