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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 1 13:48:27 2015 UTC (3 years, 6 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #536800

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2015 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.39.ebuild,v 1.2 2015/01/31 14:11:20 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8 AUTOTOOLS_IN_SOURCE_BUILD=1
9
10 inherit autotools-utils fdo-mime gnome2-utils python-single-r1
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 fits fftw gnome kde nls opengl perl python ruby sourceview xml X"
20
21 RDEPEND="
22 media-libs/libpng:0
23 x11-libs/cairo
24 x11-libs/gtk+:2
25 x11-libs/libXmu
26 x11-libs/pango
27 fits? ( sci-libs/cfitsio )
28 fftw? ( sci-libs/fftw:3.0 )
29 gnome? ( gnome-base/gconf:2 )
30 kde? ( kde-base/kdelibs:4 )
31 opengl? ( virtual/opengl x11-libs/gtkglext )
32 perl? ( dev-lang/perl )
33 python? (
34 ${PYTHON_DEPS}
35 dev-python/pygtk:2[${PYTHON_USEDEP}]
36 )
37 ruby? ( dev-ruby/narray )
38 sourceview? ( x11-libs/gtksourceview:2.0 )
39 xml? ( dev-libs/libxml2:2 )"
40
41 DEPEND="${RDEPEND}
42 virtual/pkgconfig
43 doc? ( dev-util/gtk-doc )
44 "
45
46 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
47
48 MAKEOPTS+=" V=1"
49
50 pkg_setup() {
51 use python && python-single-r1_pkg_setup
52 }
53
54 src_configure() {
55 local myeconfargs=(
56 --disable-rpath
57 $(use_enable doc gtk-doc)
58 $(use_enable nls)
59 $(use_enable python pygwy)
60 $(use_enable fits cfitsio)
61 $(use_with perl)
62 $(use_with python)
63 $(use_with ruby)
64 $(use_with fftw fftw3)
65 $(use_with opengl gl) \
66 $(use_with sourceview gtksourceview)
67 $(use_with xml libxml2)
68 $(use_with X x)
69 $(use_with kde kde4-thumbnailer)
70 )
71 autotools-utils_src_configure
72 }
73
74 src_install() {
75 autotools-utils_src_install
76 use python && dodoc modules/pygwy/README.pygwy
77 }
78
79 pkg_postinst() {
80 use gnome && gnome2_gconf_install
81 fdo-mime_desktop_database_update
82 }
83
84 pkg_prerm() {
85 use gnome && gnome2_gconf_uninstall
86 }
87
88 pkg_postrm() {
89 fdo-mime_desktop_database_update
90 }

  ViewVC Help
Powered by ViewVC 1.1.20