blob: 3496184e8271be3300bfa4dd2501b138291559cf (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/k3guitune/k3guitune-1.0.ebuild,v 1.1 2007/10/04 21:53:37 philantrop Exp $
inherit kde
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.bz2
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"
LANGS_DOC="de en nl"
for X in ${LANGS} ${LANGS_DOC} ; do
IUSE="${IUSE} linguas_${X}"
done
src_unpack() {
kde_src_unpack
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_compile() {
local myconf="$(use_enable alsa) \
$(use_enable arts) \
$(use_enable oss) \
$(use_enable jack)"
kde_src_compile
}
|