mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
media-libs/lsp-plugins: add 1.2.35
Use an array and common function for args so we don't lose any for compilation and install. Add some notes about tests too. Closes: https://bugs.gentoo.org/983344 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST lsp-plugins-1.2.14.tar.gz 46476007 BLAKE2B 3807a373e0c6d57f72cec2babc939810d208dca8791ebb2bd0abfdd6779253b2ee0a3163d97224cbcd3eb49a1fd4f059512e620ee96a61f072e3659b01a189ff SHA512 2a53111289d764b91e9a463a748415730cdb16d62b8250a082ae2cb3423dbe41bd4072c2256d07a15b89b9cf548ce27d1f7578514c6f0b99230aeddfbcc4eadb
|
||||
DIST lsp-plugins-1.2.3.tar.gz 38760829 BLAKE2B c28a4b5cfdbbe5fe42c3f4821ce323cb097b84eddc850f43adcc14e8a9edb2e313236ce44e4eca17dd226c578113a5749d06754deb45a6c2e7c2ff37bfed4fc2 SHA512 1db849ebceffb24540879fcd0971ddd8bffe9a0ecaaebf4b69bf8633a267562bb3eb5cd55dce8b804868d880efdec95b19a312ee017c2a9334b5e764eebbbb30
|
||||
DIST lsp-plugins-1.2.35.tar.gz 78369996 BLAKE2B 1dd5b67836d81c41068641b10c2ab2cd388c2b8116bf36d5026bf292cd2a59d4e21012a2ec3331df23e495461c819696c90525ffe9abd92340a67d56543cac1c SHA512 9cdbe7492989b7fd3326d5abcf8df49de18c4d378f78f62c96b0ca0c29a91c972754c129e9d750a324a0980697699969614b322f51c4a7761b74bb3fb58f804f
|
||||
DIST lsp-plugins-1.2.6.tar.gz 40450212 BLAKE2B 02364391f4edc894c566b0038f0340be1f923c3de6dfc48ed90460df7a6ba452720e63bb1e510e5ff580e38066915f1761bcd2ca72cdba429163cf24b20ed09e SHA512 d76cee24e976022594eac4830987921ff18c0622bae1ac2fb4744d45ee89dccd1211247f9f7d6df1083c8629f66cd443bce701864a85ff10e66abcf2fae749ce
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
# Copyright 2019-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit flag-o-matic toolchain-funcs xdg
|
||||
|
||||
DESCRIPTION="Linux Studio Plugins"
|
||||
HOMEPAGE="https://lsp-plug.in"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lsp-plugins/lsp-plugins"
|
||||
EGIT_BRANCH="devel"
|
||||
else
|
||||
SRC_URI="https://github.com/lsp-plugins/${PN}/releases/download/${PV}/${PN}-src-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="doc jack ladspa +lv2 test vst X"
|
||||
REQUIRED_USE="
|
||||
|| ( jack ladspa lv2 )
|
||||
"
|
||||
# Needs wiring up properly
|
||||
RESTRICT="!test? ( test ) test"
|
||||
|
||||
BDEPEND="doc? ( dev-lang/php:* )"
|
||||
DEPEND="
|
||||
media-libs/libglvnd[X]
|
||||
media-libs/libsndfile
|
||||
jack? (
|
||||
media-libs/freetype
|
||||
virtual/jack
|
||||
x11-libs/cairo[X]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrandr
|
||||
)
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
lv2? (
|
||||
media-libs/freetype
|
||||
media-libs/lv2
|
||||
x11-libs/cairo[X]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrandr
|
||||
)
|
||||
vst? (
|
||||
media-libs/freetype
|
||||
x11-libs/cairo[X]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXrandr
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
lsp_emake() {
|
||||
local myemakeargs=(
|
||||
FEATURES="${MODULES[*]}"
|
||||
PREFIX="/usr"
|
||||
LIBDIR="/usr/$(get_libdir)"
|
||||
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LD="$(tc-getLD)"
|
||||
|
||||
CFLAGS_EXT="${CFLAGS}"
|
||||
CXXFLAGS_EXT="${CXXFLAGS}"
|
||||
LDFLAGS_EXT="$(raw-ldflags)"
|
||||
VERBOSE=1
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" "$@"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# -Werror=odr
|
||||
# https://bugs.gentoo.org/875833
|
||||
#
|
||||
# Actually the whole thing is kind of a waste of time. It looks like
|
||||
# programs use LDFLAGS, but libraries do not! So some things don't
|
||||
# build with LTO, while other things don't build when LTO is enabled.
|
||||
# Attempting to build with LTO is just a waste of time and cycles.
|
||||
#
|
||||
# This was reported upstream but the ticket closed. Abandon hope.
|
||||
filter-lto
|
||||
|
||||
MODULES=(
|
||||
$(usev doc 'doc')
|
||||
$(usev jack 'jack')
|
||||
$(usev ladspa 'ladspa')
|
||||
$(usev lv2 'lv2')
|
||||
$(usev test 'test')
|
||||
$(usev vst 'vst2')
|
||||
$(usev X 'xdg')
|
||||
)
|
||||
|
||||
lsp_emake config
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
lsp_emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# TODO: wire up tests (https://github.com/lsp-plugins/lsp-plugins#testing)
|
||||
:;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
lsp_emake DESTDIR="${ED}" install
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2019-2024 Gentoo Authors
|
||||
# Copyright 2019-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -10,22 +10,23 @@ HOMEPAGE="https://lsp-plug.in"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/sadko4u/lsp-plugins"
|
||||
EGIT_REPO_URI="https://github.com/lsp-plugins/lsp-plugins"
|
||||
EGIT_BRANCH="devel"
|
||||
else
|
||||
SRC_URI="https://github.com/sadko4u/${PN}/releases/download/${PV}/${PN}-src-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
SRC_URI="https://github.com/lsp-plugins/${PN}/releases/download/${PV}/${PN}-src-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="doc jack ladspa +lv2 test vst X"
|
||||
REQUIRED_USE="|| ( jack ladspa lv2 )"
|
||||
# test? ( jack )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
|| ( jack ladspa lv2 )
|
||||
"
|
||||
# Needs wiring up properly
|
||||
RESTRICT="!test? ( test ) test"
|
||||
|
||||
BDEPEND="doc? ( dev-lang/php:* )"
|
||||
DEPEND="
|
||||
@@ -55,6 +56,25 @@ DEPEND="
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
lsp_emake() {
|
||||
local myemakeargs=(
|
||||
FEATURES="${MODULES[*]}"
|
||||
PREFIX="/usr"
|
||||
LIBDIR="/usr/$(get_libdir)"
|
||||
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
LD="$(tc-getLD)"
|
||||
|
||||
CFLAGS_EXT="${CFLAGS}"
|
||||
CXXFLAGS_EXT="${CXXFLAGS}"
|
||||
LDFLAGS_EXT="$(raw-ldflags)"
|
||||
VERBOSE=1
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" "$@"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# -Werror=odr
|
||||
# https://bugs.gentoo.org/875833
|
||||
@@ -67,40 +87,28 @@ src_configure() {
|
||||
# This was reported upstream but the ticket closed. Abandon hope.
|
||||
filter-lto
|
||||
|
||||
use doc && MODULES+="doc"
|
||||
use jack && MODULES+=" jack"
|
||||
use ladspa && MODULES+=" ladspa"
|
||||
use lv2 && MODULES+=" lv2"
|
||||
use vst && MODULES+=" vst2"
|
||||
use X && MODULES+=" xdg"
|
||||
emake \
|
||||
FEATURES="${MODULES}" \
|
||||
PREFIX="/usr" \
|
||||
LIBDIR="/usr/$(get_libdir)" \
|
||||
CC="$(tc-getCC)" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
LD="$(tc-getLD)" \
|
||||
CFLAGS_EXT="${CFLAGS}" \
|
||||
CXXFLAGS_EXT="${CXXFLAGS}" \
|
||||
LDFLAGS_EXT="$(raw-ldflags)" \
|
||||
VERBOSE=1 \
|
||||
config
|
||||
MODULES=(
|
||||
$(usev doc 'doc')
|
||||
$(usev jack 'jack')
|
||||
$(usev ladspa 'ladspa')
|
||||
$(usev lv2 'lv2')
|
||||
$(usev test 'test')
|
||||
$(usev vst 'vst2')
|
||||
$(usev X 'xdg')
|
||||
)
|
||||
|
||||
lsp_emake config
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
FEATURES="${MODULES}" \
|
||||
PREFIX="/usr" \
|
||||
LIBDIR="/usr/$(get_libdir)" \
|
||||
CC="$(tc-getCC)" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
LD="$(tc-getLD)" \
|
||||
CFLAGS_EXT="${CFLAGS}" \
|
||||
CXXFLAGS_EXT="${CXXFLAGS}" \
|
||||
LDFLAGS_EXT="$(raw-ldflags)" \
|
||||
VERBOSE=1
|
||||
lsp_emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# TODO: wire up tests (https://github.com/lsp-plugins/lsp-plugins#testing)
|
||||
:;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="/usr" DESTDIR="${ED}" LIB_PATH="/usr/$(get_libdir)" VERBOSE=1 install
|
||||
lsp_emake DESTDIR="${ED}" install
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user