summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWulf Krueger <philantrop@gentoo.org>2007-06-17 14:26:02 +0000
committerWulf Krueger <philantrop@gentoo.org>2007-06-17 14:26:02 +0000
commit7e6b97de1eedc09b55f3acef4f2a1a458d045624 (patch)
tree7e9236adc603651f3e6add94475180c79fd01c87 /media-gfx/kphotoalbum
parentRemove old and add another warning (diff)
downloadgentoo-2-7e6b97de1eedc09b55f3acef4f2a1a458d045624.tar.gz
gentoo-2-7e6b97de1eedc09b55f3acef4f2a1a458d045624.tar.bz2
gentoo-2-7e6b97de1eedc09b55f3acef4f2a1a458d045624.zip
Added l10n support as per bug 163051.
(Portage version: 2.1.2.9)
Diffstat (limited to 'media-gfx/kphotoalbum')
-rw-r--r--media-gfx/kphotoalbum/ChangeLog8
-rw-r--r--media-gfx/kphotoalbum/files/digest-kphotoalbum-3.0.2-r13
-rw-r--r--media-gfx/kphotoalbum/kphotoalbum-3.0.2-r1.ebuild96
3 files changed, 106 insertions, 1 deletions
diff --git a/media-gfx/kphotoalbum/ChangeLog b/media-gfx/kphotoalbum/ChangeLog
index 74625adfd011..c6a478966696 100644
--- a/media-gfx/kphotoalbum/ChangeLog
+++ b/media-gfx/kphotoalbum/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/kphotoalbum
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/kphotoalbum/ChangeLog,v 1.18 2007/04/30 22:06:34 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/kphotoalbum/ChangeLog,v 1.19 2007/06/17 14:26:02 philantrop Exp $
+
+*kphotoalbum-3.0.2-r1 (17 Jun 2007)
+
+ 17 Jun 2007; Wulf C. Krueger <philantrop@gentoo.org>
+ +kphotoalbum-3.0.2-r1.ebuild:
+ Added l10n support as per bug 163051.
30 Apr 2007; Marius Mauch <genone@gentoo.org> kphotoalbum-2.2.ebuild,
kphotoalbum-3.0.ebuild, kphotoalbum-3.0.1.ebuild,
diff --git a/media-gfx/kphotoalbum/files/digest-kphotoalbum-3.0.2-r1 b/media-gfx/kphotoalbum/files/digest-kphotoalbum-3.0.2-r1
new file mode 100644
index 000000000000..80f9152c4f58
--- /dev/null
+++ b/media-gfx/kphotoalbum/files/digest-kphotoalbum-3.0.2-r1
@@ -0,0 +1,3 @@
+MD5 decdf031878de8333f030d1e77ea8ae3 kphotoalbum-3.0.2.tar.bz2 15487681
+RMD160 05d986cb7b701730bdd6f93ab8c5fabe1b858ed3 kphotoalbum-3.0.2.tar.bz2 15487681
+SHA256 bdf06c6398666b071ec4fe91cdae10b5fc949299b13b4d5897690161e625f499 kphotoalbum-3.0.2.tar.bz2 15487681
diff --git a/media-gfx/kphotoalbum/kphotoalbum-3.0.2-r1.ebuild b/media-gfx/kphotoalbum/kphotoalbum-3.0.2-r1.ebuild
new file mode 100644
index 000000000000..07ca431d8d09
--- /dev/null
+++ b/media-gfx/kphotoalbum/kphotoalbum-3.0.2-r1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/kphotoalbum/kphotoalbum-3.0.2-r1.ebuild,v 1.1 2007/06/17 14:26:02 philantrop Exp $
+
+inherit kde
+
+DESCRIPTION="KDE Photo Album is a tool for indexing, searching, and viewing images."
+HOMEPAGE="http://www.kphotoalbum.org/"
+SRC_URI="http://www.kphotoalbum.org/download/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="arts exif"
+
+LANGS="ar be br ca cs cy da de el en_GB es et fi fr ga gl hi is it ja ka lt mt
+nb nds nl pa pl pt pt_BR ro ru rw sk sr sv ta tr uk vi zh_CN"
+
+LANGS_DOC="da de es et fr it nl pt sv"
+
+for lang in ${LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+# kde-base/unsermake
+DEPEND="!media-gfx/kimdaba
+ exif? ( >=media-libs/libkexif-0.2.3
+ >=media-gfx/exiv2-0.9.1 )
+ >=media-libs/libkipi-0.1
+ || ( kde-base/kdegraphics-kfile-plugins kde-base/kdegraphics )
+ arts? ( kde-base/arts )"
+
+need-kde 3.2
+
+pkg_setup()
+{
+ setupok=1
+ if use exif ; then
+ if ! built_with_use =x11-libs/qt-3* sqlite ; then
+ elog "To enable KPhotoAlbum to search your images"
+ elog "using EXIF information you also need to have"
+ elog "Qt installed with SQLite support."
+ elog
+ elog "Make sure your Qt is installed with the sqlite USE flag."
+ setupok=0
+ fi
+ if [ $setupok != 0 ] ; then
+ slot_rebuild "media-libs/libkipi media-libs/libkexif"
+ setupok=$?
+ fi
+ else
+ slot_rebuild "media-libs/libkipi"
+ setupok=$?
+ fi
+ if [ $setupok == 0 ] ; then
+ die
+ fi
+}
+
+src_unpack() {
+ kde_src_unpack
+
+ # Adapted from kde.eclass
+ if [[ -z ${LINGUAS} ]]; then
+ elog "You can drop some of the translations of the interface and"
+ elog "documentation by setting the \${LINGUAS} variable to the"
+ elog "languages you want installed."
+ elog
+ elog "Enabling all languages"
+ else
+ if [[ -n ${LANGS} ]]; then
+ MAKE_PO=$(echo $(echo "${LINGUAS} ${LANGS}" | tr ' ' '\n' | sort | uniq -d))
+ elog "Enabling translations for: ${MAKE_PO}"
+ sed -i -e "s:^SUBDIRS=.*:SUBDIRS = ${MAKE_PO}:" "${KDE_S}/translations/Makefile.am" \
+ || die "sed for locale failed"
+ rm -f "${KDE_S}/configure"
+ fi
+
+ if [[ -n ${LANGS_DOC} ]]; then
+ MAKE_DOC=$(echo $(echo "${LINGUAS} ${LANGS_DOC}" | tr ' ' '\n' | sort | uniq -d))
+ elog "Enabling documentation for: ${MAKE_DOC}"
+ elog "(If some languages you chose are missing, it's because there's no translation for them.)"
+ fi
+ fi
+}
+
+src_compile()
+{
+ if ! use exif; then
+ elog "NOTICE: You have the exif USE flag disabled. ${CATEGORY}/${PN}"
+ elog "will be compiled without EXIF support unless you installed"
+ elog "media-gfx/exiv2 manually."
+ local myconf="--disable-exiv2"
+ fi
+ kde_src_compile
+}