summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/grass/ChangeLog7
-rw-r--r--sci-geosciences/grass/files/digest-grass-6.0.13
-rw-r--r--sci-geosciences/grass/grass-6.0.1.ebuild130
3 files changed, 139 insertions, 1 deletions
diff --git a/sci-geosciences/grass/ChangeLog b/sci-geosciences/grass/ChangeLog
index 83c8f7aa8284..0a212f2366ae 100644
--- a/sci-geosciences/grass/ChangeLog
+++ b/sci-geosciences/grass/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-geosciences/grass
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.27 2006/12/24 02:14:55 nerdboy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.28 2006/12/24 21:00:03 nerdboy Exp $
+
+ 24 Dec 2006; Steve Arnold <nerdboy@gentoo.org> +grass-6.0.1.ebuild,
+ -grass-6.0.2.ebuild:
+ Cleaned up wrong ebuild (sorry about that). This will get cleaned up
+ again when 6.2.0 is stable.
*grass-6.2.0 (24 Dec 2006)
diff --git a/sci-geosciences/grass/files/digest-grass-6.0.1 b/sci-geosciences/grass/files/digest-grass-6.0.1
new file mode 100644
index 000000000000..e758d2ca0d34
--- /dev/null
+++ b/sci-geosciences/grass/files/digest-grass-6.0.1
@@ -0,0 +1,3 @@
+MD5 5225e816895d5e6b28bca623f76acaad grass-6.0.1.tar.gz 8508427
+RMD160 35cc84ecb593ddc83f78d41985d1ffe9db060295 grass-6.0.1.tar.gz 8508427
+SHA256 53127007260bf2181e711fa0520636ff497bd0c3406c16a1002945b1c4415340 grass-6.0.1.tar.gz 8508427
diff --git a/sci-geosciences/grass/grass-6.0.1.ebuild b/sci-geosciences/grass/grass-6.0.1.ebuild
new file mode 100644
index 000000000000..aeea9e29086f
--- /dev/null
+++ b/sci-geosciences/grass/grass-6.0.1.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.1.ebuild,v 1.9 2006/12/24 21:00:03 nerdboy Exp $
+
+inherit eutils
+
+DESCRIPTION="An open-source GIS with raster and vector functionality"
+HOMEPAGE="http://grass.itc.it/"
+SRC_URI="http://grass.itc.it/grass60/source/${P}.tar.gz
+ http://grass.meteo.uni.wroc.pl/grass60/source/${P}.tar.gz
+ http://grass.ibiblio.org/grass60/source/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="6"
+KEYWORDS="amd64 ppc sparc x86"
+# To-do: get ppc64 gdal deps fixed up
+
+# add gdal back to use flags once grass is fixed
+IUSE="fftw jpeg motif mysql nls odbc opengl png postgres readline tcltk tiff truetype"
+
+RESTRICT="nostrip"
+
+RDEPEND=">=sys-devel/make-3.80
+ >=sys-libs/zlib-1.1.4
+ >=sys-devel/flex-2.5.4a
+ >=sys-devel/bison-1.35
+ >=sys-libs/ncurses-5.3
+ >=sys-libs/gdbm-1.8.0
+ >=sys-devel/gcc-3.2.2
+ virtual/man
+ >=sci-libs/proj-4.4.7
+ sci-libs/gdal
+ fftw? ( =sci-libs/fftw-2* )
+ jpeg? ( media-libs/jpeg )
+ postgres? ( >=dev-db/postgresql-7.3 )
+ mysql? ( virtual/mysql )
+ odbc? ( >=dev-db/unixODBC-2.0.6 )
+ png? ( >=media-libs/libpng-1.2.2 )
+ readline? ( sys-libs/readline )
+ tiff? ( >=media-libs/tiff-3.5.7 )
+ truetype? ( >=media-libs/freetype-2.0 )
+ nls? ( x11-terms/mlterm )
+ opengl? ( virtual/opengl )
+ tcltk? ( >=dev-lang/tcl-8.3.4
+ >=dev-lang/tk-8.3.4 )
+ motif? ( x11-libs/openmotif )
+ || (
+ ( x11-libs/libXmu
+ x11-libs/libXext
+ x11-libs/libXp
+ x11-libs/libX11
+ x11-libs/libXt
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXpm
+ x11-libs/libXaw )
+ virtual/x11
+ )"
+
+DEPEND="${RDEPEND}
+ || (
+ ( x11-proto/xproto x11-proto/xextproto )
+ virtual/x11
+ )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch rpm/fedora/grass-readline.patch
+ sed -i -e "s/relid'/relid/" "${S}"/configure || die "sed blew chunks"
+}
+
+src_compile() {
+
+ MYCONF=" --with-cxx --enable-shared --with-gdal=/usr/bin/gdal-config"
+
+ if use truetype; then
+ MYCONF="${MYCONF} --with-freetype-includes=/usr/include/freetype2/"
+ fi
+
+ use mysql && MYCONF="${MYCONF} --with-mysql \
+ --with-mysql-includes=/usr/include/mysql \
+ --with-mysql-libs=/usr/$(get_libdir)/mysql" \
+ || MYCONF="${MYCONF} --without-mysql"
+
+ if use opengl; then
+ MYCONF="${MYCONF} --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib/"
+ fi
+
+# apparently gdal isn't optional with this version
+# we'll temporarily make it a hard dep for now
+# if use gdal; then
+# MYCONF="${MYCONF} --with-gdal=/usr/bin/gdal-config"
+# else
+# MYCONF="${MYCONF} --without-gdal"
+# fi
+
+ export LD_LIBRARY_PATH="/${WORKDIR}/image/usr/grass60/$(get_libdir):${LD_LIBRARY_PATH}"
+ ./configure \
+ `use_with postgres` \
+ `use_with motif` \
+ `use_with fftw` \
+ `use_with truetype freetype` \
+ `use_with jpeg` \
+ `use_with png` \
+ `use_with tiff` \
+ `use_with odbc` \
+ `use_enable amd64 64bit` \
+ `use_with opengl` \
+ `use_with readline` \
+ `use_with tcltk` \
+ ${MYCONF} || die "Error: configure failed!"
+ emake -j1 || die "Error: emake failed!"
+}
+
+src_install() {
+ make install \
+ prefix=${D}/usr UNIX_BIN=${D}/usr/bin BINDIR=${D}/usr/bin PREFIX=${D}/usr \
+ || die "Error: make install failed!"
+ sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass60:" \
+ ${D}/usr/bin/grass60
+
+ # This is required for GRASS dependent ebuilds (ie. QGIS)
+ mv ${D}/usr/${P} ${D}/usr/grass60
+
+ einfo "Adding env.d entry for Grass6"
+ insinto /etc/env.d
+ newins ${FILESDIR}/99grass-6 99grass
+}