diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-12-02 00:58:20 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-12-02 00:58:20 +0000 |
commit | d6356ef792762329acc2cc3191086327d4d36fae (patch) | |
tree | 798ab1056d11982f4b2d269313b8470ae0b9369a /media-gfx/kphotoalbum/kphotoalbum-3.1.0.ebuild | |
parent | x11-apps/ati-drivers-extra needs masked x11-drivers/ati-drivers (diff) | |
download | gentoo-2-d6356ef792762329acc2cc3191086327d4d36fae.tar.gz gentoo-2-d6356ef792762329acc2cc3191086327d4d36fae.tar.bz2 gentoo-2-d6356ef792762329acc2cc3191086327d4d36fae.zip |
Version bump as per bug 200378. Removed obsolete versions.
(Portage version: 2.1.4_rc4)
Diffstat (limited to 'media-gfx/kphotoalbum/kphotoalbum-3.1.0.ebuild')
-rw-r--r-- | media-gfx/kphotoalbum/kphotoalbum-3.1.0.ebuild | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/media-gfx/kphotoalbum/kphotoalbum-3.1.0.ebuild b/media-gfx/kphotoalbum/kphotoalbum-3.1.0.ebuild new file mode 100644 index 000000000000..ecd006fcdb8a --- /dev/null +++ b/media-gfx/kphotoalbum/kphotoalbum-3.1.0.ebuild @@ -0,0 +1,92 @@ +# 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.1.0.ebuild,v 1.1 2007/12/02 00:58:19 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 raw" + +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 sr@Latn 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 + +DEPEND="exif? ( >=media-gfx/exiv2-0.15 ) + raw? ( >=media-libs/libkdcraw-0.1.1 ) + >=media-libs/jpeg-6b-r7 + >=media-libs/libkipi-0.1 + || ( kde-base/kdegraphics kde-base/kdegraphics-kfile-plugins ) + arts? ( kde-base/arts )" + +need-kde 3.5 + +PATCHES="${FILESDIR}/${P}-exiv2.patch" + +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 + fi + + slot_rebuild "media-libs/libkipi" + setupok=$? + + 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() { + local myconf="$(use_enable raw kdcraw)" + if ! use exif; then + elog "NOTICE: You have the exif USE flag disabled. ${CATEGORY}/${PN}" + elog "will be compiled without EXIF support." + myconf="${myconf} --disable-exiv2" + fi + kde_src_compile +} |