diff --git a/README.md b/README.md index bdedb1802..f311a8c69 100644 --- a/README.md +++ b/README.md @@ -617,11 +617,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 1908 Ebuilds in total, 1897 of them have in total 1916 (42 different) licenses assigned. +There are 1909 Ebuilds in total, 1898 of them have in total 1917 (42 different) licenses assigned. |License| Ebuilds using it| |-------|-----| -|MIT|1072| +|MIT|1073| |Apache-2.0|444| |GPL-3|127| |BSD|105| @@ -664,9 +664,9 @@ There are 1908 Ebuilds in total, 1897 of them have in total 1916 (42 different) |GPL-2+|1| |GPL-2-with-linking-exception|1| -(Last counted: 10/03/2024) +(Last counted: 13/03/2024) I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources. A big thanks goes to Iris for reviewing this README. -Last updated: 10/03/2024 +Last updated: 13/03/2024 diff --git a/media-libs/lv2/Manifest b/media-libs/lv2/Manifest new file mode 100644 index 000000000..59ab2639d --- /dev/null +++ b/media-libs/lv2/Manifest @@ -0,0 +1,5 @@ +AUX lv2-1.18.10-tests-optional.patch 1245 BLAKE2B 1b77b64a9b613bf2299cb4bfc8f53f360a2c4b12754809ea38dca5f4d40c0a3cc636ce16131f50fbb1730af535de96749873cde7e34ecceb1c055ef614aad70c SHA512 000fe518c276d3e25558ccf76a9fd34ac4fb8c5222b94a8d47fb517496a5020963b02136b398116776e66d25920672dd57f1c3d88cbc7cfc7bc26107367aea93 +AUX lv2-1.18.6-add-missing-lv2.h.patch 401 BLAKE2B 36380468184705a7f0076e293af0c69c60815676046749f2c6bf41c8e0ad747115c673671d67bfc2882d9782288f9b7627b9dafadb023063bc478bbfa0c7c86d SHA512 bdc404792a522c2bca25ca243c469a4d109b253a761d32981055469314b23e3bb470c60b46d75b6ee1f077c7d978b51dfb2d95671cdb1eb6fd83aad01c6df4d6 +DIST lv2-1.18.10.tar.xz 237380 BLAKE2B 72f9bc50ebac5d71279e0616bb1eb3c2a6748a28ff68988294135b18c7adc68c46a52b4698faf79f633768bf850d5052128a9f84b90aa9b5f9a56721acaf04c3 SHA512 ab4bcf593f633b1ed16c0eb6aa4525458a00655ef9c87619bf85eaa966f8fd094a8e871b825f679e0d97923f8bbbf11841ff467022390ca2f1a5b5f66ccd5d1b +EBUILD lv2-1.18.10.ebuild 1749 BLAKE2B b6b1850e8fa67fe63e63911ffcb085f19dd04b241cd3cdf1c1f3689f9195c4eeb59b905bbbe16595c0ae3bf182e078bf85899b541f492b45e06c64bab4c24bba SHA512 cb0ce695d1eed9002786fd0d10ea81b918bffc53da1cf4a95c7a6f1d8e12088347f9d6de310cb9b5e1af1ed7a694f7c4c4abe7575886d54b19a56403e629666f +MISC metadata.xml 466 BLAKE2B dadec1c479bf528c62768913e86892f085a1879288abe0b55dcab28ec54583629445c38efce1deb20cfcfdeeb1d6989e10295c8c2014874b83e742e08db26089 SHA512 bfa47b7b47c935f8d2ff2f9d99fd56bb1cc5e98467d18636e73dc59e4ed7f0fa795c05e0bfd27a3146bfe615b4254c67960b06465989dd3d9524894b1063c63c diff --git a/media-libs/lv2/files/lv2-1.18.10-tests-optional.patch b/media-libs/lv2/files/lv2-1.18.10-tests-optional.patch new file mode 100644 index 000000000..dca3540cf --- /dev/null +++ b/media-libs/lv2/files/lv2-1.18.10-tests-optional.patch @@ -0,0 +1,53 @@ +https://gitlab.com/lv2/lv2/-/commit/8726bffa337e6374b04d0739df2812798b2c8858 + +From 8726bffa337e6374b04d0739df2812798b2c8858 Mon Sep 17 00:00:00 2001 +From: David Robillard +Date: Sat, 19 Nov 2022 17:49:14 -0500 +Subject: [PATCH] Avoid test directory entirely if tests are disabled + +--- a/meson.build ++++ b/meson.build +@@ -346,7 +346,9 @@ endif + subdir('util') + + # Data and build tests +-subdir('test') ++if not get_option('tests').disabled() ++ subdir('test') ++endif + + if not meson.is_subproject() + summary('Tests', not get_option('tests').disabled(), bool_yn: true) +--- a/test/meson.build ++++ b/test/meson.build +@@ -122,17 +122,15 @@ test_names = [ + ] + + # Build and run tests +-if not get_option('tests').disabled() +- foreach test_name : test_names +- test( ++foreach test_name : test_names ++ test( ++ test_name, ++ executable( + test_name, +- executable( +- test_name, +- files('test_@0@.c'.format(test_name)), +- c_args: c_suppressions, +- dependencies: lv2_dep, +- ), +- suite: 'unit', +- ) +- endforeach +-endif ++ files('test_@0@.c'.format(test_name)), ++ c_args: c_suppressions, ++ dependencies: lv2_dep, ++ ), ++ suite: 'unit', ++ ) ++endforeach +-- +GitLab diff --git a/media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch b/media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch new file mode 100644 index 000000000..40fcd2cc8 --- /dev/null +++ b/media-libs/lv2/files/lv2-1.18.6-add-missing-lv2.h.patch @@ -0,0 +1,12 @@ +--- a/meson.build ++++ b/meson.build +@@ -144,6 +144,9 @@ if get_option('old_headers') + include_prefix / 'core' / 'lv2_util.h', + ) + ++ # Special case lv2.h is also in top-level include directory ++ install_headers(files(include_prefix / 'core' / 'lv2.h')) ++ + # Core headers are inconsistently in "lv2plug.in/ns/lv2core" + install_data(core_headers, install_dir: uri_include_dir / 'lv2core') + diff --git a/media-libs/lv2/lv2-1.18.10.ebuild b/media-libs/lv2/lv2-1.18.10.ebuild new file mode 100644 index 000000000..be0618c29 --- /dev/null +++ b/media-libs/lv2/lv2-1.18.10.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) +PYTHON_REQ_USE='threads(+)' + +inherit meson-multilib python-single-r1 + +DESCRIPTION="A simple but extensible successor of LADSPA" +HOMEPAGE="https://lv2plug.in/" +SRC_URI="https://lv2plug.in/spec/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" +IUSE="doc plugins test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + plugins? ( virtual/pkgconfig ) + doc? ( + app-text/doxygen + dev-python/rdflib + ) + test? ( + dev-libs/serd + dev-libs/sord[tools] + dev-python/rdflib + ) +" +CDEPEND=" + ${PYTHON_DEPS} + plugins? ( + media-libs/libsamplerate + media-libs/libsndfile + x11-libs/gtk+:2[${MULTILIB_USEDEP}] + ) +" +DEPEND=" + ${CDEPEND} + doc? ( dev-python/markdown ) +" +RDEPEND=" + ${CDEPEND} + $(python_gen_cond_dep ' + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/rdflib[${PYTHON_USEDEP}] + ') +" + +PATCHES=( + "${FILESDIR}/${PN}-1.18.6-add-missing-lv2.h.patch" + "${FILESDIR}/${P}-tests-optional.patch" +) + +src_prepare() { + default + + # XXX: Drop this > 1.18.10, -Dstrict=false should prevent it now, bug #906047. + sed -i -e "/codespell = /s:get_option('tests'):false:" test/meson.build || die + + # fix doc installation path + sed -iE "s%lv2_docdir = .*%lv2_docdir = '"${EPREFIX}"/usr/share/doc/${PF}'%g" meson.build || die +} + +multilib_src_configure() { + local emesonargs=( + -Dlv2dir="${EPREFIX}"/usr/$(get_libdir)/lv2 + -Dstrict=false + $(meson_native_use_feature doc docs) + $(meson_feature plugins) + $(meson_feature test tests) + ) + + meson_src_configure +} + +multilib_src_install_all() { + local DOCS=( NEWS README.md ) + einstalldocs +} diff --git a/media-libs/lv2/metadata.xml b/media-libs/lv2/metadata.xml new file mode 100644 index 000000000..410e01e40 --- /dev/null +++ b/media-libs/lv2/metadata.xml @@ -0,0 +1,15 @@ + + + + + proaudio@gentoo.org + Gentoo ProAudio Project + + + Enables examples plugins. + + + lv2/lv2 + lv2/lv2 + +