You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/drumstick/drumstick-0.5.0.ebuild

69 lines
1.3 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/drumstick/drumstick-0.5.0.ebuild,v 1.5 2011/05/13 09:10:35 scarabeus Exp $
EAPI=4
inherit base cmake-utils fdo-mime gnome2-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
x11-libs/qt-gui:4
x11-libs/qt-svg:4
x11-misc/shared-mime-info
dbus? ( x11-libs/qt-dbus:4 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? (
app-doc/doxygen
app-text/docbook-xsl-stylesheets
dev-libs/libxslt
)
"
DOCS=( AUTHORS ChangeLog NEWS README TODO )
PATCHES=(
"${FILESDIR}"/${PV}-doc_automagicness.patch
)
src_prepare() {
sed -i \
-e '/CMAKE_EXE_LINKER_FLAGS/d' \
CMakeLists.txt || die
base_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_use dbus)
$(cmake-utils_use_with 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
}