1 |
commit: 157db268985226cf610cc4a7f1de29dfb3463616 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 4 03:28:50 2022 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 4 03:28:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=157db268 |
7 |
|
8 |
media-libs/portmidi: removed obsolete 234-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/855881 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
.../portmidi/files/portmidi-217-r4-python.patch | 49 ------- |
14 |
media-libs/portmidi/portmidi-234-r1.ebuild | 142 --------------------- |
15 |
2 files changed, 191 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/portmidi/files/portmidi-217-r4-python.patch b/media-libs/portmidi/files/portmidi-217-r4-python.patch |
18 |
deleted file mode 100644 |
19 |
index 23ef6c3add1e..000000000000 |
20 |
--- a/media-libs/portmidi/files/portmidi-217-r4-python.patch |
21 |
+++ /dev/null |
22 |
@@ -1,49 +0,0 @@ |
23 |
-diff -Naur portmidi-a/pm_python/setup.py portmidi-b/pm_python/setup.py |
24 |
---- portmidi-a/pm_python/setup.py 2010-09-26 15:32:44.000000000 -0400 |
25 |
-+++ portmidi-b/pm_python/setup.py 2020-03-19 12:34:34.398365103 -0400 |
26 |
-@@ -15,12 +15,10 @@ |
27 |
- |
28 |
- |
29 |
- DESCRIPTION = open('README_PYTHON.txt').read() |
30 |
--CHANGES = open('CHANGES.txt').read() |
31 |
--TODO = open('TODO.txt').read() |
32 |
- |
33 |
- EXTRAS = {} |
34 |
- |
35 |
--long_description = DESCRIPTION + CHANGES + TODO |
36 |
-+long_description = DESCRIPTION |
37 |
- #import sys |
38 |
- #if "checkdocs" in sys.argv: |
39 |
- # print long_description |
40 |
-@@ -142,7 +140,7 @@ |
41 |
- |
42 |
- |
43 |
- if sys.platform == 'win32': |
44 |
-- print "Found Win32 platform" |
45 |
-+ print("Found Win32 platform") |
46 |
- EXTENSION = dict( |
47 |
- ext_modules=[ |
48 |
- Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")], |
49 |
-@@ -154,7 +152,7 @@ |
50 |
- ] |
51 |
- ) |
52 |
- elif sys.platform == 'darwin': |
53 |
-- print "Found darwin (OS X) platform" |
54 |
-+ print("Found darwin (OS X) platform") |
55 |
- library_dirs = ["/usr/local/lib"] |
56 |
- include_dirs = ["/usr/local/include"] |
57 |
- EXTENSION = dict( |
58 |
-@@ -169,11 +167,11 @@ |
59 |
- ] |
60 |
- ) |
61 |
- else: |
62 |
-- print "Assuming Linux platform" |
63 |
-+ print("Assuming Linux platform") |
64 |
- EXTENSION = dict( |
65 |
- ext_modules=[ |
66 |
- Extension("pyportmidi._pyportmidi", [os.path.join("pyportmidi", "_pyportmidi.pyx")], |
67 |
-- library_dirs=["./linux"], |
68 |
-+ include_dirs=["../pm_common", "../porttime"], |
69 |
- libraries = ["portmidi", "asound", "pthread"] |
70 |
- ) |
71 |
- ] |
72 |
|
73 |
diff --git a/media-libs/portmidi/portmidi-234-r1.ebuild b/media-libs/portmidi/portmidi-234-r1.ebuild |
74 |
deleted file mode 100644 |
75 |
index 61a6c99948e0..000000000000 |
76 |
--- a/media-libs/portmidi/portmidi-234-r1.ebuild |
77 |
+++ /dev/null |
78 |
@@ -1,142 +0,0 @@ |
79 |
-# Copyright 1999-2022 Gentoo Authors |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
- |
82 |
-EAPI=8 |
83 |
- |
84 |
-PYTHON_COMPAT=( python3_{8..9} ) |
85 |
-DISTUTILS_OPTIONAL=1 |
86 |
-# ninja: error: build.ninja:521: multiple rules generate pm_java/pmdefaults.jar [-w dupbuild=err] |
87 |
-CMAKE_MAKEFILE_GENERATOR="emake" |
88 |
-inherit cmake desktop xdg distutils-r1 java-pkg-opt-2 flag-o-matic |
89 |
- |
90 |
-MY_P="portmedia-code-r${PV}" |
91 |
- |
92 |
-DESCRIPTION="Library for real time MIDI input and output" |
93 |
-HOMEPAGE="http://portmedia.sourceforge.net/" |
94 |
-SRC_URI="mirror://sourceforge/project/portmedia/${MY_P}.zip" |
95 |
- |
96 |
-LICENSE="MIT" |
97 |
-SLOT="0" |
98 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" |
99 |
-IUSE="debug doc java python static-libs test-programs" |
100 |
- |
101 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
102 |
- |
103 |
-BDEPEND=" |
104 |
- app-arch/unzip |
105 |
- doc? ( |
106 |
- app-doc/doxygen |
107 |
- dev-texlive/texlive-fontsrecommended |
108 |
- dev-texlive/texlive-latexextra |
109 |
- virtual/latex-base |
110 |
- ) |
111 |
- python? ( dev-python/cython[${PYTHON_USEDEP}] ) |
112 |
-" |
113 |
-CDEPEND=" |
114 |
- media-libs/alsa-lib |
115 |
- python? ( ${PYTHON_DEPS} ) |
116 |
-" |
117 |
-RDEPEND="${CDEPEND} |
118 |
- java? ( >=virtual/jre-1.8:* ) |
119 |
-" |
120 |
-DEPEND=" |
121 |
- ${CDEPEND} |
122 |
- java? ( >=virtual/jdk-1.8:* ) |
123 |
-" |
124 |
- |
125 |
-S="${WORKDIR}/${MY_P}/${PN}/trunk" |
126 |
-MAKEOPTS+=" -j1" |
127 |
- |
128 |
-PATCHES=( |
129 |
- # fix parallel make failures, fix java support, and allow optional |
130 |
- # components like test programs and static libs to be skipped |
131 |
- "${FILESDIR}"/${P}-cmake.patch |
132 |
- |
133 |
- # add include directories and remove references to missing files |
134 |
- "${FILESDIR}"/${PN}-217-r4-python.patch |
135 |
-) |
136 |
- |
137 |
-pkg_setup() { |
138 |
- use java && java-pkg-opt-2_pkg_setup |
139 |
-} |
140 |
- |
141 |
-src_prepare() { |
142 |
- cmake_src_prepare |
143 |
- |
144 |
- # install wrapper for pmdefaults |
145 |
- if use java ; then |
146 |
- cat > pm_java/pmdefaults/pmdefaults <<-EOF |
147 |
- #!/bin/sh |
148 |
- java -Djava.library.path="${EPREFIX}/usr/$(get_libdir)/" \\ |
149 |
- -jar "${EPREFIX}/usr/share/${PN}/lib/pmdefaults.jar" |
150 |
- EOF |
151 |
- [[ $? -ne 0 ]] && die "cat pmdefaults failed" |
152 |
- fi |
153 |
-} |
154 |
- |
155 |
-src_configure() { |
156 |
- if use debug ; then |
157 |
- CMAKE_BUILD_TYPE=Debug |
158 |
- else |
159 |
- CMAKE_BUILD_TYPE=Release |
160 |
- fi |
161 |
- |
162 |
- local mycmakeargs=( |
163 |
- -DPORTMIDI_ENABLE_JAVA=$(usex java) |
164 |
- -DPORTMIDI_ENABLE_STATIC=$(usex static-libs) |
165 |
- -DPORTMIDI_ENABLE_TEST=$(usex test-programs) |
166 |
- ) |
167 |
- |
168 |
- if use java ; then |
169 |
- mycmakeargs+=(-DJAR_INSTALL_DIR="${EPREFIX}/usr/share/${PN}/lib") |
170 |
- fi |
171 |
- |
172 |
- cmake_src_configure |
173 |
-} |
174 |
- |
175 |
-src_compile() { |
176 |
- cmake_src_compile |
177 |
- |
178 |
- if use python ; then |
179 |
- sed -i -e "/library_dirs=.*linux/s#./linux#${CMAKE_BUILD_DIR}#" pm_python/setup.py || die |
180 |
- pushd pm_python > /dev/null |
181 |
- append-ldflags -L"${BUILD_DIR}" |
182 |
- distutils-r1_src_compile |
183 |
- popd > /dev/null |
184 |
- fi |
185 |
- |
186 |
- if use doc ; then |
187 |
- doxygen || die "doxygen failed" |
188 |
- pushd latex > /dev/null |
189 |
- VARTEXFONTS="${T}"/fonts emake |
190 |
- popd > /dev/null |
191 |
- fi |
192 |
-} |
193 |
- |
194 |
-src_install() { |
195 |
- cmake_src_install |
196 |
- |
197 |
- dodoc CHANGELOG.txt README.txt pm_linux/README_LINUX.txt |
198 |
- |
199 |
- use doc && dodoc latex/refman.pdf |
200 |
- |
201 |
- if use python ; then |
202 |
- pushd pm_python > /dev/null |
203 |
- distutils-r1_src_install |
204 |
- popd > /dev/null |
205 |
- fi |
206 |
- |
207 |
- if use java ; then |
208 |
- newdoc pm_java/README.txt README_JAVA.txt |
209 |
- newicon pm_java/pmdefaults/pmdefaults-icon.png pmdefaults.png |
210 |
- make_desktop_entry pmdefaults Pmdefaults pmdefaults "AudioVideo;Audio;Midi;" |
211 |
- fi |
212 |
- |
213 |
- if use test-programs ; then |
214 |
- exeinto /usr/$(get_libdir)/${PN} |
215 |
- local app |
216 |
- for app in latency midiclock midithread midithru mm qtest sysex test ; do |
217 |
- doexe "${BUILD_DIR}"/${app} |
218 |
- done |
219 |
- fi |
220 |
-} |