summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2010-04-02 14:34:28 +0000
committerMarkus Meier <maekke@gentoo.org>2010-04-02 14:34:28 +0000
commite3e945fab867b0157d8d1a3b9d0cb0cb634be02c (patch)
tree946ff6261c2cded7958a76e31d0160a27eab0df8 /media-gfx/ufraw
parentFix compatibility with Mono 2.6. Fixes bug 310371. (diff)
downloadgentoo-2-e3e945fab867b0157d8d1a3b9d0cb0cb634be02c.tar.gz
gentoo-2-e3e945fab867b0157d8d1a3b9d0cb0cb634be02c.tar.bz2
gentoo-2-e3e945fab867b0157d8d1a3b9d0cb0cb634be02c.zip
version bump, drop some keywords as some deps changed. fix automagic dep on cfitsio based on a patch of Xarthisius in bug #311339
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'media-gfx/ufraw')
-rw-r--r--media-gfx/ufraw/ChangeLog9
-rw-r--r--media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch28
-rw-r--r--media-gfx/ufraw/metadata.xml3
-rw-r--r--media-gfx/ufraw/ufraw-0.17.ebuild72
4 files changed, 111 insertions, 1 deletions
diff --git a/media-gfx/ufraw/ChangeLog b/media-gfx/ufraw/ChangeLog
index cdf1d2d074b4..455f390fb913 100644
--- a/media-gfx/ufraw/ChangeLog
+++ b/media-gfx/ufraw/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-gfx/ufraw
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/ufraw/ChangeLog,v 1.79 2010/01/31 21:57:30 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/ufraw/ChangeLog,v 1.80 2010/04/02 14:34:28 maekke Exp $
+
+*ufraw-0.17 (02 Apr 2010)
+
+ 02 Apr 2010; Markus Meier <maekke@gentoo.org> +ufraw-0.17.ebuild,
+ +files/ufraw-0.17-cfitsio-automagic.patch, metadata.xml:
+ version bump, drop some keywords as some deps changed. fix automagic dep
+ on cfitsio based on a patch of Xarthisius in bug #311339
31 Jan 2010; Markus Meier <maekke@gentoo.org> -ufraw-0.15-r2.ebuild:
old
diff --git a/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch b/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch
new file mode 100644
index 000000000000..aff7c5a25930
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch
@@ -0,0 +1,28 @@
+diff -ru ufraw-0.17.orig/configure.ac ufraw-0.17/configure.ac
+--- ufraw-0.17.orig/configure.ac 2010-04-02 16:16:08.000000000 +0200
++++ ufraw-0.17/configure.ac 2010-04-02 16:19:33.000000000 +0200
+@@ -246,11 +246,19 @@
+ [ have_png=no
+ AC_MSG_RESULT($LIBPNG_PKG_ERRORS) ] )
+
+-PKG_CHECK_MODULES(CFITSIO, cfitsio,
+- [ have_cfitsio=yes
+- AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
+- [ have_cfitsio=no
+- AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] )
++AC_ARG_WITH([cfitsio],
++ [AS_HELP_STRING([--with-cfitsio],
++ [build fits support @<:@default=check@:>@])],
++ [],
++ [with_cfitsio=check])
++
++have_cfitsio=no
++AS_IF([test "x$with_cfitsio" != xno],
++ [PKG_CHECK_MODULES(CFITSIO, cfitsio,
++ [ have_cfitsio=yes
++ AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ],
++ [ have_cfitsio=no
++ AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) ] )
+
+ PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.16,
+ [ have_exiv2=yes
diff --git a/media-gfx/ufraw/metadata.xml b/media-gfx/ufraw/metadata.xml
index cded40dd8831..998ca7299423 100644
--- a/media-gfx/ufraw/metadata.xml
+++ b/media-gfx/ufraw/metadata.xml
@@ -6,6 +6,9 @@
<flag name='contrast'>
enable contrast setting option
</flag>
+ <flag name='fits'>
+ Enable support for the FITS image format through <pkg>sci-libs/cfitsio</pkg>
+ </flag>
<flag name='hotpixels'>
enable hot pixel elimination
</flag>
diff --git a/media-gfx/ufraw/ufraw-0.17.ebuild b/media-gfx/ufraw/ufraw-0.17.ebuild
new file mode 100644
index 000000000000..41debfa25e8f
--- /dev/null
+++ b/media-gfx/ufraw/ufraw-0.17.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/ufraw/ufraw-0.17.ebuild,v 1.1 2010/04/02 14:34:28 maekke Exp $
+
+EAPI=2
+inherit fdo-mime gnome2-utils eutils autotools
+
+DESCRIPTION="RAW Image format viewer and GIMP plugin"
+HOMEPAGE="http://ufraw.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
+IUSE="contrast fits gimp gnome gtk openmp timezone"
+
+RDEPEND="
+ >=media-gfx/exiv2-0.11
+ media-libs/jpeg
+ >=media-libs/lcms-1.13
+ >=media-libs/lensfun-0.2.5
+ media-libs/tiff
+ fits? ( sci-libs/cfitsio )
+ gnome? ( gnome-base/gconf )
+ gtk? ( >=x11-libs/gtk+-2.6:2
+ >=media-gfx/gtkimageview-1.5.0 )
+ gimp? ( >=x11-libs/gtk+-2.6:2
+ >=media-gfx/gtkimageview-1.5.0
+ >=media-gfx/gimp-2.0 )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cfitsio-automagic.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ use gimp && myconf="--with-gtk"
+
+ econf \
+ --without-cinepaint \
+ $(use_enable contrast) \
+ $(use_with fits cfitsio) \
+ $(use_with gimp) \
+ $(use_enable gnome mime) \
+ $(use_with gtk) \
+ $(use_enable openmp) \
+ $(use_enable timezone dst-correction) \
+ ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc README TODO || die
+}
+
+pkg_postinst() {
+ if use gnome; then
+ fdo-mime_mime_database_update
+ fdo-mime_desktop_database_update
+ gnome2_gconf_install
+ fi
+}
+
+pkg_postrm() {
+ if use gnome; then
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ fi
+}