From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 87FB915ACFC for ; Sat, 29 Apr 2023 05:46:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0546E088A; Sat, 29 Apr 2023 05:46:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6676DE088A for ; Sat, 29 Apr 2023 05:46:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 521DB33BE65 for ; Sat, 29 Apr 2023 05:46:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF8A3A40 for ; Sat, 29 Apr 2023 05:46:25 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1682747145.7f9196dacbbfcfbfcb3744d13f0ff41e2a9b32c1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/portmidi/, media-libs/portmidi/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/portmidi/Manifest media-libs/portmidi/files/portmidi-2.0.4-cmake.patch media-libs/portmidi/portmidi-2.0.4.ebuild X-VCS-Directories: media-libs/portmidi/ media-libs/portmidi/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7f9196dacbbfcfbfcb3744d13f0ff41e2a9b32c1 X-VCS-Branch: master Date: Sat, 29 Apr 2023 05:46:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4fcb33c8-b42d-415e-9133-04694f4f4a77 X-Archives-Hash: 35b764484f098019c038c15216c2f070 commit: 7f9196dacbbfcfbfcb3744d13f0ff41e2a9b32c1 Author: Sam James gentoo org> AuthorDate: Sat Apr 29 05:38:49 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Apr 29 05:45:45 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f9196da media-libs/portmidi: add 2.0.4 Switch to new repo on github (linked to from sourceforge). This is _not_ the Tenacity fork. Drop Java support as it's deprecated upstream. Note that this compares lower than 236 (2.0.4 < 236) but this is a newer version; 234 will be renamed to 0.234 to reflect this. Bug: https://bugs.gentoo.org/810577 Closes: https://bugs.gentoo.org/735170 Closes: https://bugs.gentoo.org/874084 Signed-off-by: Sam James gentoo.org> media-libs/portmidi/Manifest | 1 + .../portmidi/files/portmidi-2.0.4-cmake.patch | 11 +++ media-libs/portmidi/portmidi-2.0.4.ebuild | 82 ++++++++++++++++++++++ 3 files changed, 94 insertions(+) diff --git a/media-libs/portmidi/Manifest b/media-libs/portmidi/Manifest index 8bf9b5aa5743..a6b2822dfb2c 100644 --- a/media-libs/portmidi/Manifest +++ b/media-libs/portmidi/Manifest @@ -1 +1,2 @@ DIST portmedia-code-r234.zip 1342298 BLAKE2B 3c3686b79ca0c8cbfaa6c44ae8c4f294630e1c5940576709ff1ca5854bfcfba1af7b067471656f2b39ae28cecea9b6c4403f72d5a2552355760c795eff123243 SHA512 cbc332d89bc465450b38245a83cc300dfd2e1e6de7c62284edf754ff4d8a9aa3dc49a395dcee535ed9688befb019186fa87fd6d8a3698898c2acbf3e6b7a0794 +DIST portmidi-2.0.4.tar.gz 263225 BLAKE2B fd8b002880ccfcff9f233e2fa5021fe4cf9da2f91b3ceaa36fe70f96818e174578f9a14b69bdbb58fab777c9a9e4ff939b86814a403860c7ec264dddc6f26e85 SHA512 d9f22d161e1dd9a4bde1971bb2b6e5352da51545f4fe5ecad11c55e7a535f0d88efce18d1c8fd91e93b70a7926150f86a0f53972ad92370e86556a8dd72dc194 diff --git a/media-libs/portmidi/files/portmidi-2.0.4-cmake.patch b/media-libs/portmidi/files/portmidi-2.0.4-cmake.patch new file mode 100644 index 000000000000..ff0257ec64e5 --- /dev/null +++ b/media-libs/portmidi/files/portmidi-2.0.4-cmake.patch @@ -0,0 +1,11 @@ +--- a/pm_test/CMakeLists.txt ++++ b/pm_test/CMakeLists.txt +@@ -6,6 +6,8 @@ if(APPLE) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) + endif(APPLE) + ++set(CMAKE_SKIP_BUILD_RPATH TRUE) ++ + # if(WIN32) + # if(NOT BUILD_SHARED_LIBS) + # /MDd is multithread debug DLL, /MTd is multithread debug diff --git a/media-libs/portmidi/portmidi-2.0.4.ebuild b/media-libs/portmidi/portmidi-2.0.4.ebuild new file mode 100644 index 000000000000..215e567b9bf8 --- /dev/null +++ b/media-libs/portmidi/portmidi-2.0.4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="Library for real time MIDI input and output" +HOMEPAGE="https://github.com/PortMidi/portmidi" +SRC_URI="https://github.com/PortMidi/portmidi/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug doc test-programs" +# Per pm-test/README: +# "Because device numbers depend on the system, there is no automated +# script to run all tests on PortMidi." +RESTRICT="test" + +RDEPEND=" + media-libs/alsa-lib +" +DEPEND=" + ${DEPEND} +" +BDEPEND=" + app-arch/unzip + doc? ( + app-doc/doxygen + dev-texlive/texlive-fontsrecommended + dev-texlive/texlive-latexextra + virtual/latex-base + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-cmake.patch +) + +src_configure() { + if use debug ; then + CMAKE_BUILD_TYPE=Debug + else + CMAKE_BUILD_TYPE=Release + fi + + # Python bindings dropped b/c of bug #855077 + local mycmakeargs=( + -DBUILD_PORTMIDI_TESTS=$(usex test-programs) + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc ; then + doxygen || die "doxygen failed" + + pushd latex > /dev/null || die + VARTEXFONTS="${T}"/fonts emake + popd > /dev/null || die + fi +} + +src_install() { + cmake_src_install + + dodoc CHANGELOG.txt README.txt pm_linux/README_LINUX.txt + + use doc && dodoc latex/refman.pdf + + if use test-programs ; then + exeinto /usr/$(get_libdir)/${PN} + local app + for app in latency midiclock midithread midithru mm qtest sysex ; do + doexe "${BUILD_DIR}"/pm_test/${app} + done + fi +}