| 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.29.ebuild,v 1.4 2012/11/30 05:29:17 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 |
MAKEOPTS+=" V=1"
|
| 41 |
|
| 42 |
pkg_setup() {
|
| 43 |
use python && python_set_active_version 2
|
| 44 |
}
|
| 45 |
|
| 46 |
src_prepare() {
|
| 47 |
epatch "${FILESDIR}"/${PN}-2.25-libpng15.patch
|
| 48 |
}
|
| 49 |
|
| 50 |
src_configure() {
|
| 51 |
local myeconfargs=(
|
| 52 |
--disable-rpath
|
| 53 |
$(use_enable doc gtk-doc)
|
| 54 |
$(use_enable nls)
|
| 55 |
$(use_enable python pygwy)
|
| 56 |
$(use_with perl)
|
| 57 |
$(use_with python)
|
| 58 |
$(use_with ruby)
|
| 59 |
$(use_with fftw fftw3)
|
| 60 |
$(use_with opengl gl) \
|
| 61 |
$(use_with sourceview gtksourceview)
|
| 62 |
$(use_with xml libxml2)
|
| 63 |
$(use_with X x)
|
| 64 |
$(use_with kde kde4-thumbnailer)
|
| 65 |
)
|
| 66 |
autotools-utils_src_configure
|
| 67 |
}
|
| 68 |
|
| 69 |
src_install() {
|
| 70 |
autotools-utils_src_install
|
| 71 |
use python && dodoc modules/pygwy/README.pygwy
|
| 72 |
}
|
| 73 |
|
| 74 |
pkg_postinst() {
|
| 75 |
use gnome && gnome2_gconf_install
|
| 76 |
fdo-mime_desktop_database_update
|
| 77 |
}
|
| 78 |
|
| 79 |
pkg_prerm() {
|
| 80 |
use gnome && gnome2_gconf_uninstall
|
| 81 |
}
|
| 82 |
|
| 83 |
pkg_postrm() {
|
| 84 |
fdo-mime_desktop_database_update
|
| 85 |
}
|