From 374561aeaff53ce5a2836af934749923b4ea3763 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 20 Jan 2023 23:41:21 +0000 Subject: gentoo auto-resync : 20:01:2023 - 23:41:20 --- media-libs/Manifest.gz | Bin 68102 -> 68262 bytes media-libs/portsmf/Manifest | 6 +++ ...ortsmf-239-revert-extern-to-static-change.patch | 48 +++++++++++++++++++++ ...portsmf-239-set-correct-cmake-project-ver.patch | 26 +++++++++++ .../portsmf-239-set-correct-pkg-config-ver.patch | 43 ++++++++++++++++++ media-libs/portsmf/metadata.xml | 11 +++++ media-libs/portsmf/portsmf-239.ebuild | 39 +++++++++++++++++ 7 files changed, 173 insertions(+) create mode 100644 media-libs/portsmf/Manifest create mode 100644 media-libs/portsmf/files/portsmf-239-revert-extern-to-static-change.patch create mode 100644 media-libs/portsmf/files/portsmf-239-set-correct-cmake-project-ver.patch create mode 100644 media-libs/portsmf/files/portsmf-239-set-correct-pkg-config-ver.patch create mode 100644 media-libs/portsmf/metadata.xml create mode 100644 media-libs/portsmf/portsmf-239.ebuild (limited to 'media-libs') diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz index 727f3303b8f3..e5e1740c71bc 100644 Binary files a/media-libs/Manifest.gz and b/media-libs/Manifest.gz differ diff --git a/media-libs/portsmf/Manifest b/media-libs/portsmf/Manifest new file mode 100644 index 000000000000..52ab5e3700ce --- /dev/null +++ b/media-libs/portsmf/Manifest @@ -0,0 +1,6 @@ +AUX portsmf-239-revert-extern-to-static-change.patch 1456 BLAKE2B 9859e993af11792727d67992a6b696da983a2cdfc6369edfb547b78a94588e4a1823d8370db7c49bde85e772d83c6f19819cec61f8365142a5695aea1d63b647 SHA512 83675b75fb94935549335f980eb5f2789b467320ea2197ecd3208b271d762cd514f6789dbe340b6ea98779badc7660ac3fd598f945ff99cc4cd1d91ddbda89a2 +AUX portsmf-239-set-correct-cmake-project-ver.patch 706 BLAKE2B 1e5036ee1e7ff278209659708d4535a05d8f569d2f0609d439e937d48b5fd8bfaf1bdec2712d2fa66deb450ddcf6dbb7fd476e1a68c7d0d6b7461d2e8c7fb13b SHA512 32c43ab24ad5d4a9e1546f811f1c013dbe2e2790a4fb24eeeb59876ea7393981f589a9f73d00cf4ddf1e558559ce86c1c9145623187ef8cd63dedf10ca95cd20 +AUX portsmf-239-set-correct-pkg-config-ver.patch 1216 BLAKE2B 8362c220d4b544fd723a72c8a295ed1b01fc9c6719f4163e9c6ecc0317e0d2375778338a3e1a3bdc28bd8ac9d93d493aed3bebe0e867a11ce622f64c3fbaebdf SHA512 6b7a61b7ecd79ffc3188b994b9d78e9834d73a51b748e77552824a92b49c699aab3afb010411c323acc15995f3334b1f15d90cf216805d96eff51cfade1e278b +DIST portsmf-239.tar.gz 82769 BLAKE2B 7596c3c66c15a5daa51c4962f785375568c35093a293bba48ec2742c6409c72ba3ff2f10c2b0a38969a0c14510ef06b94c6ed52429d5c55f05635637b5acbb37 SHA512 5908ef79043b44f90da8286d639a0693334f160454d206f4a212fe958a7a2e19cbc18e4240e191c1678690f34976c5e0d34dcb030d7bab007ee528fbb5e19486 +EBUILD portsmf-239.ebuild 1078 BLAKE2B 83e3b772711d97e00d3f7d07c7d6ce95444d23bc654dd85a87c18e4dcd81d9885708af09b9e0182c14ddbee9fc1057e135d3ea8f5b6d15eb24b2ea19f6decf4e SHA512 fd4407902828dfad9ac76ff32a8a16fa5530da05ca39f968855d5c81c2e2ba3704157216e1a2ee783f859af475c6681a3a9fb0eecf8af01e0dcf6e5cb2030c7d +MISC metadata.xml 344 BLAKE2B e212b0adabab71b9e479419c249f98e9252397df58e67386851baa0b6ac902b325b7e965998b6d3234315c76988726c13725647ca2222f1bd1f8c90ae275258a SHA512 afef320b8180ffccdeabc3d8a276d1df6d08827d09569fb8e9776d0bd0119e2ef2b22ffca612534432be84f9ac7db3a32095b8b7820b4fefcf598b326df564ce diff --git a/media-libs/portsmf/files/portsmf-239-revert-extern-to-static-change.patch b/media-libs/portsmf/files/portsmf-239-revert-extern-to-static-change.patch new file mode 100644 index 000000000000..41a243cabb6c --- /dev/null +++ b/media-libs/portsmf/files/portsmf-239-revert-extern-to-static-change.patch @@ -0,0 +1,48 @@ +From 149f4687db15d1759723d5d3e8334980239f9d56 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Sun, 18 Dec 2022 16:09:27 +0100 +Subject: [PATCH 3/3] Revert "fix linking Alg_atoms symbol_table with dynamic + linking with MSVC" + +This reverts commit 951b636f7d0cba370d483a91f1897c71f3d98530. + +This change separated the symbol_table that portSMF provides from the one that +the consumers use. I suspect this was wrong, and the problem it fixes in +actuality was somewhere else. +--- +This effectively makes the packaged version v238. + +Forwarded: https://codeberg.org/tenacityteam/portsmf/pulls/11 + + include/allegro.h | 2 +- + src/allegro.cpp | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/include/allegro.h b/include/allegro.h +index 460b3fb..7bba98e 100755 +--- a/include/allegro.h ++++ b/include/allegro.h +@@ -109,7 +109,7 @@ private: + void expand(); // make more space + }; + +-static Alg_atoms symbol_table; ++extern Alg_atoms symbol_table; + + + // an attribute/value pair. Since Alg_attribute names imply type, +diff --git a/src/allegro.cpp b/src/allegro.cpp +index cdbef90..1305d48 100755 +--- a/src/allegro.cpp ++++ b/src/allegro.cpp +@@ -30,6 +30,7 @@ + // 4267 is size_t to long warning + #pragma warning(disable: 4311 4996 4267) + #endif ++Alg_atoms symbol_table; + Serial_read_buffer Alg_track::ser_read_buf; // declare the static variables + Serial_write_buffer Alg_track::ser_write_buf; + +-- +2.39.0 + diff --git a/media-libs/portsmf/files/portsmf-239-set-correct-cmake-project-ver.patch b/media-libs/portsmf/files/portsmf-239-set-correct-cmake-project-ver.patch new file mode 100644 index 000000000000..3f6a11702096 --- /dev/null +++ b/media-libs/portsmf/files/portsmf-239-set-correct-cmake-project-ver.patch @@ -0,0 +1,26 @@ +From e26f7ccfc40365f7d32f702d0b66b8f3f7aaa5a2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Sun, 18 Dec 2022 16:06:15 +0100 +Subject: [PATCH 2/3] Fix up project VERSION declaration + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Forwarded: https://codeberg.org/tenacityteam/portsmf/pulls/11 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9d306f2..9df117f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,6 +1,6 @@ + cmake_minimum_required(VERSION 3.1) + +-project(PortSMF VERSION 236 LANGUAGES CXX) ++project(PortSMF VERSION 239 LANGUAGES CXX) + set(SOVERSION 1) + set(LIBRARY_VERSION 1.0.${CMAKE_PROJECT_VERSION}) + +-- +2.39.0 + diff --git a/media-libs/portsmf/files/portsmf-239-set-correct-pkg-config-ver.patch b/media-libs/portsmf/files/portsmf-239-set-correct-pkg-config-ver.patch new file mode 100644 index 000000000000..2e6ea0976b6d --- /dev/null +++ b/media-libs/portsmf/files/portsmf-239-set-correct-pkg-config-ver.patch @@ -0,0 +1,43 @@ +From 4b2a7223f1549b7acd279f5a5b2fde4c4642dbf9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Sun, 18 Dec 2022 16:05:36 +0100 +Subject: [PATCH 1/3] packaging: set correct Version: in pkg-config file + +--- + packaging/portSMF.pc.in | 24 ++++++++++++------------ + 1 file changed, 12 insertions(+), 12 deletions(-) + +Forwarded: https://codeberg.org/tenacityteam/portsmf/pulls/11 + +diff --git a/packaging/portSMF.pc.in b/packaging/portSMF.pc.in +index 7cdca36..756698f 100644 +--- a/packaging/portSMF.pc.in ++++ b/packaging/portSMF.pc.in +@@ -1,12 +1,12 @@ +-prefix=@CMAKE_INSTALL_PREFIX@ +-includedir=${prefix}/include +-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ +- +-Name: portSMF +-Description: Portmedia Simple Midi File library +-Requires: +-Version: 0.1 +-URL: https://github.com/tenacityteam/portsmf +- +-Libs: -L${libdir} -lportSMF +-Cflags: -I${includedir} ++prefix=@CMAKE_INSTALL_PREFIX@ ++includedir=${prefix}/include ++libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ ++ ++Name: portSMF ++Description: Portmedia Simple Midi File library ++Requires: ++Version: @LIBRARY_VERSION@ ++URL: https://github.com/tenacityteam/portsmf ++ ++Libs: -L${libdir} -lportSMF ++Cflags: -I${includedir} +-- +2.39.0 + diff --git a/media-libs/portsmf/metadata.xml b/media-libs/portsmf/metadata.xml new file mode 100644 index 000000000000..a5a3bd8d637d --- /dev/null +++ b/media-libs/portsmf/metadata.xml @@ -0,0 +1,11 @@ + + + + + arsen@gentoo.org + Arsen Arsenović + + + tenacityteam/portsmf + + diff --git a/media-libs/portsmf/portsmf-239.ebuild b/media-libs/portsmf/portsmf-239.ebuild new file mode 100644 index 000000000000..8b8578b7e613 --- /dev/null +++ b/media-libs/portsmf/portsmf-239.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="The Tenacity fork of PortSMF, a Standard MIDI File library" +HOMEPAGE="https://github.com/tenacityteam/portsmf" +SRC_URI=" + https://github.com/tenacityteam/portsmf/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz +" +LICENSE="MIT" +SLOT="0/1" # SOVERSION in CMakeLists.txt / SONAME suffix +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${PN}"-239-revert-extern-to-static-change.patch + "${FILESDIR}/${PN}"-239-set-correct-cmake-project-ver.patch + "${FILESDIR}/${PN}"-239-set-correct-pkg-config-ver.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test on off) + ## This is "Build example applications" according to upstream + #-DBUILD_APPS=$(usex examples on off) + # The above requires a non-existent PortMidiConfig.cmake. + ) + cmake_src_configure +} + +src_test() { + # Remove this function when bumping. Upstream HEAD has CTest. + cd "${BUILD_DIR}"/test || die + ./test