1 |
commit: 646f4349916b798eae254248d85ece070f66ef25 |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Sat Feb 18 14:42:40 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 10 11:07:59 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646f4349 |
7 |
|
8 |
media-sound/jack: fix #298850, new EAPI and eclass |
9 |
|
10 |
- EAPI 6 |
11 |
- replace eclass distutils with distutils-r1 |
12 |
- fix ebuild python module dependencies |
13 |
- add proxy maintaintership |
14 |
- add functional enhancement: add cddb server freedb.musicbrainz.org |
15 |
|
16 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=298850 |
17 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/4156 |
19 |
|
20 |
.../jack-3.1.1-add-cddbserver-musicbrainz.patch | 15 +++++++ |
21 |
media-sound/jack/files/jack-3.1.1-python26.patch | 12 ++++++ |
22 |
.../files/jack-3.1.1-setup-and-cursesmodule.patch | 47 ++++++++++++++++++++++ |
23 |
media-sound/jack/jack-3.1.1-r2.ebuild | 45 +++++++++++++++++++++ |
24 |
media-sound/jack/metadata.xml | 16 ++++++-- |
25 |
5 files changed, 131 insertions(+), 4 deletions(-) |
26 |
|
27 |
diff --git a/media-sound/jack/files/jack-3.1.1-add-cddbserver-musicbrainz.patch b/media-sound/jack/files/jack-3.1.1-add-cddbserver-musicbrainz.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..150c4409064 |
30 |
--- /dev/null |
31 |
+++ b/media-sound/jack/files/jack-3.1.1-add-cddbserver-musicbrainz.patch |
32 |
@@ -0,0 +1,15 @@ |
33 |
+--- a/jack_freedb.py |
34 |
++++ b/jack_freedb.py |
35 |
+@@ -46,6 +46,12 @@ |
36 |
+ 'mail': "freedb-submit@××××××.org", |
37 |
+ 'my_mail': "default" |
38 |
+ }, |
39 |
++ 'musicbrainz': { |
40 |
++ 'host': "freedb.musicbrainz.org", |
41 |
++ 'id': prog_name + " " + prog_version, |
42 |
++ 'mail': "", |
43 |
++ 'my_mail': "default" |
44 |
++ }, |
45 |
+ } |
46 |
+ |
47 |
+ def interpret_db_file(all_tracks, freedb_form_file, verb, dirs = 0, warn = None): |
48 |
|
49 |
diff --git a/media-sound/jack/files/jack-3.1.1-python26.patch b/media-sound/jack/files/jack-3.1.1-python26.patch |
50 |
new file mode 100644 |
51 |
index 00000000000..c3e0a0c9f85 |
52 |
--- /dev/null |
53 |
+++ b/media-sound/jack/files/jack-3.1.1-python26.patch |
54 |
@@ -0,0 +1,12 @@ |
55 |
+--- a/jack_functions.py |
56 |
++++ b/jack_functions.py |
57 |
+@@ -219,9 +219,9 @@ |
58 |
+ ff = blocks % CDDA_BLOCKS_PER_SECOND |
59 |
+ return mm, ss, ff, blocks |
60 |
+ |
61 |
+-def starts_with(str, with): |
62 |
+- "checks whether str starts with with" |
63 |
+- return str[0:len(with)] == with |
64 |
++def starts_with(str, withstr): |
65 |
++ "checks whether str starts with withstr" |
66 |
++ return str[0:len(withstr)] == withstr |
67 |
|
68 |
diff --git a/media-sound/jack/files/jack-3.1.1-setup-and-cursesmodule.patch b/media-sound/jack/files/jack-3.1.1-setup-and-cursesmodule.patch |
69 |
new file mode 100644 |
70 |
index 00000000000..d3e016289a8 |
71 |
--- /dev/null |
72 |
+++ b/media-sound/jack/files/jack-3.1.1-setup-and-cursesmodule.patch |
73 |
@@ -0,0 +1,47 @@ |
74 |
+--- a/jack_t_curses.py |
75 |
++++ b/jack_t_curses.py |
76 |
+@@ -35,11 +35,9 @@ |
77 |
+ try: |
78 |
+ from jack_curses import endwin, resizeterm, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak |
79 |
+ except ImportError: |
80 |
+- warning("jack_curses module not found, trying normal curses...") |
81 |
++ info("jack_curses module not found, using normal curses...") |
82 |
+ try: |
83 |
+- from curses import endwin, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak |
84 |
+- def resizeterm(y, x): |
85 |
+- pass |
86 |
++ from curses import endwin, resizeterm, A_REVERSE, newwin, newpad, initscr, noecho, cbreak, echo, nocbreak |
87 |
+ except ImportError: |
88 |
+ print "curses module not found or too old, please install it (see README)" |
89 |
+ |
90 |
+--- a/setup.py |
91 |
++++ b/setup.py |
92 |
+@@ -2,7 +2,7 @@ |
93 |
+ |
94 |
+ """Setup script for the jack module distribution.""" |
95 |
+ |
96 |
+-from distutils.core import setup, Extension |
97 |
++from distutils.core import setup |
98 |
+ |
99 |
+ setup( # Distribution meta-data |
100 |
+ name = "jack", |
101 |
+@@ -11,11 +11,7 @@ |
102 |
+ author = "Arne Zellentin", |
103 |
+ author_email = "zarne@××××××××.net", |
104 |
+ url = "http://www.home.unix-ag.org/arne/jack/", |
105 |
+- |
106 |
+- # Description of the modules and packages in the distribution |
107 |
+- ext_modules = [ Extension('jack_cursesmodule', |
108 |
+- ['cursesmodule/jack_cursesmodule.c'], libraries=["ncurses"], |
109 |
+- extra_compile_args=["-Wno-strict-prototypes"]) ], |
110 |
++ scripts=['jack'], |
111 |
+ |
112 |
+ py_modules = [ 'jack_CDTime', 'jack_TOC', 'jack_TOCentry', 'jack_argv', |
113 |
+ 'jack_checkopts', 'jack_children', 'jack_config', 'jack_constants', |
114 |
+@@ -26,6 +22,3 @@ |
115 |
+ 'jack_ripstuff', 'jack_status', 'jack_t_curses', 'jack_t_dumb', 'jack_tag', |
116 |
+ 'jack_targets', 'jack_term', 'jack_utils', 'jack_version', 'jack_workers'] |
117 |
+ ) |
118 |
+- |
119 |
+-print "If you have installed the modules, copy jack to some place in your $PATH," |
120 |
+-print "like /usr/local/bin/." |
121 |
|
122 |
diff --git a/media-sound/jack/jack-3.1.1-r2.ebuild b/media-sound/jack/jack-3.1.1-r2.ebuild |
123 |
new file mode 100644 |
124 |
index 00000000000..59c46f78ae9 |
125 |
--- /dev/null |
126 |
+++ b/media-sound/jack/jack-3.1.1-r2.ebuild |
127 |
@@ -0,0 +1,45 @@ |
128 |
+# Copyright 1999-2017 Gentoo Foundation |
129 |
+# Distributed under the terms of the GNU General Public License v2 |
130 |
+ |
131 |
+EAPI=6 |
132 |
+ |
133 |
+PYTHON_COMPAT=( python2_7 ) |
134 |
+PYTHON_REQ_USE="ncurses" |
135 |
+DISTUTILS_SINGLE_IMPL=1 |
136 |
+ |
137 |
+inherit distutils-r1 |
138 |
+ |
139 |
+DESCRIPTION="A frontend for several cd-rippers and mp3 encoders" |
140 |
+HOMEPAGE="http://www.home.unix-ag.org/arne/jack/" |
141 |
+SRC_URI="http://www.home.unix-ag.org/arne/jack/${P}.tar.gz" |
142 |
+ |
143 |
+LICENSE="GPL-2" |
144 |
+SLOT="0" |
145 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
146 |
+IUSE="" |
147 |
+ |
148 |
+RDEPEND=" |
149 |
+ dev-python/cddb-py[${PYTHON_USEDEP}] |
150 |
+ dev-python/id3-py[${PYTHON_USEDEP}] |
151 |
+ dev-python/pyid3lib[${PYTHON_USEDEP}] |
152 |
+ dev-python/pyvorbis[${PYTHON_USEDEP}] |
153 |
+ media-libs/flac |
154 |
+ media-sound/lame |
155 |
+ media-sound/cdparanoia" |
156 |
+ |
157 |
+PATCHES=( |
158 |
+ "${FILESDIR}/${PN}-3.1.1-python26.patch" |
159 |
+ "${FILESDIR}/${PN}-3.1.1-setup-and-cursesmodule.patch" |
160 |
+ "${FILESDIR}/${PN}-3.1.1-add-cddbserver-musicbrainz.patch" |
161 |
+) |
162 |
+ |
163 |
+python_install_all() { |
164 |
+ insinto /etc |
165 |
+ newins example.etc.jackrc jackrc |
166 |
+ |
167 |
+ newman jack.man jack.1 |
168 |
+ |
169 |
+ local DOCS=( README doc/ChangeLog doc/TODO ) |
170 |
+ local HTML_DOCS=( doc/*.{html,css,gif} ) |
171 |
+ distutils-r1_python_install_all |
172 |
+} |
173 |
|
174 |
diff --git a/media-sound/jack/metadata.xml b/media-sound/jack/metadata.xml |
175 |
index c870d0eef0a..e89252b7a39 100644 |
176 |
--- a/media-sound/jack/metadata.xml |
177 |
+++ b/media-sound/jack/metadata.xml |
178 |
@@ -1,8 +1,16 @@ |
179 |
<?xml version="1.0" encoding="UTF-8"?> |
180 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
181 |
<pkgmetadata> |
182 |
-<maintainer type="project"> |
183 |
- <email>sound@g.o</email> |
184 |
- <name>Gentoo Sound project</name> |
185 |
-</maintainer> |
186 |
+ <maintainer type="person"> |
187 |
+ <email>martin.dummer@×××.net</email> |
188 |
+ <name>Martin Dummer</name> |
189 |
+ </maintainer> |
190 |
+ <maintainer type="project"> |
191 |
+ <email>proxy-maint@g.o</email> |
192 |
+ <name>Proxy Maintainers</name> |
193 |
+ </maintainer> |
194 |
+ <maintainer type="project"> |
195 |
+ <email>sound@g.o</email> |
196 |
+ <name>Gentoo Sound project</name> |
197 |
+ </maintainer> |
198 |
</pkgmetadata> |