summaryrefslogtreecommitdiff
blob: 493f764df7b1add38509b4cc27a31c5c83ed4749 (plain)
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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/k4guitune/k4guitune-1.1.0.ebuild,v 1.4 2011/02/02 04:24:31 tampakrap Exp $

EAPI=3
inherit kde4-base

DESCRIPTION="A program to tune a musical instrument using your computer and it's mic- or line- input"
HOMEPAGE="http://wspinell.altervista.org/k4guitune/ http://www.kde-apps.org/content/show.php/K4Guitune?content=117669"
SRC_URI="http://www.kde-apps.org/CONTENT/content-files/117669-${P}.tar.gz"

LICENSE="GPL-3"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="debug +handbook"

DEPEND="=sci-libs/fftw-3*"

S=${WORKDIR}/${PN}

PATCHES=( "${FILESDIR}/${P}-desktop_entry.patch" )

src_prepare() {
	kde4-base_src_prepare

	sed -e '/set[[:space:]]*([[:space:]]*HTML_INSTALL_DIR/s/^/# DISABLED /' \
		-i CMakeLists.txt || die
	sed -e '/add_subdirectory[[:space:]]*([[:space:]]*doc/s/add/macro_optional_add/' \
		-i CMakeLists.txt || die
}

src_configure() {
	mycmakeargs=(
		$(cmake-utils_use_build handbook doc)
	)

	kde4-base_src_configure
}