blob: 198df64e5355648fa095b184c4446e44f3aa5b9e (
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
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
67
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/k3guitune/k3guitune-1.01.ebuild,v 1.8 2009/05/21 16:27:07 ssuominen Exp $
EAPI=2
ARTS_REQUIRED=never
inherit kde eutils
DESCRIPTION="A program for KDE that lets you tune musical instruments."
HOMEPAGE="http://home.planet.nl/~lamer024/k3guitune.html"
SRC_URI="http://home.planet.nl/~lamer024/files/${P}.tar.gz
mirror://gentoo/kde-admindir-3.5.5.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="+alsa oss jack"
DEPEND="=sci-libs/fftw-3*
alsa? ( media-libs/alsa-lib )
jack? ( media-libs/bio2jack )"
RDEPEND="${DEPEND}"
need-kde 3.5
LANGS="de fr nl sk"
LANGS_DOC="de en nl"
for X in ${LANGS} ${LANGS_DOC} ; do
IUSE="${IUSE} linguas_${X}"
done
src_prepare() {
kde_src_prepare
epatch "${FILESDIR}"/${PN}-1.0-gcc43.patch \
"${FILESDIR}"/${P}-fftw.patch \
"${FILESDIR}"/${P}-desktop-entry.patch
for X in ${LANGS} ; do
use linguas_${X} && MAKE_LANGS="${MAKE_LANGS} ${X}.po"
done
cd "${S}/po"
sed -i -e "s:POFILES =.*:POFILES = ${MAKE_LANGS}:" Makefile.am \
|| die "sed for translations failed"
MAKE_DOC=$(echo $(echo "${LINGUAS} ${LANGS_DOC}" | tr ' ' '\n' | sort | uniq -d))
[[ -n ${MAKE_DOC} ]] && MAKE_DOC=$(echo "${MAKE_DOC}" | tr '\n' ' ')
sed -i -e "s:^SUBDIRS =.*:SUBDIRS = ${MAKE_DOC} :" \
"${KDE_S}/doc/Makefile.am" || die "sed for docs locale failed"
rm -f "${S}/configure"
}
src_configure() {
local myconf="$(use_enable alsa)
$(use_enable oss)
$(use_enable jack)
--without-arts
--disable-arts"
kde_src_configure
}
src_install() {
kde_src_install
doicon "${FILESDIR}"/${PN}.xpm
}
|