Skip to content

Commit

Permalink
media-plugins/distrho-ports: add 20210315 (gentoo-audio#455)
Browse files Browse the repository at this point in the history
Since the addition of the vitalium plugins on 2021-03-01, distrho-ports
has been requiring FFTW as a dependency.

Get rid of ebuild symlinks, split the ebuilds between release (YYYYMMDD)
and live (99999999) ebuilds, and add the FFTW dependency where required.
  • Loading branch information
nicoroeser committed Aug 20, 2023
1 parent 1cc17ad commit 0f53ee9
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 13 deletions.
1 change: 1 addition & 0 deletions media-plugins/distrho-ports/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST distrho-ports-20210115.tar.gz 31956873 BLAKE2B f5ef5c279dfb79ad80bf11c7de20c877e1db21bb13a99a42130224d602b2b31d419100ffa2274f6d66a56f21b10050a8b4d44211c96bcf063bf3eda7042660e1 SHA512 48e3e23357727e214e2b2b08854ec1d874ed3cc35a9c5f028ae27c084b3f37ecde24adab51c21019187895ffdd0745bf6f9efabace00f419f414897898f5f183
DIST distrho-ports-20210315.tar.gz 39115342 BLAKE2B 086d370663068fe87fc01d677f07a1440410778d47bb0de03a5a49e8cec8e8f854c1841e67c491a82b5a4142b6a5d2bf81d8c6c3d76179d7cede60206f572ea4 SHA512 c89c5535ac05b0e8676bedbf259fdf66e9a3fbb7dcf28c6200320cab4aa91ab5da8fdb26ed0f79de58018660e05b65e4b88485f737438e15af340496aa43fe7a
1 change: 0 additions & 1 deletion media-plugins/distrho-ports/distrho-ports-20210115.ebuild

This file was deleted.

48 changes: 48 additions & 0 deletions media-plugins/distrho-ports/distrho-ports-20210115.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit meson

DESCRIPTION="Linux ports of Distrho plugins"
HOMEPAGE="https://github.com/DISTRHO/DISTRHO-Ports"
MY_PN="${PV:0:4}-${PV:4:2}-${PV:6:2}"
SRC_URI="https://github.com/DISTRHO/DISTRHO-Ports/archive/${MY_PN}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/DISTRHO-Ports-${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="mirror"

IUSE="lv2 vst"
REQUIRED_USE="|| ( lv2 vst )"

RDEPEND="media-libs/alsa-lib
media-libs/freetype
virtual/opengl
x11-libs/libX11
x11-libs/libXext
x11-libs/libXcursor
x11-libs/libXrender"
DEPEND="${RDEPEND}"

src_prepare() {
# Remove stripping of binaries
sed -i -e "/'-Wl,--strip-all',/d" meson.build || die "sed failed"

# Remove hardcoded O3 CFLAG
sed -i -e "s/'-O3', //" meson.build || die "sed failed"

default
}

src_configure() {
local emesonargs=(
-Doptimizations=false
$(meson_use vst build-vst2)
$(meson_use vst build-vst3)
$(meson_use lv2 build-lv2)
)
meson_src_configure
}
49 changes: 49 additions & 0 deletions media-plugins/distrho-ports/distrho-ports-20210315.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit meson

DESCRIPTION="Linux ports of Distrho plugins"
HOMEPAGE="https://github.com/DISTRHO/DISTRHO-Ports"
MY_PN="${PV:0:4}-${PV:4:2}-${PV:6:2}"
SRC_URI="https://github.com/DISTRHO/DISTRHO-Ports/archive/${MY_PN}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/DISTRHO-Ports-${MY_PN}"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="mirror"

IUSE="lv2 vst"
REQUIRED_USE="|| ( lv2 vst )"

RDEPEND="media-libs/alsa-lib
media-libs/freetype
virtual/opengl
x11-libs/libX11
x11-libs/libXext
x11-libs/libXcursor
x11-libs/libXrender
sci-libs/fftw:3.0="
DEPEND="${RDEPEND}"

src_prepare() {
# Remove stripping of binaries
sed -i -e "/'-Wl,--strip-all',/d" meson.build || die "sed failed"

# Remove hardcoded O3 CFLAG
sed -i -e "s/'-O3', //" meson.build || die "sed failed"

default
}

src_configure() {
local emesonargs=(
-Doptimizations=false
$(meson_use vst build-vst2)
$(meson_use vst build-vst3)
$(meson_use lv2 build-lv2)
)
meson_src_configure
}
17 changes: 5 additions & 12 deletions media-plugins/distrho-ports/distrho-ports-99999999.ebuild
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit meson
inherit meson git-r3

DESCRIPTION="Linux ports of Distrho plugins"
HOMEPAGE="https://github.com/DISTRHO/DISTRHO-Ports"
EGIT_REPO_URI="https://github.com/DISTRHO/DISTRHO-Ports"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
KEYWORDS=""
else
MY_PN="${PV:0:4}-${PV:4:2}-${PV:6:2}"
SRC_URI="https://github.com/DISTRHO/DISTRHO-Ports/archive/${MY_PN}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/DISTRHO-Ports-${MY_PN}"
fi
KEYWORDS=""
LICENSE="GPL-2"
SLOT="0"
RESTRICT="mirror"
Expand All @@ -30,7 +22,8 @@ RDEPEND="media-libs/alsa-lib
x11-libs/libX11
x11-libs/libXext
x11-libs/libXcursor
x11-libs/libXrender"
x11-libs/libXrender
sci-libs/fftw:3.0="
DEPEND="${RDEPEND}"

src_prepare() {
Expand Down

0 comments on commit 0f53ee9

Please sign in to comment.