summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2012-05-24 19:32:18 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2012-05-24 19:32:18 +0000
commitbec3fb3aaaa4bde720315fd9d99c33bfda8ff057 (patch)
tree44570931f8a6c8dfd58873a09b5cbd96e9ccaa19 /sci-geosciences
parentUse `default` in src_install, and add patch for building with gcc-4.7. (diff)
downloadhistorical-bec3fb3aaaa4bde720315fd9d99c33bfda8ff057.tar.gz
historical-bec3fb3aaaa4bde720315fd9d99c33bfda8ff057.tar.bz2
historical-bec3fb3aaaa4bde720315fd9d99c33bfda8ff057.zip
Version bump, eapi4.
Package-Manager: portage-2.2.0_alpha107/cvs/Linux x86_64
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/grass/ChangeLog7
-rw-r--r--sci-geosciences/grass/Manifest24
-rw-r--r--sci-geosciences/grass/grass-6.4.2.ebuild321
3 files changed, 350 insertions, 2 deletions
diff --git a/sci-geosciences/grass/ChangeLog b/sci-geosciences/grass/ChangeLog
index 516e57c996b8..d676059af0d3 100644
--- a/sci-geosciences/grass/ChangeLog
+++ b/sci-geosciences/grass/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-geosciences/grass
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.112 2012/05/04 07:14:06 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.113 2012/05/24 19:32:18 scarabeus Exp $
+
+*grass-6.4.2 (24 May 2012)
+
+ 24 May 2012; Tomáš Chvátal <scarabeus@gentoo.org> +grass-6.4.2.ebuild:
+ Version bump, eapi4.
04 May 2012; Jeff Horelick <jdhore@gentoo.org> grass-6.4.1-r1.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest
index 1a1cc000b367..3c28d0d454a2 100644
--- a/sci-geosciences/grass/Manifest
+++ b/sci-geosciences/grass/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX grass-6.4.0-html-nonviz.patch 1774 RMD160 95f278e851dc782fa89861a60e97f2c6c4da564b SHA1 d917690626b669a9e9455b12bcb1aa14db65c29d SHA256 6da939c90fa851c50895aeb26c54bd9a512e2e7ca14c3da3268e1daa672442ff
AUX grass-6.4.1-libav-0.8.patch 1877 RMD160 f3b9a2c21c33f4a09180a63ec7d32479e541e88a SHA1 bf5b5f62d023b7957f2ae8d59449f9a963cf3eaf SHA256 2369d03d3d769624794033ab7d3824624552cc817fa810c16db4fa3c0d8cbd10
AUX grass-6.4.1-libpng15.patch 906 RMD160 50d1df3a4470f937776ad1f1a30afa757f6423e7 SHA1 79f06b8e62a4e09889cf44289e7b98b361264ef9 SHA256 60135350574b9f2c769cb1513446c6b9fea5f949bc084a9e05d2d81a20ae6d55
@@ -5,6 +8,25 @@ AUX grass-6.4.1-nopycompile.patch 533 RMD160 fd245f604ac1b09476916bd116152afee0e
AUX grass-6.4.1-timer_flags.patch 337 RMD160 9ea5905fe405ef55cd82a7008e2b64edec4e3bb5 SHA1 6d61aa234bd8b616c407ed79d9afabeaf17dfdd7 SHA256 fe574ff5657b3c4a13e857f9cb182ee89a74db07d3a59e3f2e84c742510f847c
AUX grass-pkgconf.patch 1322 RMD160 7b48d8e05a07090d8d36d2fb96b385f2d655e066 SHA1 cb33293f442ad0bdd5592f842bcafe13eb021b48 SHA256 2d80c1a3851cd82bdcd7401c537348ec43e488c8b475718727d65ac423a5640c
DIST grass-6.4.1.tar.gz 23608488 RMD160 2a9ee5da891c9d89a5ad0e66f914d2dd763e5128 SHA1 ea1cdfd1b7422367d671eeaf66f362d694a94abd SHA256 8b886faf8635f77f0d1626806454e6e8bdfa9155e3c10a0bc3e10447b9e6bd03
+DIST grass-6.4.2.tar.gz 24097202 RMD160 2a8a2a63edf8e1cc53b7b26975087eef59c9a397 SHA1 74481611573677d90ae0cd446c04a3895e232004 SHA256 670bb74d3000ea0932b7e988d3080d0c629f9eb22a8479bb2987ded473f7b4ca
EBUILD grass-6.4.1-r1.ebuild 8073 RMD160 e8dacca94199c65f5384bdb76295a8c5cf662cf1 SHA1 842276f7ce638562524add5524df06e660a25af6 SHA256 c280b66ecf99d4db135336edeb29e5ec4e580b48c14ee018247670100df5ff9c
-MISC ChangeLog 21722 RMD160 449a50fee478c5525fed29e1d35408a5463e4c78 SHA1 87e39303ff52e980a0ea1d9ec6b399ea1b1fcce1 SHA256 8f782a72ec8ce381c8bf7ca6850d92f450840b511175d359ba02b2829c83913a
+EBUILD grass-6.4.2.ebuild 7558 RMD160 92a755c64ee248fa149f02b6ac6bd152b69a7fa8 SHA1 f906d5b696a246ec7e2ae887f1a105adaef5cf6e SHA256 81974b7116808be4a4c58f763c65ebcba3c91814b0a6c6512cc9e708f53d31ae
+MISC ChangeLog 21853 RMD160 9a855c5a20be578c9f171da5c9adf21dd160849e SHA1 f099397b808e65c09fae48aceb9b9f658fd78009 SHA256 5e5dccfe6097b9b1be72c108e15e4128b1a694544eb902151f25b5935b44b6e2
MISC metadata.xml 629 RMD160 69f5617b3320877ac6089e4f48b753da437e2458 SHA1 0b8d802fbe536bff533c76b591e0ec3accfe9dd1 SHA256 e6307680fa4020225e1dd8769ead3e2d20452f87d80d2467b52849c50c2d765b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQIcBAEBAgAGBQJPvozIAAoJEOSiRoyO7jvoGXAQAIE4ouoSUHQBnoO9PMNK8zdx
+gcJEzWzI9lrvcQCBzCxxdUEh8EV1Zu8hMHpwii1mdhwxldXhiWflmz3tkbIPrzOU
+fH6e3VCARn0oznqriva00h2Ut705kJK7JkPKZK4c32KSG1W/rRt5ArXwsx83L8I0
+ohENxWKmeafRyt3FFpbfGnduUggxI9DxzagAEEj1UavvtZaC2g8WZ12iZlELEtFP
+oXUiNh5MaSnikzPB67p1/ThwzriBX3YBNpOQcs8RT94E1z7Ctwii5oMCRZpX3nwZ
+kxAl6db9I8dOiE2Her5kwQgy6d8qAEnvVn+OX1I0rSQJ17xRzkS+tGMbZYFYPzug
+sKA1pT584Y7FBARpC88TAQB3Tc7OjNxA3DMf17aBvkRSHaxQiWBYaqnQvHTTvkz0
+NvurojL2s7pgiG3ZDj6xL79pb8a+BmCsizetB3eeMqwFvKvx5f+4jnLTDlhTX2DR
+0nbOeS7xPaFQxewtbuP7wHRDQIg1qvlo4/0ZuTF8TJl6Js4Xo1H+mQNQwO/Sdhyu
+noWwYYsyj4fpxL5GpnWYuDnfYddYf2W+qWqo3W57XubGJohTo8LDyy2+m0OP3qbE
+XV501eM/UbG/eZPkRj00vgT2uas9uNBbCJbWl60f2i5VCnGkNiyP5nF/xfFlm8dG
++/8Hakw8pyPH7YWO5hvw
+=hIDG
+-----END PGP SIGNATURE-----
diff --git a/sci-geosciences/grass/grass-6.4.2.ebuild b/sci-geosciences/grass/grass-6.4.2.ebuild
new file mode 100644
index 000000000000..287532346deb
--- /dev/null
+++ b/sci-geosciences/grass/grass-6.4.2.ebuild
@@ -0,0 +1,321 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.2.ebuild,v 1.1 2012/05/24 19:32:17 scarabeus Exp $
+
+EAPI=4
+
+PYTHON_DEPEND="python? 2"
+
+inherit eutils gnome2 multilib python versionator wxwidgets base
+
+MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
+MY_PM=${MY_PM/.}
+MY_P=${P/_rc/RC}
+
+DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
+HOMEPAGE="http://grass.osgeo.org/"
+SRC_URI="http://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="6"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="X cairo cxx ffmpeg fftw gmath jpeg motif mysql nls odbc opengl png postgres python readline sqlite tiff truetype wxwidgets"
+
+TCL_DEPS="
+ >=dev-lang/tcl-8.5
+ >=dev-lang/tk-8.5"
+
+RDEPEND="
+ >=app-admin/eselect-1.2
+ sci-libs/gdal
+ sci-libs/proj
+ sys-libs/gdbm
+ sys-libs/ncurses
+ sys-libs/zlib
+ cairo? ( x11-libs/cairo[X?,opengl?] )
+ ffmpeg? ( virtual/ffmpeg )
+ fftw? ( sci-libs/fftw:3.0 )
+ gmath? (
+ virtual/blas
+ virtual/lapack
+ )
+ jpeg? ( virtual/jpeg )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ opengl? (
+ virtual/opengl
+ ${TCL_DEPS}
+ )
+ png? ( media-libs/libpng )
+ postgres? ( >=dev-db/postgresql-base-8.4 )
+ readline? ( sys-libs/readline )
+ sqlite? ( dev-db/sqlite:3 )
+ tiff? ( media-libs/tiff )
+ truetype? ( media-libs/freetype:2 )
+ wxwidgets? ( >=dev-python/wxpython-2.8.10.1[cairo,opengl?] )
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/libXt
+ motif? (
+ >=x11-libs/openmotif-2.3:0
+ opengl? (
+ || (
+ media-libs/mesa[motif]
+ ( media-libs/mesa x11-libs/libGLw )
+ )
+ )
+ )
+ !python? ( ${TCL_DEPS} )
+ !wxwidgets? ( ${TCL_DEPS} )
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ sys-devel/gettext
+ sys-devel/bison
+ wxwidgets? ( dev-lang/swig )
+ X? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-pkgconf.patch
+ "${FILESDIR}"/${PN}-6.4.1-libav-0.8.patch
+)
+
+REQUIRED_USE="
+ motif? ( X )
+ opengl? ( X )
+ wxwidgets? ( X python )
+"
+
+pkg_setup() {
+ local myblas
+
+ # check correct gmath profiles (this must sadly die)
+ if use gmath; then
+ for d in $(eselect lapack show); do myblas=${d}; done
+ if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
+ ewarn "You need to set lapack to atlas or reference. Do:"
+ ewarn " eselect lapack set <impl>"
+ ewarn "where <impl> is atlas, threaded-atlas or reference"
+ die "setup failed"
+ fi
+ for d in $(eselect blas show); do myblas=${d}; done
+ if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
+ ewarn "You need to set blas to atlas or reference. Do:"
+ ewarn " eselect blas set <impl>"
+ ewarn "where <impl> is atlas, threaded-atlas or reference"
+ die "setup failed"
+ fi
+ fi
+
+ if use python; then
+ # only py2 is supported
+ python_set_active_version 2
+ fi
+}
+
+src_prepare() {
+ use opengl || epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch
+ base_src_prepare
+}
+
+src_configure() {
+ local myconf TCL_LIBDIR
+
+ if use X; then
+ TCL_LIBDIR="/usr/$(get_libdir)/tcl8.5"
+ myconf+="
+ --with-tcltk-libs=${TCL_LIBDIR}
+ $(use_with motif)
+ $(use_with opengl)
+ --with-x
+ "
+
+
+
+ use opengl && myconf+=" --with-tcltk"
+ use motif && use opengl && myconf+=" --with-glw"
+ use motif || myconf+=" --without-glw"
+ else
+ myconf+="
+ --without-opengl
+ --without-glw
+ --without-x
+ "
+ fi
+
+ if use wxwidgets; then
+ WX_BUILD=yes
+ WX_GTK_VER=2.8
+ need-wxwidgets unicode
+ myconf+="
+ --without-tcltk
+ --with-wxwidgets=${WX_CONFIG}
+ "
+ else
+ WX_BUILD=no
+ # use tcl gui if wxwidgets are disabled
+ myconf+="
+ --with-tcltk
+ --without-wxwidgets
+ "
+ fi
+
+ econf \
+ --with-gdal=$(type -P gdal-config) \
+ --with-curses \
+ --with-proj \
+ --with-proj-share="/usr/share/proj/" \
+ --without-glw \
+ --enable-shared \
+ $(use_enable amd64 64bit) \
+ $(use_enable ppc64 64bit) \
+ $(use_with cairo) \
+ $(use_with cxx) \
+ $(use_with fftw) \
+ $(use_with ffmpeg) \
+ --with-ffmpeg-includes="/usr/include/libavcodec /usr/include/libavdevice /usr/include/libavfilter /usr/include/libavformat /usr/include/libavutil /usr/include/libpostproc /usr/include/libswscale" \
+ $(use_with gmath blas) \
+ $(use_with gmath lapack) \
+ $(use_with jpeg) \
+ $(use_with mysql) \
+ --with-mysql-includes=/usr/include/mysql \
+ --with-mysql-libs=/usr/$(get_libdir)/mysql \
+ $(use_with nls) \
+ $(use_with odbc) \
+ $(use_with png) \
+ $(use_with postgres) \
+ $(use_with python) \
+ $(use_with readline) \
+ $(use_with sqlite) \
+ $(use_with tiff) \
+ $(use_with truetype freetype) \
+ --with-freetype-includes="/usr/include/freetype2/" \
+ --enable-largefile \
+ ${myconf}
+}
+
+src_compile() {
+ # we don't want to link against embeded mysql lib
+ base_src_compile MYSQLDLIB=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ INST_DIR="${D}"/usr/${MY_PM} \
+ prefix="${D}"/usr BINDIR="${D}"/usr/bin \
+ PREFIX="${D}"/usr/ \
+ install
+
+ pushd "${ED}"/usr/${MY_PM} &> /dev/null
+
+ # fix docs
+ dodoc AUTHORS CHANGES
+ dohtml -r docs/html/*
+ rm -rf docs/ || die
+ rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die
+
+ # manuals
+ dodir /usr/share/man/man1
+ mv man/man1/* "${ED}"/usr/share/man/man1/ || die
+ rm -rf man/ || die
+ mv -vf "${ED}"/usr/share/man/man1/sql.1{,grass} || die #381599
+
+ # translations
+ if use nls; then
+ dodir /usr/share/locale/
+ mv locale/* "${ED}"/usr/share/locale/ || die
+ rm -rf locale/ || die
+ # pt_BR is broken
+ mv "${ED}"/usr/share/locale/pt_br "${ED}"/usr/share/locale/pt_BR || die
+ fi
+
+ popd &> /dev/null
+
+ # place libraries where they belong
+ mv "${ED}"/usr/${MY_PM}/lib/ "${ED}"/usr/$(get_libdir)/ || die
+
+ # place header files where they belong
+ mv "${ED}"/usr/${MY_PM}/include/ "${ED}"/usr/include/ || die
+ # make rules are not required on installed system
+ rm -rf "${ED}"/usr/include/Make || die
+
+ # mv remaining gisbase stuff to libdir
+ mv "${ED}"/usr/${MY_PM} "${ED}"/usr/$(get_libdir) || die
+
+ # set proper default window renderer
+ if [[ ${WX_BUILD} == yes ]]; then
+ sed -i \
+ -e "1,\$s:^DEFAULT_GUI.*:DEFAULT_GUI=\"wxpython\":" \
+ "${ED}"/usr/$(get_libdir)/${MY_PM}/etc/Init.sh || die
+ fi
+
+ # get proper folder for grass path in script
+ sed -i \
+ -e "1,\$s:^GISBASE.*:GISBASE=/usr/$(get_libdir)/${MY_PM}:" \
+ "${ED}"usr/bin/${MY_PM} || die
+
+ # get proper fonts path for fontcap
+ sed -i \
+ -e "s|${ED}/usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
+ "${ED}"/usr/$(get_libdir)/${MY_PM}/etc/fontcap || die
+
+ if use X; then
+ generate_files
+ doicon gui/icons/${PN}-48x48.png
+ domenu ${MY_PM}-grass.desktop
+ fi
+
+ # install .pc file so other apps know where to look for grass
+ insinto /usr/$(get_libdir)/pkgconfig/
+ doins grass.pc
+
+ # fix weird +x on tcl scripts
+ find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
+}
+
+pkg_postinst() {
+ if use X; then
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ if use X; then
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ fi
+}
+
+generate_files() {
+ local GUI="-gui"
+ [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
+
+ cat <<-EOF > ${MY_PM}-grass.desktop
+ [Desktop Entry]
+ Encoding=UTF-8
+ Version=1.0
+ Name=Grass ${PV}
+ Type=Application
+ Comment=GRASS (Geographic Resources Analysis Support System), the original GIS.
+ Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI}
+ Path=
+ Icon=${PN}-48x48.png
+ Categories=Science;Education;
+ Terminal=false
+EOF
+}