Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/libvisual-plugins/
Date: Fri, 31 Jul 2020 11:04:25
Message-Id: 1596193451.7a0000ce9816be9a732c0c4350564dab9f8aecd4.fordfrog@gentoo
1 commit: 7a0000ce9816be9a732c0c4350564dab9f8aecd4
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 31 11:03:56 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 31 11:04:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0000ce
7
8 media-plugins/libvisual-plugins: switched to virtual/jack and eapi7
9
10 used patch from Jannis Achstetter <kripton <AT> kripserver.net>
11 with some modifications
12
13 Closes: https://github.com/gentoo/gentoo/pull/12454
14 Closes: https://bugs.gentoo.org/622434
15 Package-Manager: Portage-3.0.1, Repoman-2.3.23
16 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
17
18 .../libvisual-plugins-0.4.0-r4.ebuild | 79 ++++++++++++++++++++++
19 1 file changed, 79 insertions(+)
20
21 diff --git a/media-plugins/libvisual-plugins/libvisual-plugins-0.4.0-r4.ebuild b/media-plugins/libvisual-plugins/libvisual-plugins-0.4.0-r4.ebuild
22 new file mode 100644
23 index 00000000000..2ed77031106
24 --- /dev/null
25 +++ b/media-plugins/libvisual-plugins/libvisual-plugins-0.4.0-r4.ebuild
26 @@ -0,0 +1,79 @@
27 +# Copyright 1999-2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +inherit autotools eutils multilib-minimal
32 +
33 +PATCHLEVEL=4
34 +
35 +DESCRIPTION="collection of visualization plugins for use with the libvisual framework"
36 +HOMEPAGE="http://libvisual.sourceforge.net/"
37 +SRC_URI="mirror://sourceforge/libvisual/${P}.tar.gz
38 + mirror://gentoo/${P}-patches-${PATCHLEVEL}.tar.bz2
39 + mirror://gentoo/${P}-m4-1.tar.bz2"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0.4"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
44 +IUSE="alsa debug gtk jack mplayer opengl"
45 +
46 +RDEPEND=">=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}]
47 + ~media-libs/libvisual-${PV}[${MULTILIB_USEDEP}]
48 + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
49 + >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
50 + >=x11-libs/libXrender-0.9.8[${MULTILIB_USEDEP}]
51 + alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
52 + gtk? ( >=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}] )
53 + jack? ( virtual/jack[${MULTILIB_USEDEP}] )
54 + opengl? (
55 + >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
56 + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
57 + )"
58 +BDEPEND=">=virtual/pkgconfig-0-r1"
59 +
60 +DEPEND="${RDEPEND}
61 + >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]"
62 +
63 +DOCS="AUTHORS ChangeLog NEWS README TODO"
64 +
65 +src_prepare() {
66 + # Can't use eapply on ${WORKDIR}/patches since the patches use different
67 + # values for -p. epatch handled that automatically, eapply doesn't
68 + eapply -p1 "${WORKDIR}"/patches/005_all_cxxflags.patch
69 + eapply -p1 "${WORKDIR}"/patches/010_all_LIBADD.patch
70 + eapply -p1 "${WORKDIR}"/patches/020_all_64bit.patch
71 + eapply -p1 "${WORKDIR}"/patches/030_all_analyser.patch
72 + eapply -p1 "${WORKDIR}"/patches/040_all_gforce.patch
73 + eapply -p0 "${WORKDIR}"/patches/050_all_automagic.patch
74 + eapply -p0 "${WORKDIR}"/patches/060_all_gstreamer.patch
75 + eapply -p1 "${WORKDIR}"/patches/070_all_gforce-fbsd.patch
76 + eapply -p1 "${WORKDIR}"/patches/080_all_qa.patch
77 + eapply -p1 "${WORKDIR}"/patches/090_all_nastyfft.patch
78 + eapply_user
79 +
80 + AT_M4DIR=${WORKDIR}/m4 eautoreconf
81 +
82 + sed -i -e "s:@MKINSTALLDIRS@:${S}/mkinstalldirs:" po/Makefile.* || die
83 +}
84 +
85 +multilib_src_configure() {
86 + ECONF_SOURCE=${S} \
87 + econf \
88 + --disable-esd \
89 + $(use_enable jack) \
90 + $(use_enable gtk gdkpixbuf-plugin) \
91 + --disable-gstreamer-plugin \
92 + $(use_enable alsa) \
93 + $(use_enable mplayer) \
94 + $(use_enable debug inputdebug) \
95 + $(use_enable opengl gltest) \
96 + $(use_enable opengl nastyfft) \
97 + $(use_enable opengl madspin) \
98 + $(use_enable opengl flower) \
99 + $(use_enable debug)
100 +}
101 +
102 +multilib_src_install_all() {
103 + einstalldocs
104 + find "${D}" -name "*.la" -delete || die
105 +}