Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-plugins/distrho-ports: add version 2021-03-15 #550

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

52 changes: 52 additions & 0 deletions media-plugins/distrho-ports/distrho-ports-20210115.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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}"

PATCHES=(
"${FILESDIR}/${P}-add-missing-header.patch"
)

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are on EAPI=8 now. Please consider bumping the EAPI.


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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As before, please consider an EAPI bump.


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=""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to remove the if block? Keeping the if block would allow us to only maintain the live ebuild and copy it over to new versioned ebuilds upon new releases.

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
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Include missing header. This allows the code to be compiled with GCC 12 or
later.

diff a/libs/juce-current/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp b/libs/juce-current/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp
--- a/libs/juce-current/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp
+++ b/libs/juce-current/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp
@@ -23,6 +23,7 @@
==============================================================================
*/

+#include <array>
#include <unordered_map>

namespace juce