summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2008-06-29 16:05:23 +0000
committerCarsten Lohrke <carlo@gentoo.org>2008-06-29 16:05:23 +0000
commitd341c10331f97d464fda22a1a14d0bae34257eea (patch)
tree4623f22499ab63716d738e4e6e25ba96520f91cd /kde-misc/filelight/filelight-1.0-r1.ebuild
parentFix compatibility with ffmpeg-0.4.9_p20080326 with judicious sedding. Drop pa... (diff)
downloadhistorical-d341c10331f97d464fda22a1a14d0bae34257eea.tar.gz
historical-d341c10331f97d464fda22a1a14d0bae34257eea.tar.bz2
historical-d341c10331f97d464fda22a1a14d0bae34257eea.zip
Merge i18n stuff, get rid of arts use flag, fix desktop entry properly.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'kde-misc/filelight/filelight-1.0-r1.ebuild')
-rw-r--r--kde-misc/filelight/filelight-1.0-r1.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/kde-misc/filelight/filelight-1.0-r1.ebuild b/kde-misc/filelight/filelight-1.0-r1.ebuild
new file mode 100644
index 000000000000..6aa784d8d123
--- /dev/null
+++ b/kde-misc/filelight/filelight-1.0-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/filelight/filelight-1.0-r1.ebuild,v 1.1 2008/06/29 16:05:23 carlo Exp $
+
+ARTS_REQUIRED="never"
+
+inherit kde
+
+P_I18N="${P}-i18n-20070422"
+
+DESCRIPTION="Filelight creates an interactive map of concentric, segmented rings that help visualise disk usage."
+HOMEPAGE="http://www.methylblue.com/filelight/"
+SRC_URI="http://www.methylblue.com/filelight/packages/${P}.tar.bz2
+ http://www.methylblue.com/filelight/packages/${P_I18N}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="!kde-misc/filelight-i18n"
+RDEPEND="x11-apps/xdpyinfo"
+
+need-kde 3.5
+
+LANGS="az bg br ca cs cy da de el en_GB es et fr ga gl is it ja ka lt nb nl pl pt pt_BR ro ru rw sr sr@Latn sv ta tr uk"
+LANGS_DOC="da es et it pt ru sv"
+
+for lang in ${LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+PATCHES=( "${FILESDIR}/filelight-1.0-desktop-entry-fix.diff" )
+
+src_unpack() {
+ kde_src_unpack
+ rm "${S}"/configure "${WORKDIR}/${P_I18N}"/configure
+
+ local sanitised_linguas=$(printf "${LINGUAS}" | tr '[[:space:]]' '\n' | sort | uniq)
+
+ local MAKE_PO=$(printf "${sanitised_linguas} ${LANGS}" | tr '[[:space:]]' '\n' | sort | uniq -d | tr '\n' ' ')
+ einfo "Installing translations for: ${MAKE_PO}"
+ sed -i -e "s:^SUBDIRS =.*:SUBDIRS = . ${MAKE_PO}:" "${WORKDIR}/${P_I18N}/po/Makefile.am" || die "sed for locale failed"
+
+ local MAKE_DOC=$(echo "${sanitised_linguas} ${LANGS_DOC}" | tr '[[:space:]]' '\n' | sort | uniq -d | tr '\n' ' ')
+ sed -i -e "s:^SUBDIRS =.*:SUBDIRS = filelight ${MAKE_DOC}:" "${WORKDIR}/${P_I18N}/doc/Makefile.am" || die "sed for locale (docs) failed"
+}
+
+src_compile() {
+ kde_src_compile
+ KDE_S="${WORKDIR}/${P_I18N}"
+ kde_src_compile
+}
+
+src_install() {
+ kde_src_install
+ KDE_S=""
+ kde_src_install
+}