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-libs/stk/
Date: Sat, 08 Feb 2020 00:43:09
Message-Id: 1581122571.8bc236bfeed87296bbbb66086050ec3f87df7082.fordfrog@gentoo
1 commit: 8bc236bfeed87296bbbb66086050ec3f87df7082
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 8 00:41:04 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 8 00:42:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bc236bf
7
8 media-libs/stk: bumped to 4.6.1
9
10 updated to eapi7
11
12 Package-Manager: Portage-2.3.87, Repoman-2.3.20
13 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
14
15 media-libs/stk/Manifest | 1 +
16 media-libs/stk/stk-4.6.1.ebuild | 79 +++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 80 insertions(+)
18
19 diff --git a/media-libs/stk/Manifest b/media-libs/stk/Manifest
20 index f6ce8b7166f..eca239820cc 100644
21 --- a/media-libs/stk/Manifest
22 +++ b/media-libs/stk/Manifest
23 @@ -1 +1,2 @@
24 DIST stk-4.5.1.tar.gz 2413113 BLAKE2B 5eedf936f26acd3e2f377a198b252ee36bcdbb642f0649c0db6c453beb670a1fc725c94af78ff3e075f50068ae6927b628de0174dba598191ed9f9d2f074c17c SHA512 c4c05edfb49b269d5d2518c06abad8e636c4f67a8598f5a03d406bbef04b8b3315d2592d35c8742ce9163b52215ac87b6349c0012e271a43707d109175b6d336
25 +DIST stk-4.6.1.tar.gz 2593348 BLAKE2B 2cb269b8fb5732d55a394d5b8842c380b6a3e82e7338e972c6d22baf5ba1edee3f03ed699b9950d4a92a7ae3102bbb54f844ffd728c6478ebfb36328a1b89f2a SHA512 2a22078cdb630f7c014a5ab38070fd6a6d1e9aa719401e3190a040cb06b61003cd3095fe1a8890eff59e4fc42594fe893b4c0a8327175e1701c75de7537e1830
26
27 diff --git a/media-libs/stk/stk-4.6.1.ebuild b/media-libs/stk/stk-4.6.1.ebuild
28 new file mode 100644
29 index 00000000000..12eb50caa5f
30 --- /dev/null
31 +++ b/media-libs/stk/stk-4.6.1.ebuild
32 @@ -0,0 +1,79 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools
39 +
40 +DESCRIPTION="Synthesis ToolKit in C++"
41 +HOMEPAGE="https://ccrma.stanford.edu/software/stk/"
42 +SRC_URI="https://ccrma.stanford.edu/software/stk/release/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="alsa debug doc jack oss static-libs"
48 +
49 +BDEPEND="
50 + virtual/pkgconfig
51 +"
52 +RDEPEND="alsa? ( media-libs/alsa-lib )
53 + jack? ( virtual/jack )"
54 +DEPEND="${RDEPEND}
55 + dev-lang/perl"
56 +
57 +PATCHES=(
58 + "${FILESDIR}/${PN}-4.5.1"
59 +)
60 +
61 +HTML_DOCS=(
62 + doc/html/.
63 +)
64 +
65 +src_prepare() {
66 + default
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + #breaks with --disable-foo...uses as --enable-foo
72 + local myconf
73 + if use debug; then
74 + myconf="${myconf} --enable-debug"
75 + fi
76 + if use oss; then
77 + myconf="${myconf} --with-oss"
78 + fi
79 + if use alsa; then
80 + myconf="${myconf} --with-alsa"
81 + fi
82 + if use jack; then
83 + myconf="${myconf} --with-jack"
84 + fi
85 +
86 + econf ${myconf} \
87 + --enable-shared \
88 + $(use_enable static-libs static) \
89 + RAWWAVE_PATH=/usr/share/stk/rawwaves/
90 +}
91 +
92 +src_install() {
93 + dodoc README.md
94 +
95 + # install the lib
96 + dolib.so src/libstk*
97 + use static-libs && dolib.a src/libstk*
98 +
99 + # install headers
100 + insinto /usr/include/stk
101 + doins include/*.h
102 +
103 + # install rawwaves
104 + insinto /usr/share/stk/rawwaves
105 + doins rawwaves/*.raw
106 +
107 + # install docs
108 + if use doc; then
109 + einstalldocs
110 + fi
111 +}