Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/portmidi/
Date: Wed, 29 Jun 2022 18:10:14
Message-Id: 1656526207.31a282bcbce743334f33391e8fdf47a7f28e9c87.fordfrog@gentoo
1 commit: 31a282bcbce743334f33391e8fdf47a7f28e9c87
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 29 18:10:03 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 18:10:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31a282bc
7
8 media-libs/portmidi: dropped obsolete 234
9
10 Bug: https://bugs.gentoo.org/854807
11 Closes: https://bugs.gentoo.org/846029
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 media-libs/portmidi/portmidi-234.ebuild | 142 --------------------------------
15 1 file changed, 142 deletions(-)
16
17 diff --git a/media-libs/portmidi/portmidi-234.ebuild b/media-libs/portmidi/portmidi-234.ebuild
18 deleted file mode 100644
19 index 5d72e4ab709c..000000000000
20 --- a/media-libs/portmidi/portmidi-234.ebuild
21 +++ /dev/null
22 @@ -1,142 +0,0 @@
23 -# Copyright 1999-2022 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -PYTHON_COMPAT=( python3_{7,8,9} )
29 -DISTUTILS_OPTIONAL=1
30 -# ninja: error: build.ninja:521: multiple rules generate pm_java/pmdefaults.jar [-w dupbuild=err]
31 -CMAKE_MAKEFILE_GENERATOR="emake"
32 -inherit cmake desktop xdg distutils-r1 java-pkg-opt-2 flag-o-matic
33 -
34 -MY_P="portmedia-code-r${PV}"
35 -
36 -DESCRIPTION="Library for real time MIDI input and output"
37 -HOMEPAGE="http://portmedia.sourceforge.net/"
38 -SRC_URI="mirror://sourceforge/project/portmedia/${MY_P}.zip"
39 -
40 -LICENSE="MIT"
41 -SLOT="0"
42 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
43 -IUSE="debug doc java python static-libs test-programs"
44 -
45 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
46 -
47 -BDEPEND="
48 - app-arch/unzip
49 - doc? (
50 - app-doc/doxygen
51 - dev-texlive/texlive-fontsrecommended
52 - dev-texlive/texlive-latexextra
53 - virtual/latex-base
54 - )
55 - python? ( >=dev-python/cython-0.12.1[${PYTHON_USEDEP}] )
56 -"
57 -CDEPEND="
58 - media-libs/alsa-lib
59 - python? ( ${PYTHON_DEPS} )
60 -"
61 -RDEPEND="${CDEPEND}
62 - java? ( >=virtual/jre-1.8:* )
63 -"
64 -DEPEND="
65 - ${CDEPEND}
66 - java? ( >=virtual/jdk-1.8:* )
67 -"
68 -
69 -S="${WORKDIR}/${MY_P}/${PN}/trunk"
70 -MAKEOPTS+=" -j1"
71 -
72 -PATCHES=(
73 - # fix parallel make failures, fix java support, and allow optional
74 - # components like test programs and static libs to be skipped
75 - "${FILESDIR}"/${P}-cmake.patch
76 -
77 - # add include directories and remove references to missing files
78 - "${FILESDIR}"/${PN}-217-r4-python.patch
79 -)
80 -
81 -pkg_setup() {
82 - use java && java-pkg-opt-2_pkg_setup
83 -}
84 -
85 -src_prepare() {
86 - cmake_src_prepare
87 -
88 - # install wrapper for pmdefaults
89 - if use java ; then
90 - cat > pm_java/pmdefaults/pmdefaults <<-EOF
91 - #!/bin/sh
92 - java -Djava.library.path="${EPREFIX}/usr/$(get_libdir)/" \\
93 - -jar "${EPREFIX}/usr/share/${PN}/lib/pmdefaults.jar"
94 - EOF
95 - [[ $? -ne 0 ]] && die "cat pmdefaults failed"
96 - fi
97 -}
98 -
99 -src_configure() {
100 - if use debug ; then
101 - CMAKE_BUILD_TYPE=Debug
102 - else
103 - CMAKE_BUILD_TYPE=Release
104 - fi
105 -
106 - local mycmakeargs=(
107 - -DPORTMIDI_ENABLE_JAVA=$(usex java)
108 - -DPORTMIDI_ENABLE_STATIC=$(usex static-libs)
109 - -DPORTMIDI_ENABLE_TEST=$(usex test-programs)
110 - )
111 -
112 - if use java ; then
113 - mycmakeargs+=(-DJAR_INSTALL_DIR="${EPREFIX}/usr/share/${PN}/lib")
114 - fi
115 -
116 - cmake_src_configure
117 -}
118 -
119 -src_compile() {
120 - cmake_src_compile
121 -
122 - if use python ; then
123 - sed -i -e "/library_dirs=.*linux/s#./linux#${CMAKE_BUILD_DIR}#" pm_python/setup.py || die
124 - pushd pm_python > /dev/null
125 - append-ldflags -L"${BUILD_DIR}"
126 - distutils-r1_src_compile
127 - popd > /dev/null
128 - fi
129 -
130 - if use doc ; then
131 - doxygen || die "doxygen failed"
132 - pushd latex > /dev/null
133 - VARTEXFONTS="${T}"/fonts emake
134 - popd > /dev/null
135 - fi
136 -}
137 -
138 -src_install() {
139 - cmake_src_install
140 -
141 - dodoc CHANGELOG.txt README.txt pm_linux/README_LINUX.txt
142 -
143 - use doc && dodoc latex/refman.pdf
144 -
145 - if use python ; then
146 - pushd pm_python > /dev/null
147 - distutils-r1_src_install
148 - popd > /dev/null
149 - fi
150 -
151 - if use java ; then
152 - newdoc pm_java/README.txt README_JAVA.txt
153 - newicon pm_java/pmdefaults/pmdefaults-icon.png pmdefaults.png
154 - make_desktop_entry pmdefaults Pmdefaults pmdefaults "AudioVideo;Audio;Midi;"
155 - fi
156 -
157 - if use test-programs ; then
158 - exeinto /usr/$(get_libdir)/${PN}
159 - local app
160 - for app in latency midiclock midithread midithru mm qtest sysex test ; do
161 - doexe "${BUILD_DIR}"/${app}
162 - done
163 - fi
164 -}