1 |
commit: 998de2831a15b5d8635babc38ed57292bee6d491 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 14:45:16 2016 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 14:45:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=998de283 |
7 |
|
8 |
media-sound/xmms2: backported samba detection fix |
9 |
|
10 |
While at it updated to non-deprecated python and ruby eclasses. |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
|
14 |
media-sound/xmms2/files/xmms2-0.8-samba-4.patch | 30 +++++++++++++++ |
15 |
media-sound/xmms2/xmms2-0.8-r2.ebuild | 1 + |
16 |
.../{xmms2-0.8-r2.ebuild => xmms2-0.8-r3.ebuild} | 45 ++++++++++------------ |
17 |
3 files changed, 51 insertions(+), 25 deletions(-) |
18 |
|
19 |
diff --git a/media-sound/xmms2/files/xmms2-0.8-samba-4.patch b/media-sound/xmms2/files/xmms2-0.8-samba-4.patch |
20 |
new file mode 100644 |
21 |
index 0000000..937f3d7 |
22 |
--- /dev/null |
23 |
+++ b/media-sound/xmms2/files/xmms2-0.8-samba-4.patch |
24 |
@@ -0,0 +1,30 @@ |
25 |
+commit 86ea5e2d2ac2d8c8c1aee484e8c264440fafcb6a |
26 |
+Author: Daniel P. Chokola <dan.chokola@×××××.com> |
27 |
+Date: Wed Jan 1 14:57:35 2014 -0500 |
28 |
+ |
29 |
+ BUG(2573): Samba 4.0 uses pkg-config. Find libsmbclient.h properly. |
30 |
+ |
31 |
+diff --git a/src/plugins/samba/wscript b/src/plugins/samba/wscript |
32 |
+index 8398169..77d7cda 100644 |
33 |
+--- a/src/plugins/samba/wscript |
34 |
++++ b/src/plugins/samba/wscript |
35 |
+@@ -1,8 +1,17 @@ |
36 |
+ from waftools.plugin import plugin |
37 |
++from waflib import Errors |
38 |
+ |
39 |
+ def plugin_configure(conf): |
40 |
+- conf.check_cc(header_name="libsmbclient.h") |
41 |
+- conf.check(lib="smbclient", uselib_store="smbclient") |
42 |
++ try: |
43 |
++ conf.check_cfg(package="smbclient", uselib_store="smbclient", |
44 |
++ args="--cflags --libs") |
45 |
++ except Errors.ConfigurationError: |
46 |
++ conf.check_cc(header_name="libsmbclient.h", |
47 |
++ uselib="smbclient", |
48 |
++ type="cshlib") |
49 |
++ conf.check(lib="smbclient", uselib_store="smbclient", |
50 |
++ uselib="smbclient", |
51 |
++ type="cshlib") |
52 |
+ |
53 |
+ configure, build = plugin("samba", configure=plugin_configure, |
54 |
+ libs=["smbclient"]) |
55 |
|
56 |
diff --git a/media-sound/xmms2/xmms2-0.8-r2.ebuild b/media-sound/xmms2/xmms2-0.8-r2.ebuild |
57 |
index 515550e..c0a1811 100644 |
58 |
--- a/media-sound/xmms2/xmms2-0.8-r2.ebuild |
59 |
+++ b/media-sound/xmms2/xmms2-0.8-r2.ebuild |
60 |
@@ -125,6 +125,7 @@ src_prepare() { |
61 |
epatch "${FILESDIR}/${P}"-audio4-p6.patch |
62 |
epatch "${FILESDIR}/${P}"-audio4-p7.patch |
63 |
epatch "${FILESDIR}/${P}"-rtvg.patch #424377 |
64 |
+ epatch "${FILESDIR}/${P}"-samba-4.patch |
65 |
|
66 |
if has_version dev-libs/libcdio-paranoia; then |
67 |
sed -i -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' src/plugins/cdda/cdda.c || die |
68 |
|
69 |
diff --git a/media-sound/xmms2/xmms2-0.8-r2.ebuild b/media-sound/xmms2/xmms2-0.8-r3.ebuild |
70 |
similarity index 92% |
71 |
copy from media-sound/xmms2/xmms2-0.8-r2.ebuild |
72 |
copy to media-sound/xmms2/xmms2-0.8-r3.ebuild |
73 |
index 515550e..c910ef3 100644 |
74 |
--- a/media-sound/xmms2/xmms2-0.8-r2.ebuild |
75 |
+++ b/media-sound/xmms2/xmms2-0.8-r3.ebuild |
76 |
@@ -1,10 +1,13 @@ |
77 |
-# Copyright 1999-2015 Gentoo Foundation |
78 |
+# Copyright 1999-2016 Gentoo Foundation |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
# $Id$ |
81 |
|
82 |
-EAPI=3 |
83 |
+EAPI=5 |
84 |
|
85 |
-inherit eutils python toolchain-funcs |
86 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
87 |
+USE_RUBY="ruby20 ruby21 ruby22" |
88 |
+ |
89 |
+inherit eutils multiprocessing python-any-r1 ruby-single toolchain-funcs |
90 |
|
91 |
MY_P="${P}DrO_o" |
92 |
|
93 |
@@ -14,7 +17,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2" |
94 |
LICENSE="GPL-2 LGPL-2.1" |
95 |
|
96 |
SLOT="0" |
97 |
-KEYWORDS="alpha amd64 ppc x86" |
98 |
+KEYWORDS="~alpha ~amd64 ~ppc ~x86" |
99 |
|
100 |
IUSE="aac airplay +alsa ao asf avahi cdda curl cxx ffmpeg flac gvfs ices |
101 |
jack mac mlib-update mms +mad modplug mp3 mp4 musepack ofa oss |
102 |
@@ -25,7 +28,7 @@ RDEPEND="server? ( |
103 |
>=dev-db/sqlite-3.3.4 |
104 |
|
105 |
aac? ( >=media-libs/faad2-2.0 ) |
106 |
- airplay? ( dev-libs/openssl ) |
107 |
+ airplay? ( dev-libs/openssl:0= ) |
108 |
alsa? ( media-libs/alsa-lib ) |
109 |
ao? ( media-libs/libao ) |
110 |
avahi? ( net-dns/avahi[mdnsresponder-compat] ) |
111 |
@@ -49,14 +52,14 @@ RDEPEND="server? ( |
112 |
musepack? ( media-sound/musepack-tools ) |
113 |
ofa? ( media-libs/libofa ) |
114 |
pulseaudio? ( media-sound/pulseaudio ) |
115 |
- samba? ( net-fs/samba[smbclient] ) |
116 |
+ samba? ( net-fs/samba[smbclient(+)] ) |
117 |
sid? ( media-sound/sidplay |
118 |
media-libs/resid ) |
119 |
sndfile? ( media-libs/libsndfile ) |
120 |
speex? ( media-libs/speex |
121 |
media-libs/libogg ) |
122 |
vorbis? ( media-libs/libvorbis ) |
123 |
- vocoder? ( sci-libs/fftw media-libs/libsamplerate ) |
124 |
+ vocoder? ( sci-libs/fftw:3.0= media-libs/libsamplerate ) |
125 |
wavpack? ( media-sound/wavpack ) |
126 |
xml? ( dev-libs/libxml2 ) |
127 |
) |
128 |
@@ -64,18 +67,20 @@ RDEPEND="server? ( |
129 |
>=dev-libs/glib-2.12.9 |
130 |
cxx? ( >=dev-libs/boost-1.32 ) |
131 |
perl? ( >=dev-lang/perl-5.8.8 ) |
132 |
- python? ( dev-lang/python ) |
133 |
- ruby? ( >=dev-lang/ruby-1.8.5 ) " |
134 |
+ python? ( ${PYTHON_DEPS} ) |
135 |
+ ruby? ( ${RUBY_DEPS} ) |
136 |
+" |
137 |
|
138 |
DEPEND="${RDEPEND} |
139 |
dev-lang/python |
140 |
- python? ( dev-python/pyrex ) |
141 |
+ virtual/pkgconfig |
142 |
perl? ( dev-perl/Module-Build |
143 |
virtual/perl-Module-Metadata ) |
144 |
- virtual/pkgconfig |
145 |
+ python? ( >=dev-python/cython-0.15.1 |
146 |
+ dev-python/pyrex ) |
147 |
test? ( dev-util/cunit |
148 |
valgrind? ( dev-util/valgrind ) ) |
149 |
- " |
150 |
+" |
151 |
|
152 |
S="${WORKDIR}/${MY_P}" |
153 |
|
154 |
@@ -100,10 +105,6 @@ xmms2_flag() { |
155 |
esac |
156 |
} |
157 |
|
158 |
-pkg_setup() { |
159 |
- python_pkg_setup |
160 |
-} |
161 |
- |
162 |
src_prepare() { |
163 |
./waf # inflate waf |
164 |
cd .waf* || die |
165 |
@@ -125,10 +126,12 @@ src_prepare() { |
166 |
epatch "${FILESDIR}/${P}"-audio4-p6.patch |
167 |
epatch "${FILESDIR}/${P}"-audio4-p7.patch |
168 |
epatch "${FILESDIR}/${P}"-rtvg.patch #424377 |
169 |
+ epatch "${FILESDIR}/${P}"-samba-4.patch |
170 |
|
171 |
if has_version dev-libs/libcdio-paranoia; then |
172 |
sed -i -e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' src/plugins/cdda/cdda.c || die |
173 |
fi |
174 |
+ epatch_user |
175 |
} |
176 |
|
177 |
src_configure() { |
178 |
@@ -267,9 +270,7 @@ src_test() { |
179 |
|
180 |
src_install() { |
181 |
./waf --without-ldconfig --destdir="${D}" install || die "'waf install' failed" |
182 |
- dodoc AUTHORS TODO README |
183 |
- |
184 |
- use python && python_need_rebuild |
185 |
+ dodoc AUTHORS TODO |
186 |
} |
187 |
|
188 |
pkg_postinst() { |
189 |
@@ -283,10 +284,4 @@ pkg_postinst() { |
190 |
einfo "developers which may help finding bugs" |
191 |
einfo "Disable the phonehome useflag if you don't like that" |
192 |
fi |
193 |
- |
194 |
- use python && python_mod_optimize xmmsclient |
195 |
-} |
196 |
- |
197 |
-pkg_postrm() { |
198 |
- use python && python_mod_cleanup xmmsclient |
199 |
} |