/[gentoo-x86]/sci-geosciences/grass/grass-6.0.1.ebuild
Gentoo

Contents of /sci-geosciences/grass/grass-6.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Tue May 4 10:52:10 2010 UTC (9 years, 8 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED
Update install approach. Install .pc file. Drop old.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild,v 1.18 2008/06/24 07:45:51 nerdboy Exp $
4
5 inherit eutils
6
7 DESCRIPTION="An open-source GIS with raster and vector functionality"
8 HOMEPAGE="http://grass.itc.it/"
9 SRC_URI="http://grass.itc.it/grass60/source/${P}.tar.gz
10 http://grass.meteo.uni.wroc.pl/grass60/source/${P}.tar.gz
11 http://grass.ibiblio.org/grass60/source/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="6"
15 KEYWORDS="amd64 ppc sparc x86"
16 # To-do: get ppc64 gdal deps fixed up
17
18 # add gdal back to use flags once grass is fixed
19 IUSE="fftw jpeg motif mysql nls odbc opengl png postgres readline tk tiff truetype"
20
21 RESTRICT="strip"
22
23 RDEPEND=">=sys-libs/zlib-1.1.4
24 >=sys-libs/ncurses-5.3
25 >=sys-libs/gdbm-1.8.0
26 virtual/man
27 >=sci-libs/proj-4.4.7
28 sci-libs/gdal
29 fftw? ( =sci-libs/fftw-2* )
30 jpeg? ( media-libs/jpeg )
31 postgres? ( >=virtual/postgresql-server-7.3 )
32 mysql? ( virtual/mysql )
33 odbc? ( >=dev-db/unixODBC-2.0.6 )
34 png? ( >=media-libs/libpng-1.2.2 )
35 readline? ( sys-libs/readline )
36 tiff? ( >=media-libs/tiff-3.5.7 )
37 truetype? ( >=media-libs/freetype-2.0 )
38 nls? ( x11-terms/mlterm )
39 opengl? ( virtual/opengl )
40 tk? ( >=dev-lang/tk-8.3.4 )
41 motif? ( x11-libs/openmotif )
42 x11-libs/libXmu
43 x11-libs/libXext
44 x11-libs/libXp
45 x11-libs/libX11
46 x11-libs/libXt
47 x11-libs/libSM
48 x11-libs/libICE
49 x11-libs/libXpm
50 x11-libs/libXaw"
51
52 DEPEND="${RDEPEND}
53 >=sys-devel/make-3.80
54 >=sys-devel/flex-2.5.4a
55 >=sys-devel/bison-1.35
56 >=sys-devel/gcc-3.2.2
57 x11-proto/xproto
58 x11-proto/xextproto"
59
60 src_unpack() {
61 unpack ${A}
62
63 cd "${S}"
64 epatch rpm/fedora/grass-readline.patch
65 sed -i -e "s/relid'/relid/" "${S}"/configure || die "sed blew chunks"
66 }
67
68 src_compile() {
69
70 MYCONF=" --with-cxx --enable-shared --with-gdal=/usr/bin/gdal-config"
71
72 if use truetype; then
73 MYCONF="${MYCONF} --with-freetype-includes=/usr/include/freetype2/"
74 fi
75
76 use mysql && MYCONF="${MYCONF} --with-mysql \
77 --with-mysql-includes=/usr/include/mysql \
78 --with-mysql-libs=/usr/$(get_libdir)/mysql" \
79 || MYCONF="${MYCONF} --without-mysql"
80
81 if use opengl; then
82 MYCONF="${MYCONF} --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib/"
83 fi
84
85 # apparently gdal isn't optional with this version
86
87 export LD_LIBRARY_PATH="/${WORKDIR}/image/usr/grass60/$(get_libdir):${LD_LIBRARY_PATH}"
88 ./configure \
89 `use_with postgres` \
90 `use_with motif` \
91 `use_with fftw` \
92 `use_with truetype freetype` \
93 `use_with jpeg` \
94 `use_with png` \
95 `use_with tiff` \
96 `use_with odbc` \
97 `use_enable amd64 64bit` \
98 `use_with opengl` \
99 `use_with readline` \
100 $(use_with tk tcltk) \
101 ${MYCONF} || die "Error: configure failed!"
102 emake -j1 || die "Error: emake failed!"
103 }
104
105 src_install() {
106 make install \
107 prefix="${D}"/usr UNIX_BIN="${D}"/usr/bin BINDIR="${D}"/usr/bin PREFIX=${D}/usr \
108 || die "Error: make install failed!"
109 sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass60:" \
110 "${D}"/usr/bin/grass60
111
112 # This is required for GRASS dependent ebuilds (ie. QGIS)
113 mv "${D}"/usr/${P} "${D}"/usr/grass60
114
115 einfo "Adding env.d entry for Grass6"
116 newenvd "${FILESDIR}"/99grass-6 99grass
117 }

  ViewVC Help
Powered by ViewVC 1.1.20