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-sound/din/files/, media-sound/din/
Date: Tue, 11 Feb 2020 23:44:23
Message-Id: 1581464651.fcf42a15dafa227b0e6e20a8f4135111770435b2.fordfrog@gentoo
1 commit: fcf42a15dafa227b0e6e20a8f4135111770435b2
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 11 23:43:59 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 11 23:44:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcf42a15
7
8 media-sound/din: bump to 44.0.2
9
10 Package-Manager: Portage-2.3.88, Repoman-2.3.20
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-sound/din/Manifest | 1 +
14 media-sound/din/din-44.0.2.ebuild | 57 +++++++++++++++++++++++++
15 media-sound/din/files/din-44.0.2-makefile.patch | 12 ++++++
16 3 files changed, 70 insertions(+)
17
18 diff --git a/media-sound/din/Manifest b/media-sound/din/Manifest
19 index 5ece22527cd..946941fad63 100644
20 --- a/media-sound/din/Manifest
21 +++ b/media-sound/din/Manifest
22 @@ -1 +1,2 @@
23 DIST din-43.0.1.tar.gz 3644254 BLAKE2B 6b441ce93b3bd68e3bad5d7a6fea1914f250a5e35410f12c64da7ab1f530aa74b4a8f624a7b6ec70e26b62f5b3f8ada674ad7286b89e2569bbec9f3f29cccac6 SHA512 14df7f52a80801f062ed1a81c5625d8730e7bcc21cfa5256ecce9b478494828a3d0877c37434f30883aa519f767a70ba1cee4d203ec57c5bc72de1c47d2d848d
24 +DIST din-44.0.2.tar.gz 3652445 BLAKE2B 2b8dab2c4f4c22442bf446c7f43fdcff911c6b245950a9b06c9c0eaffa7138dd276900e58cef4cd21fabf9488bc5e56080f60c38af33eb9d4a6486019ff4b76c SHA512 a90c6d4d2e1817f8a740ad849f27f2b2f2c2e879107f6edf5bb49ecbb8168eb3c742db9984b9df43df7c49dd6273a947271e80fb2ac6d8300125e6cb35720de8
25
26 diff --git a/media-sound/din/din-44.0.2.ebuild b/media-sound/din/din-44.0.2.ebuild
27 new file mode 100644
28 index 00000000000..db092ac76e7
29 --- /dev/null
30 +++ b/media-sound/din/din-44.0.2.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools eutils xdg
38 +
39 +DESCRIPTION="a software musical instrument and audio synthesizer"
40 +HOMEPAGE="http://dinisnoise.org/"
41 +SRC_URI="https://archive.org/download/dinisnoise_source_code/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="+alsa jack"
47 +
48 +RDEPEND="
49 + dev-lang/tcl:0=
50 + media-libs/libsdl:=
51 + virtual/glu
52 + virtual/opengl
53 + alsa? ( media-libs/alsa-lib )
54 + jack? ( virtual/jack )
55 +"
56 +DEPEND="
57 + ${RDEPEND}
58 + dev-libs/boost
59 +"
60 +BDEPEND="
61 + virtual/pkgconfig
62 +"
63 +
64 +REQUIRED_USE="|| ( alsa jack )"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/${P}-makefile.patch"
68 + "${FILESDIR}/${PN}-43.0.1-fix-random-constants.patch"
69 +)
70 +
71 +src_prepare() {
72 + default
73 +
74 + edos2unix pixmaps/${PN}.desktop
75 +
76 + use jack && (sed -i "s/-lasound/-ljack/g" src/Makefile.am || die "Failed to fix jack linking")
77 +
78 + eautoreconf
79 +}
80 +
81 +src_configure() {
82 + # Jack takes over alsa.
83 + local sound_engine
84 +
85 + use jack && sound_engine="UNIX_JACK" || sound_engine="LINUX_ALSA"
86 +
87 + econf CXXFLAGS="${CXXFLAGS} -D__${sound_engine}__"
88 +}
89
90 diff --git a/media-sound/din/files/din-44.0.2-makefile.patch b/media-sound/din/files/din-44.0.2-makefile.patch
91 new file mode 100644
92 index 00000000000..c8f60c2210e
93 --- /dev/null
94 +++ b/media-sound/din/files/din-44.0.2-makefile.patch
95 @@ -0,0 +1,12 @@
96 +diff --git a/src/Makefile.am b/src/Makefile.am
97 +index 0e614a4..f9699d0 100644
98 +--- a/src/Makefile.am
99 ++++ b/src/Makefile.am
100 +@@ -1,5 +1,5 @@
101 +-AM_CXXFLAGS = -I ../include -I /usr/include/tcl8.6 -Wall -D_THREAD_SAFE -DHAVE_OPENGL -D__LICENSED__ -D __SVG__ -D__GPL20__ -D __BOOST_TIME__ -DPREFIX=\"@prefix@\"
102 +-LIBS += -ltcl8.6 -lSDL -lGL -lpthread -lasound
103 ++AM_CXXFLAGS = -I ../include -Wall -D_THREAD_SAFE -DHAVE_OPENGL -D__LICENSED__ -D __SVG__ -D__GPL20__ -D __BOOST_TIME__ -DPREFIX=\"@prefix@\"
104 ++LIBS += -ltcl -lSDL -lGL -lpthread -lasound
105 +
106 + AM_CFLAGS = -I ../include
107 + bin_PROGRAMS = din