diff options
author | Sam James <sam@gentoo.org> | 2022-07-02 13:00:05 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-02 13:00:23 +0000 |
commit | 6e175c886cb3b6f04c290f93374d6de3022ac6c4 (patch) | |
tree | 086d5941774cc3a6a8504f6eb4a4dd628835f1b9 /media-libs | |
parent | dev-python/pyaudio: fix Python 3.10 compatibility (diff) | |
download | gentoo-6e175c886cb3b6f04c290f93374d6de3022ac6c4.tar.gz gentoo-6e175c886cb3b6f04c290f93374d6de3022ac6c4.tar.bz2 gentoo-6e175c886cb3b6f04c290f93374d6de3022ac6c4.zip |
media-libs/portmidi: drop broken Python bindings
Closes: https://bugs.gentoo.org/855077
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/portmidi/portmidi-234-r2.ebuild | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/media-libs/portmidi/portmidi-234-r2.ebuild b/media-libs/portmidi/portmidi-234-r2.ebuild new file mode 100644 index 000000000000..6d5bc2001e32 --- /dev/null +++ b/media-libs/portmidi/portmidi-234-r2.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ninja: error: build.ninja:521: multiple rules generate pm_java/pmdefaults.jar [-w dupbuild=err] +CMAKE_MAKEFILE_GENERATOR="emake" +# Python bindings dropped b/c of bug #855077 +inherit cmake desktop xdg java-pkg-opt-2 + +MY_P="portmedia-code-r${PV}" + +DESCRIPTION="Library for real time MIDI input and output" +HOMEPAGE="http://portmedia.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/portmedia/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug doc java static-libs test-programs" + +BDEPEND=" + app-arch/unzip + doc? ( + app-doc/doxygen + dev-texlive/texlive-fontsrecommended + dev-texlive/texlive-latexextra + virtual/latex-base + ) +" +CDEPEND=" + media-libs/alsa-lib +" +RDEPEND="${CDEPEND} + java? ( >=virtual/jre-1.8:* ) +" +DEPEND=" + ${CDEPEND} + java? ( >=virtual/jdk-1.8:* ) +" + +S="${WORKDIR}/${MY_P}/${PN}/trunk" +MAKEOPTS+=" -j1" + +PATCHES=( + # fix parallel make failures, fix java support, and allow optional + # components like test programs and static libs to be skipped + "${FILESDIR}"/${P}-cmake.patch +) + +pkg_setup() { + use java && java-pkg-opt-2_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + # install wrapper for pmdefaults + if use java ; then + cat > pm_java/pmdefaults/pmdefaults <<-EOF + #!/bin/sh + java -Djava.library.path="${EPREFIX}/usr/$(get_libdir)/" \\ + -jar "${EPREFIX}/usr/share/${PN}/lib/pmdefaults.jar" + EOF + [[ $? -ne 0 ]] && die "cat pmdefaults failed" + fi +} + +src_configure() { + if use debug ; then + CMAKE_BUILD_TYPE=Debug + else + CMAKE_BUILD_TYPE=Release + fi + + local mycmakeargs=( + -DPORTMIDI_ENABLE_JAVA=$(usex java) + -DPORTMIDI_ENABLE_STATIC=$(usex static-libs) + -DPORTMIDI_ENABLE_TEST=$(usex test-programs) + ) + + if use java ; then + mycmakeargs+=(-DJAR_INSTALL_DIR="${EPREFIX}/usr/share/${PN}/lib") + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc ; then + doxygen || die "doxygen failed" + pushd latex > /dev/null + VARTEXFONTS="${T}"/fonts emake + popd > /dev/null + fi +} + +src_install() { + cmake_src_install + + dodoc CHANGELOG.txt README.txt pm_linux/README_LINUX.txt + + use doc && dodoc latex/refman.pdf + + if use java ; then + newdoc pm_java/README.txt README_JAVA.txt + newicon pm_java/pmdefaults/pmdefaults-icon.png pmdefaults.png + make_desktop_entry pmdefaults Pmdefaults pmdefaults "AudioVideo;Audio;Midi;" + fi + + if use test-programs ; then + exeinto /usr/$(get_libdir)/${PN} + local app + for app in latency midiclock midithread midithru mm qtest sysex test ; do + doexe "${BUILD_DIR}"/${app} + done + fi +} |