Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/drumstick/
Date: Thu, 12 Sep 2019 21:58:33
Message-Id: 1568325477.119b8abce8d0c29829b6b4e0aede4af4c014e29d.asturm@gentoo
1 commit: 119b8abce8d0c29829b6b4e0aede4af4c014e29d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 12 21:55:09 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 12 21:57:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119b8abc
7
8 media-sound/drumstick: 1.1.3 version bump
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 media-sound/drumstick/Manifest | 1 +
14 media-sound/drumstick/drumstick-1.1.3.ebuild | 78 ++++++++++++++++++++++++++++
15 2 files changed, 79 insertions(+)
16
17 diff --git a/media-sound/drumstick/Manifest b/media-sound/drumstick/Manifest
18 index 48a28d2c519..f33d9fbb0db 100644
19 --- a/media-sound/drumstick/Manifest
20 +++ b/media-sound/drumstick/Manifest
21 @@ -1 +1,2 @@
22 DIST drumstick-1.1.2.tar.bz2 1012371 BLAKE2B e60a5678d33db1831130037bb4a6df6da8de815a6a0ca33a167f85596f45a1d420ca4c689c756c1fd3f794fb2a097bc19878d78bfe0789a40f9eae1b306b769f SHA512 6e84fbf2ce717cdb3c669a477de65d2f32c277073d812546267c0a9556f7ead612e3140cbc412fcd560786ca024f201a1eb3ba9de4b037e3ba8d4db89e0e2e29
23 +DIST drumstick-1.1.3.tar.gz 1358468 BLAKE2B af4cc923d380a1da66c835a6302e47e31c17ff90ba9277fe6063e6029c3d4d087e85905487a4dae657cdbfb743d2ac6e6c5a30c0905c9bc736d8666105e52099 SHA512 41990c269c41dc011e14c9bf008b983cd3722ea52429ec7eabaa5689a6f69b1760fc766604378c30bb1dfab537b77f7522a13377b873308835a0e7701d24448e
24
25 diff --git a/media-sound/drumstick/drumstick-1.1.3.ebuild b/media-sound/drumstick/drumstick-1.1.3.ebuild
26 new file mode 100644
27 index 00000000000..fcea0b26868
28 --- /dev/null
29 +++ b/media-sound/drumstick/drumstick-1.1.3.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake-utils xdg
37 +
38 +DESCRIPTION="Qt/C++ wrapper for ALSA sequencer"
39 +HOMEPAGE="http://drumstick.sourceforge.net/"
40 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="doc fluidsynth pulseaudio"
46 +
47 +BDEPEND="
48 + virtual/pkgconfig
49 + x11-misc/shared-mime-info
50 + doc? (
51 + app-doc/doxygen
52 + app-text/docbook-xsl-stylesheets
53 + dev-libs/libxslt
54 + )
55 +"
56 +DEPEND="
57 + dev-qt/qtcore:5
58 + dev-qt/qtdbus:5
59 + dev-qt/qtgui:5
60 + dev-qt/qtnetwork:5
61 + dev-qt/qtsvg:5
62 + dev-qt/qtwidgets:5
63 + media-libs/alsa-lib
64 + fluidsynth? ( media-sound/fluidsynth )
65 + pulseaudio? ( media-sound/pulseaudio )
66 +"
67 +RDEPEND="${DEPEND}"
68 +
69 +DOCS=( AUTHORS ChangeLog NEWS README TODO )
70 +
71 +RESTRICT="test"
72 +
73 +src_prepare() {
74 + cmake-utils_src_prepare
75 +
76 + if ! use fluidsynth ; then
77 + sed -i -e "/pkg_check_modules(FLUIDSYNTH/d" \
78 + library/rt/CMakeLists.txt \
79 + library/rt-backends/CMakeLists.txt \
80 + utils/vpiano/CMakeLists.txt || die
81 + fi
82 +
83 + if ! use pulseaudio ; then
84 + sed -i -e "/pkg_check_modules(PULSE/d" CMakeLists.txt || die
85 + fi
86 +}
87 +
88 +src_configure() {
89 + local mycmakeargs=(
90 + -DBUILD_TESTING=OFF
91 + $(cmake-utils_use_find_package doc Doxygen)
92 + )
93 +
94 + cmake-utils_src_configure
95 +}
96 +
97 +src_compile() {
98 + cmake-utils_src_compile
99 + use doc && cmake-utils_src_compile doxygen
100 +}
101 +
102 +src_install() {
103 + cmake-utils_src_install
104 +
105 + if use doc ; then
106 + dodoc -r "${BUILD_DIR}"/doc/html
107 + fi
108 +}