summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIoannis Aslanidis <deathwing00@gentoo.org>2006-04-20 12:43:21 +0000
committerIoannis Aslanidis <deathwing00@gentoo.org>2006-04-20 12:43:21 +0000
commitf0c410b699c5546669b3329065138bfc5467a613 (patch)
treea8dc8ce8f938b69e074f126afc6e7bd1c7481785 /media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild
parentDon't die on USE=-*, ebuild part. (diff)
downloadgentoo-2-f0c410b699c5546669b3329065138bfc5467a613.tar.gz
gentoo-2-f0c410b699c5546669b3329065138bfc5467a613.tar.bz2
gentoo-2-f0c410b699c5546669b3329065138bfc5467a613.zip
Improved version: if exif USE flag is enabled, Qt is checked for sqlite support and slot_rebuild is done on both libkipi and libkexif, otherwise it is done only on libkipi.
(Portage version: 2.1_pre7-r5)
Diffstat (limited to 'media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild')
-rw-r--r--media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild44
1 files changed, 30 insertions, 14 deletions
diff --git a/media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild b/media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild
index 1c0058a9f1e6..2f48f0868448 100644
--- a/media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild
+++ b/media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild
@@ -1,8 +1,15 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild,v 1.1 2006/04/18 19:36:30 deathwing00 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/kphotoalbum/kphotoalbum-2.2.ebuild,v 1.2 2006/04/20 12:43:21 deathwing00 Exp $
inherit kde
+
+DEPEND="!media-gfx/kimdaba
+ exif? ( >=media-libs/libkexif-0.2.1
+ >=media-gfx/exiv2-0.9.1 )
+ >=media-libs/libkipi-0.1
+ || ( kde-base/kdegraphics-kfile-plugins kde-base/kdegraphics )"
+
need-kde 3
IUSE="exif"
@@ -14,19 +21,28 @@ SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
-DEPEND="!media-gfx/kimdaba
- exif? ( >=media-libs/libkexif-0.2.1
- >=media-gfx/exiv2-0.9.1 )
- >=media-libs/libkipi-0.1
- || ( kde-base/kdegraphics-kfile-plugins kde-base/kdegraphics )"
-
-pkg_postinst()
+pkg_setup()
{
- if use exif; then
- einfo "To enable KPhotoAlbum to search your images"
- einfo "using EXIF information you also need to have"
- einfo "Qt installed with SQLite support."
- einfo
- einfo "Make sure your Qt is installed with the sqlite USE flag."
+ setupok=1
+ if use exif ; then
+ if ! built_with_use x11-libs/qt sqlite ; then
+ einfo "To enable KPhotoAlbum to search your images"
+ einfo "using EXIF information you also need to have"
+ einfo "Qt installed with SQLite support."
+ einfo
+ einfo "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
}
+