forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drumstick-0.5.0.ebuild
66 lines (55 loc) · 1.21 KB
/
drumstick-0.5.0.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit fdo-mime gnome2-utils cmake-utils
DESCRIPTION="Qt4/C++ wrapper for ALSA sequencer"
HOMEPAGE="http://drumstick.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="dbus doc"
RDEPEND="
media-libs/alsa-lib
dev-qt/qtgui:4
dev-qt/qtsvg:4
x11-misc/shared-mime-info
dbus? ( dev-qt/qtdbus:4 )"
DEPEND="${RDEPEND}
virtual/pkgconfig
doc? (
app-doc/doxygen
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
)"
PATCHES=(
"${FILESDIR}"/${PV}-doc_automagicness.patch
"${FILESDIR}"/${PV}-underlinking.patch
"${FILESDIR}"/${PV}-gcc6-narrowing.patch
)
src_prepare() {
sed -i \
-e '/CMAKE_EXE_LINKER_FLAGS/d' \
CMakeLists.txt || die
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUSE_DBUS=$(usex dbus)
-DWITH_DOC=$(usex doc)
)
cmake-utils_src_configure
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}