/[gentoo-x86]/sci-visualization/gwyddion/gwyddion-2.29.ebuild
Gentoo

Contents of /sci-visualization/gwyddion/gwyddion-2.29.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Aug 1 22:30:25 2012 UTC (2 years, 4 months ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/sci-visualization/gwyddion/gwyddion-2.28.ebuild,v 1.1 2012/06/06 18:51:55 bicatali Exp $
4    
5     EAPI=4
6    
7     PYTHON_DEPEND="python? 2"
8     AUTOTOOLS_IN_SOURCE_BUILD=1
9    
10     inherit eutils fdo-mime gnome2-utils python autotools-utils
11    
12     DESCRIPTION="Framework for Scanning Mode Microscopy data analysis"
13     HOMEPAGE="http://gwyddion.net/"
14     SRC_URI="http://gwyddion.net/download/${PV}/${P}.tar.xz"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19     IUSE="doc fftw gnome kde nls opengl perl python ruby sourceview xml X"
20    
21     RDEPEND="media-libs/libpng
22     x11-libs/cairo
23     x11-libs/gtk+:2
24     x11-libs/libXmu
25     x11-libs/pango
26     fftw? ( >=sci-libs/fftw-3 )
27     gnome? ( gnome-base/gconf:2 )
28     kde? ( >=kde-base/kdelibs-4 )
29     opengl? ( virtual/opengl x11-libs/gtkglext )
30     perl? ( dev-lang/perl )
31     python? ( dev-python/pygtk:2 )
32     ruby? ( dev-ruby/narray )
33     sourceview? ( x11-libs/gtksourceview:2.0 )
34     xml? ( dev-libs/libxml2:2 )"
35    
36     DEPEND="${RDEPEND}
37     virtual/pkgconfig
38     doc? ( dev-util/gtk-doc )"
39    
40     pkg_setup() {
41     use python && python_set_active_version 2
42     }
43    
44     src_prepare() {
45     epatch "${FILESDIR}"/${PN}-2.25-libpng15.patch
46     }
47    
48     src_configure() {
49     local myeconfargs+=(
50     --disable-rpath
51     $(use_enable doc gtk-doc)
52     $(use_enable nls)
53     $(use_enable python pygwy)
54     $(use_with perl)
55     $(use_with python)
56     $(use_with ruby)
57     $(use_with fftw fftw3)
58     $(use_with opengl gl) \
59     $(use_with sourceview gtksourceview)
60     $(use_with xml libxml2)
61     $(use_with X x)
62     $(use_with kde kde4-thumbnailer)
63     )
64     autotools-utils_src_configure
65     }
66    
67     src_install() {
68     autotools-utils_src_install
69     use python && dodoc modules/pygwy/README.pygwy
70     }
71    
72     pkg_postinst() {
73     use gnome && gnome2_gconf_install
74     fdo-mime_desktop_database_update
75     }
76    
77     pkg_prerm() {
78     use gnome && gnome2_gconf_uninstall
79     }
80    
81     pkg_postrm() {
82     fdo-mime_desktop_database_update
83     }

  ViewVC Help
Powered by ViewVC 1.1.20