summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2016-09-14 13:46:49 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2016-09-14 13:48:43 +0300
commitfc4c951e0b64156df6fc2b67e1081151a4bd30e0 (patch)
treeec53a581e8aed9ecf7f9d00647c5bdd9615c593c /media-gfx/nip2/nip2-7.38.1.ebuild
parentmedia-libs/vips: 7.38 version bump (diff)
downloadgentoo-fc4c951e0b64156df6fc2b67e1081151a4bd30e0.tar.gz
gentoo-fc4c951e0b64156df6fc2b67e1081151a4bd30e0.tar.bz2
gentoo-fc4c951e0b64156df6fc2b67e1081151a4bd30e0.zip
media-gfx/nip2: version bump, bug 453810
Package-Manager: portage-2.3.0 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'media-gfx/nip2/nip2-7.38.1.ebuild')
-rw-r--r--media-gfx/nip2/nip2-7.38.1.ebuild75
1 files changed, 75 insertions, 0 deletions
diff --git a/media-gfx/nip2/nip2-7.38.1.ebuild b/media-gfx/nip2/nip2-7.38.1.ebuild
new file mode 100644
index 000000000000..3672c4b3c216
--- /dev/null
+++ b/media-gfx/nip2/nip2-7.38.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit fdo-mime gnome2-utils versionator
+
+MY_MAJ_VER=$(get_version_component_range 1-2)
+DESCRIPTION="VIPS Image Processing Graphical User Interface"
+SRC_URI="http://www.vips.ecs.soton.ac.uk/supported/${MY_MAJ_VER}/${P}.tar.gz"
+HOMEPAGE="http://vips.sourceforge.net"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug fftw graphviz goffice gsl test"
+
+RDEPEND=">=dev-libs/glib-2.14:2
+ dev-libs/libxml2
+ x11-misc/xdg-utils
+ =media-libs/vips-${MY_MAJ_VER}*
+ >=x11-libs/gtk+-2.24:2
+ goffice? ( x11-libs/goffice:0.8 )
+ graphviz? ( <media-gfx/graphviz-2.30 )
+ gsl? ( sci-libs/gsl )
+ fftw? ( sci-libs/fftw:3.0 )"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ test? ( media-libs/vips[jpeg,lcms,tiff] )"
+
+src_configure() {
+ econf \
+ --disable-update-desktop \
+ $(use_enable debug) \
+ $(use_with goffice libgoffice) \
+ $(use_with graphviz libgvc) \
+ $(use_with gsl) \
+ $(use_with fftw fftw3)
+}
+
+src_test() {
+ if ! use gsl; then
+ ewarn "Some tests require USE=gsl. Disabling test_math.ws tests."
+ rm test/workspaces/test_math.ws
+ fi
+ emake check
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog THANKS
+ insinto /usr/share/icons/hicolor/128x128/apps
+ newins share/nip2/data/vips-128.png nip2.png
+
+ mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF} || die
+ rmdir "${D}"/usr/share/doc/${PN}/ || die
+ dosym /usr/share/doc/${PF}/html /usr/share/doc/${PN}/
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}