Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/drumstick/
Date: Tue, 27 Mar 2018 16:50:39
Message-Id: 1522169428.e882c0d1a361cf0964146161be96d2d25e7749d5.johu@gentoo
1 commit: e882c0d1a361cf0964146161be96d2d25e7749d5
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 27 16:38:34 2018 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 27 16:50:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e882c0d1
7
8 media-sound/drumstick: Version bump 1.1.1
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 media-sound/drumstick/Manifest | 1 +
13 media-sound/drumstick/drumstick-1.1.1.ebuild | 94 ++++++++++++++++++++++++++++
14 2 files changed, 95 insertions(+)
15
16 diff --git a/media-sound/drumstick/Manifest b/media-sound/drumstick/Manifest
17 index a502991da50..5155e046682 100644
18 --- a/media-sound/drumstick/Manifest
19 +++ b/media-sound/drumstick/Manifest
20 @@ -1 +1,2 @@
21 DIST drumstick-1.1.0.tar.bz2 1012405 BLAKE2B ad1e4990cbf4954eadf8c7ae602234852e77abcf534e14090a6e158e9032288fcce6c39b742c40ac9b8c7967dbfcd04578b871088f61ce411de9c910c79e1fbb SHA512 1099b80e1d2819a8343e877742c5f01c114419b2c63a965717bcff2c220aa218f40ac3860cf9496d3586663e73a6c2c7b62aee74c51229578a5ae3044da208da
22 +DIST drumstick-1.1.1.tar.bz2 1011275 BLAKE2B dff36487a1cf79512150638c793c471fb410c3563184e9acdbd9d441c53596a0bc611d4ebef2b4dc0214c0fef5324443fe0dfe4158f45521762abf4e838cf716 SHA512 f3278be71b1850bbe742ff46b65a656443a1d655c5bcc1e289d92492db985ab185ed140b88ca68f37235c07926be5b82cfe97ae2f95ca7e3a7f48a7c95c61654
23
24 diff --git a/media-sound/drumstick/drumstick-1.1.1.ebuild b/media-sound/drumstick/drumstick-1.1.1.ebuild
25 new file mode 100644
26 index 00000000000..dec23c6a8c8
27 --- /dev/null
28 +++ b/media-sound/drumstick/drumstick-1.1.1.ebuild
29 @@ -0,0 +1,94 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit cmake-utils xdg-utils gnome2-utils
36 +
37 +DESCRIPTION="Qt/C++ wrapper for ALSA sequencer"
38 +HOMEPAGE="http://drumstick.sourceforge.net/"
39 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
40 +
41 +LICENSE="GPL-2+"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="doc fluidsynth pulseaudio"
45 +
46 +RESTRICT="test"
47 +
48 +RDEPEND="
49 + dev-qt/qtcore:5
50 + dev-qt/qtdbus:5
51 + dev-qt/qtgui:5
52 + dev-qt/qtnetwork:5
53 + dev-qt/qtsvg:5
54 + dev-qt/qtwidgets:5
55 + media-libs/alsa-lib
56 + fluidsynth? ( media-sound/fluidsynth )
57 + pulseaudio? ( media-sound/pulseaudio )
58 +"
59 +DEPEND="${RDEPEND}
60 + virtual/pkgconfig
61 + x11-misc/shared-mime-info
62 + doc? (
63 + app-doc/doxygen
64 + app-text/docbook-xsl-stylesheets
65 + dev-libs/libxslt
66 + )
67 +"
68 +
69 +DOCS=( AUTHORS ChangeLog NEWS README TODO )
70 +
71 +src_prepare() {
72 + cmake-utils_src_prepare
73 +
74 + if ! use fluidsynth ; then
75 + sed -i -e "/pkg_check_modules(FLUIDSYNTH/d" \
76 + library/rt/CMakeLists.txt \
77 + library/rt-backends/CMakeLists.txt \
78 + utils/vpiano/CMakeLists.txt || die
79 + fi
80 +
81 + if ! use pulseaudio ; then
82 + sed -i -e "/pkg_check_modules(PULSE/d" CMakeLists.txt || die
83 + fi
84 +}
85 +
86 +src_configure() {
87 + local mycmakeargs=(
88 + -DBUILD_TESTING=OFF
89 + $(cmake-utils_use_find_package doc Doxygen)
90 + )
91 +
92 + cmake-utils_src_configure
93 +}
94 +
95 +src_compile() {
96 + cmake-utils_src_compile
97 +
98 + use doc && cmake-utils_src_compile doxygen
99 +}
100 +
101 +src_install() {
102 + cmake-utils_src_install
103 +
104 + if use doc ; then
105 + dodoc -r "${BUILD_DIR}"/doc/html
106 + fi
107 +}
108 +
109 +pkg_preinst() {
110 + gnome2_icon_savelist
111 +}
112 +
113 +pkg_postinst() {
114 + xdg_desktop_database_update
115 + xdg_mimeinfo_database_update
116 + gnome2_icon_cache_update
117 +}
118 +
119 +pkg_postrm() {
120 + xdg_desktop_database_update
121 + xdg_mimeinfo_database_update
122 + gnome2_icon_cache_update
123 +}