/[gentoo-x86]/media-gfx/nip2/nip2-7.20.7.ebuild
Gentoo

Contents of /media-gfx/nip2/nip2-7.20.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Nov 24 12:36:00 2010 UTC (3 years, 4 months ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Version bump. Drop old.

(Portage version: 2.1.9.24/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/nip2/nip2-7.20.7.ebuild,v 1.6 2010/04/18 12:06:00 maekke Exp $
4
5 EAPI=2
6 inherit eutils autotools fdo-mime gnome2-utils versionator
7
8 # TODO: goffice we need 0.7 which is not in portage ATM
9
10 MY_MAJ_VER=$(get_version_component_range 1-2)
11 DESCRIPTION="VIPS Image Processing Graphical User Interface"
12 SRC_URI="http://www.vips.ecs.soton.ac.uk/supported/${MY_MAJ_VER}/${P}.tar.gz"
13 HOMEPAGE="http://vips.sourceforge.net"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ppc x86"
18 IUSE="fftw gsl test"
19
20 RDEPEND=">=dev-libs/glib-2.14:2
21 dev-libs/libxml2
22 x11-misc/xdg-utils
23 >=media-libs/vips-${MY_MAJ_VER}
24 >=x11-libs/gtk+-2.18:2
25 gsl? ( sci-libs/gsl )
26 fftw? ( sci-libs/fftw:3.0 )"
27 DEPEND="${RDEPEND}
28 sys-devel/bison
29 sys-devel/flex
30 test? ( media-libs/vips[lcms] )"
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${PN}-7.16.4-fftw3-build.patch
34 eautoreconf
35 }
36
37 src_configure() {
38 econf \
39 --disable-update-desktop \
40 $(use_with gsl) \
41 $(use_with fftw fftw3)
42 }
43
44 src_test() {
45 if ! use gsl; then
46 ewarn "Some tests require USE=gsl. Disabling test_math.ws tests."
47 rm test/workspaces/test_math.ws
48 fi
49 make check || die
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die
54 dodoc AUTHORS ChangeLog NEWS README* || die
55 insinto /usr/share/icons/hicolor/128x128/apps
56 newins share/nip2/data/vips-128.png nip2.png || die
57 }
58
59 pkg_preinst() {
60 gnome2_icon_savelist
61 }
62
63 pkg_postinst() {
64 fdo-mime_desktop_database_update
65 fdo-mime_mime_database_update
66 gnome2_icon_cache_update
67 }
68
69 pkg_postrm() {
70 fdo-mime_desktop_database_update
71 fdo-mime_mime_database_update
72 gnome2_icon_cache_update
73 }

  ViewVC Help
Powered by ViewVC 1.1.20