diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-12 05:48:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-12 05:48:13 +0100 |
commit | 8d9dd6a2b8f0525f6337deacd0cc20027f645396 (patch) | |
tree | 055778f8b0feeae92daec20b5693a21a206ea379 /media-plugins/mda-lv2 | |
parent | 02930d1eb5af78d32b1597af6af24163895d9e0f (diff) |
gentoo auto-resync : 12:05:2023 - 05:48:13
Diffstat (limited to 'media-plugins/mda-lv2')
-rw-r--r-- | media-plugins/mda-lv2/Manifest | 5 | ||||
-rw-r--r-- | media-plugins/mda-lv2/files/mda-lv2-1.2.10-autoship-disable.patch | 38 | ||||
-rw-r--r-- | media-plugins/mda-lv2/files/mda-lv2-1.2.10-strict-aliasing.patch | 37 | ||||
-rw-r--r-- | media-plugins/mda-lv2/mda-lv2-1.2.10-r1.ebuild | 47 | ||||
-rw-r--r-- | media-plugins/mda-lv2/metadata.xml | 3 |
5 files changed, 129 insertions, 1 deletions
diff --git a/media-plugins/mda-lv2/Manifest b/media-plugins/mda-lv2/Manifest index 90907b69f72f..4c586b5ad7de 100644 --- a/media-plugins/mda-lv2/Manifest +++ b/media-plugins/mda-lv2/Manifest @@ -1,3 +1,6 @@ +AUX mda-lv2-1.2.10-autoship-disable.patch 1051 BLAKE2B a9ab368c109cddce543c24eef22c3fcfbf54d381f0c0e41f7f9055bebd4d05f51d2d9b66a930e48663caca8db59c65eb43ab1c94e39eb5dc7f4904159f6bc66b SHA512 9fdf8ce8dc731343ce0c4938cc806025e6985e4570d3cdd0d6251368f46b7b2037ebdab21fa70ad30248ef3d1652047d595c7f49a7daffcce527dbf4075fbc48 +AUX mda-lv2-1.2.10-strict-aliasing.patch 1195 BLAKE2B a0d43a528100c828060875731357f33d8f76c8f967929b045f55fef835af314318f3a2de0858821727973076372d0f5d5825ae287a2117b0f7e62f55cdbd6198 SHA512 6712a36552a6755563f32c7eac9345abe61516c123c603765c623fab191ae2e5461b1e566dab908be0e576d4798fdab398f6600eae7e752c89367fdaf6462f0f DIST mda-lv2-1.2.10.tar.xz 2081216 BLAKE2B f201cff828fcef037795935bbeb56b0c2067a2f66666f99d8f90507333249c128d5d6202bc38a96dafa9f9aab28f5c9b571f9e8d88f7a77fd1b23f5fca1376d4 SHA512 be490887be25b2578a4f0a0f7d571aaa1bad37a640094ffde7bdca21a285ddf7d7650f96f735cb0ec01e262bddb945ab9e8923a2d8b94afb5dc6940cf4e2b054 +EBUILD mda-lv2-1.2.10-r1.ebuild 1127 BLAKE2B 2fd9786e3eb6e001c87c61ff67c1f9bd3667ae873ee0161fa05288f051887e7dfee82ec43e3f885d42cfb22ab32a9b81571ce175d518094b87d2b5c6e0e50448 SHA512 51f3522b564350e857f9859f63c1a63e209603004c96c5000fc1ca39af52660987ebbc599f2b208e81765c5c12a7e498157e518f91f8b38d7e9bc9716a9306f5 EBUILD mda-lv2-1.2.10.ebuild 420 BLAKE2B 24e17e1202f896a184d6fbb8b5231a9575ec52fa1b47bdd531dbae2c7906c115ad37ca2fea5d0da0f0598d5f5100ff5188e0f0dfafd7612d1996a91f3dc8e7df SHA512 e57c5aaee16a077a19c1f8fbc6c6278f84de53dc853360f9d183177fa86d0e60b9cdf905838c35aaa4e29fcb40fd67dfc80b3ec21ad01ed7b52ef62835364c73 -MISC metadata.xml 1640 BLAKE2B 3e5516dc2ae75064048fe89c3da3342c63504be12a1e9bab5356f96a2738f8d6caa1f28cee37ce946bf31f49da38794e88180305d75002bf71d9dbe6333d9d71 SHA512 ac020f4d792fd4bc2a942f102cf53085c2cc74a4120d9cc7d0a22e64de24b6686d49902172e14f7fd28f7cdd9bcd0658481f70c8fa5ac36be172402f40e3e7e7 +MISC metadata.xml 1718 BLAKE2B f7aac9b68df5d553647ca98cf1c58daa9b2067b9b440489f1c26c213fab45639aa3539c5ff52d9cf1a0e477db5919f899f07fcb400a7cc9d81b9532f9783d7a4 SHA512 1a80420488d76f971c59294a94744be74f7478d05eba73e965ca21439368ba0ee2c515499535cd738b94d624db6c9424866383d31d3a30dc112807d711ea9f13 diff --git a/media-plugins/mda-lv2/files/mda-lv2-1.2.10-autoship-disable.patch b/media-plugins/mda-lv2/files/mda-lv2-1.2.10-autoship-disable.patch new file mode 100644 index 000000000000..c358416ffd85 --- /dev/null +++ b/media-plugins/mda-lv2/files/mda-lv2-1.2.10-autoship-disable.patch @@ -0,0 +1,38 @@ +https://gitlab.com/drobilla/mda-lv2/-/commit/e85a6c7fc8e0bccbe23691a6bf10bbbd2ce048bf + +From e85a6c7fc8e0bccbe23691a6bf10bbbd2ce048bf Mon Sep 17 00:00:00 2001 +From: David Robillard <d@drobilla.net> +Date: Mon, 22 Aug 2022 10:50:10 -0400 +Subject: [PATCH] Only run autoship test in strict mode + +--- a/meson.build ++++ b/meson.build +@@ -61,15 +61,17 @@ subdir('mda.lv2') + ######### + + if not get_option('tests').disabled() and not meson.is_subproject() +- # Check release metadata +- autoship = find_program('autoship', required: get_option('tests')) +- if autoship.found() +- test( +- 'autoship', +- autoship, +- args: ['test', meson.current_source_dir()], +- suite: 'data', +- ) ++ if get_option('strict') ++ # Check release metadata ++ autoship = find_program('autoship', required: get_option('tests')) ++ if autoship.found() ++ test( ++ 'autoship', ++ autoship, ++ args: ['test', meson.current_source_dir()], ++ suite: 'data', ++ ) ++ endif + endif + + # Check licensing metadata +-- +GitLab diff --git a/media-plugins/mda-lv2/files/mda-lv2-1.2.10-strict-aliasing.patch b/media-plugins/mda-lv2/files/mda-lv2-1.2.10-strict-aliasing.patch new file mode 100644 index 000000000000..d8e6c8e605aa --- /dev/null +++ b/media-plugins/mda-lv2/files/mda-lv2-1.2.10-strict-aliasing.patch @@ -0,0 +1,37 @@ +https://gitlab.com/drobilla/mda-lv2/-/commit/ac0590c5a8f84f9edcd6817e44976ad75fccb252 + +From ac0590c5a8f84f9edcd6817e44976ad75fccb252 Mon Sep 17 00:00:00 2001 +From: David Robillard <d@drobilla.net> +Date: Tue, 16 Aug 2022 17:04:16 -0400 +Subject: [PATCH] Fix strict aliasing violation + +Generally, I maintain this as a faithful port with minimal changes, but in this +case, it's just filling a float up with garbage anyway, so the worst case can't +be that bad. +--- a/meson/suppressions/meson.build ++++ b/meson/suppressions/meson.build +@@ -82,11 +82,5 @@ if is_variable('cpp') + endif + endif + +- if cpp.get_id() == 'gcc' +- cpp_suppressions += [ +- '-Wno-strict-aliasing', +- ] +- endif +- + cpp_suppressions = cpp.get_supported_arguments(cpp_suppressions) + endif +--- a/src/mdaJX10.cpp ++++ b/src/mdaJX10.cpp +@@ -468,7 +468,7 @@ void mdaJX10::processReplacing(float **inputs, float **outputs, int32_t sampleFr + + noise = (noise * 196314165) + 907633515; + r = (noise & 0x7FFFFF) + 0x40000000; //generate noise + fast convert to float +- w = *(float *)&r; ++ memcpy(&w, &r, sizeof(float)); + w = ww * (w - 3.0f); + + if(--k<0) +-- +GitLab diff --git a/media-plugins/mda-lv2/mda-lv2-1.2.10-r1.ebuild b/media-plugins/mda-lv2/mda-lv2-1.2.10-r1.ebuild new file mode 100644 index 000000000000..9a73be0503be --- /dev/null +++ b/media-plugins/mda-lv2/mda-lv2-1.2.10-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="LV2 port of the MDA plugins by Paul Kellett" +HOMEPAGE="https://drobilla.net/software/mda-lv2.html" +SRC_URI="https://download.drobilla.net/${P}.tar.xz" + +# See README +LICENSE="|| ( GPL-2+ MIT )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +# Tests fail because of lvz_new_audioeffectx symbol in plugins, check +# on new lv2lint release (>0.16.2). See https://gitlab.com/drobilla/mda-lv2/-/issues/2. +RESTRICT="!test? ( test ) test" + +DEPEND="media-libs/lv2" +RDEPEND="${DEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( dev-util/lv2lint ) +" + +PATCHES=( + "${FILESDIR}"/${P}-strict-aliasing.patch + "${FILESDIR}"/${P}-autoship-disable.patch +) + +src_prepare() { + default + + # reuse isn't packaged right now, but it's only for licencing + # i.e. it's essentially a lint check so not relevant for us downstream. + sed -i -e "/reuse = find_program('reuse', required/s:get_option('tests'):false:" meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_feature test tests) + ) + + meson_src_configure +} diff --git a/media-plugins/mda-lv2/metadata.xml b/media-plugins/mda-lv2/metadata.xml index 6ba8ddc33e95..f5ccf86599e1 100644 --- a/media-plugins/mda-lv2/metadata.xml +++ b/media-plugins/mda-lv2/metadata.xml @@ -14,4 +14,7 @@ The instrument plugins make use of the new atom:AtomPort to receive MIDI. Apologies for any inconvenience, but this means they will only work in modern hosts which have implemented atom-based MIDI. The effects should work fine in any LV2 host. </longdescription> +<upstream> + <remote-id type="gitlab">drobilla/mda-lv2</remote-id> +</upstream> </pkgmetadata> |