# 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.9 2009/06/02 22:59:48 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="3.5" KEYWORDS="amd64 ~ppc x86" IUSE="+alsa oss jack" RDEPEND="sci-libs/fftw:3.0 alsa? ( media-libs/alsa-lib ) jack? ( media-libs/bio2jack )" DEPEND="${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}"/${P}-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 }