diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-06-11 14:13:15 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-06-11 14:13:15 +0000 |
commit | 106323e5930d6751836106c21238a73d195d2504 (patch) | |
tree | d6058908e0a60d96c73e73d58c93841f1f9673de /sci-geosciences | |
parent | Build with any tiff version, but make sure it is always the external one. (diff) | |
download | historical-106323e5930d6751836106c21238a73d195d2504.tar.gz historical-106323e5930d6751836106c21238a73d195d2504.tar.bz2 historical-106323e5930d6751836106c21238a73d195d2504.zip |
Grass is quite happy to use any tiff version that gdal suplies.
Package-Manager: portage-2.2.0_alpha39/cvs/Linux x86_64
Diffstat (limited to 'sci-geosciences')
-rw-r--r-- | sci-geosciences/grass/ChangeLog | 6 | ||||
-rw-r--r-- | sci-geosciences/grass/Manifest | 12 | ||||
-rw-r--r-- | sci-geosciences/grass/grass-6.4.0.ebuild | 322 | ||||
-rw-r--r-- | sci-geosciences/grass/grass-6.4.1.ebuild | 20 |
4 files changed, 16 insertions, 344 deletions
diff --git a/sci-geosciences/grass/ChangeLog b/sci-geosciences/grass/ChangeLog index 171c46ef8937..d6a2aee6d1d4 100644 --- a/sci-geosciences/grass/ChangeLog +++ b/sci-geosciences/grass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-geosciences/grass # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.101 2011/04/19 17:22:25 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.102 2011/06/11 14:13:15 scarabeus Exp $ + + 11 Jun 2011; Tomáš Chvátal <scarabeus@gentoo.org> -grass-6.4.0.ebuild, + grass-6.4.1.ebuild: + Grass is quite happy to use any tiff version that gdal suplies. 19 Apr 2011; Tomáš Chvátal <scarabeus@gentoo.org> grass-6.4.1.ebuild: Fix patch name. Per bug #364049. This is the reason why conditional patches diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest index f3ba1244b7c2..ed6e100c7597 100644 --- a/sci-geosciences/grass/Manifest +++ b/sci-geosciences/grass/Manifest @@ -8,17 +8,15 @@ AUX grass-6.4.0-html-nonviz.patch 1774 RMD160 95f278e851dc782fa89861a60e97f2c6c4 AUX grass-pkgconf.patch 1322 RMD160 7b48d8e05a07090d8d36d2fb96b385f2d655e066 SHA1 cb33293f442ad0bdd5592f842bcafe13eb021b48 SHA256 2d80c1a3851cd82bdcd7401c537348ec43e488c8b475718727d65ac423a5640c AUX grass_icon.png 4470 RMD160 b4a6deeb6ce859a57c6aba3c4095e2dd718f36e9 SHA1 6839c28ec1d01c486d45a245a159fced3c0d0810 SHA256 c6c873f24bb59b8ff98000b500ca3a047ca86af216b4b7b1593baef5f2fbe6a9 DIST grass-6.3.0.tar.gz 17688547 RMD160 66db4223fc0d5172371903f71d68f1dd024ad2d2 SHA1 c4b0b1407655f8ed1e16e911df191323fe00eb9e SHA256 a84658a7065a3ece09d3d18a3b601515484d1e5dbb3a92b8fbac3c37e368acf4 -DIST grass-6.4.0.tar.gz 22569021 RMD160 b0bd2d2ce048a5f10f345786bc81fa4bd22df019 SHA1 c91e8501c7a756a94d2be47729f640d33b2a7468 SHA256 1db0422de4bb6146322721760b3c2b310850069ee320e03b6a625e4472f477a7 DIST grass-6.4.1.tar.gz 23608488 RMD160 2a9ee5da891c9d89a5ad0e66f914d2dd763e5128 SHA1 ea1cdfd1b7422367d671eeaf66f362d694a94abd SHA256 8b886faf8635f77f0d1626806454e6e8bdfa9155e3c10a0bc3e10447b9e6bd03 EBUILD grass-6.3.0.ebuild 8155 RMD160 cee6ef727cbbc37b172fcedc83991fbb5cc01678 SHA1 efb08916ab3f1bf6e1e3e3881954de8accdc5bd6 SHA256 0b0331383d9ac16a4363cdb2ae6a359ff0e3dae7ccd36e28716e0ae203ed18e1 -EBUILD grass-6.4.0.ebuild 7869 RMD160 e70bda0945a999e75b86c6c68a888a2c684a708d SHA1 b6460432ca04a17f43f0e14ca61a0d827f30b3ac SHA256 67f301a3542ac38d3f9292ff4ddb0ebb49bf766281793796d6240fc5dd9271e5 -EBUILD grass-6.4.1.ebuild 7881 RMD160 15385d2351675eb92e1df0219d32dbd9e882d741 SHA1 7ef0d11a1bb695532e6abf043484eaddd9e3f819 SHA256 92845781f40cf701941cb8df3d4de73d82cbf9b135345a75330e7bdb5ad9be6a -MISC ChangeLog 19968 RMD160 01fe16c555e54c3b65e1f4a6f3675784c639fec0 SHA1 e591d2726dd4bcfaeaf2a7f27a2bd5e1c512f4fa SHA256 b4e7566b9a95e3a55d357cd35d5a86af7bc65707c6afdb71767411b345a87779 +EBUILD grass-6.4.1.ebuild 7810 RMD160 2ab6f763986f68bca39a83fe959c994dd0f619a2 SHA1 0a21d10d08f6e0d1ae51c40c27347575562eafe0 SHA256 741ac544da34cb88fb3443cf9d749796ec53b5eb5e6c19e0b8f99392b5b21cc4 +MISC ChangeLog 20133 RMD160 b20e29e87833f4ba74b905eb6238a7f4a8459563 SHA1 3ccc39a0dc550438b0f01a7367ef72f7843468f8 SHA256 44d5be0b060a268e1345681489353136bed3111a9c197a1023d79f36d3f67d32 MISC metadata.xml 623 RMD160 f3ab7360eb95e18d25fa0f35bd8817e8628e3246 SHA1 497c577a971010147239a61515ab66a678881569 SHA256 d6200460324878b71cae01dc1193c77749b88b7c2e723041d9f426487c50c85f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk2txNUACgkQHB6c3gNBRYcowgCcC+5LLv+Q69s56CejJLPeOsa9 -8vAAn3QDJ3wTnRILlYSsum8ekUUb1Xqt -=caDq +iEYEARECAAYFAk3zd9sACgkQHB6c3gNBRYdWzgCdHkt2E8bXvoE76YZb2FmQQWgB +EQEAn0IqPFqh3PZy34r9JT+5J2mXXMsb +=Nn5o -----END PGP SIGNATURE----- diff --git a/sci-geosciences/grass/grass-6.4.0.ebuild b/sci-geosciences/grass/grass-6.4.0.ebuild deleted file mode 100644 index eaa5328f3c08..000000000000 --- a/sci-geosciences/grass/grass-6.4.0.ebuild +++ /dev/null @@ -1,322 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.0.ebuild,v 1.9 2011/04/05 06:38:52 jlec Exp $ - -EAPI="3" - -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 ) - png? ( media-libs/libpng ) - postgres? ( - || ( - >=dev-db/postgresql-base-8.4 - >=dev-db/postgresql-server-8.4 - ) - ) - readline? ( sys-libs/readline ) - sqlite? ( dev-db/sqlite:3 ) - tiff? ( >=media-libs/tiff-4 ) - truetype? ( media-libs/freetype:2 ) - 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] ) - ) - opengl? ( - virtual/opengl - ${TCL_DEPS} - ) - python? ( wxwidgets? ( >=dev-python/wxpython-2.8.10.1[cairo,opengl?] ) ) - !python? ( ${TCL_DEPS} ) - !wxwidgets? ( ${TCL_DEPS} ) - )" - -DEPEND="${RDEPEND} - dev-util/pkgconfig - sys-devel/flex - sys-devel/gettext - sys-devel/bison - X? ( - x11-proto/xextproto - x11-proto/xproto - python? ( wxwidgets? ( dev-lang/swig ) ) - )" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( - "${FILESDIR}/${PN}-pkgconf.patch" -) - -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 - - # check useflag nesting. - use motif && ! use X && ewarn "For motif support X useflag must be enabled" - use opengl && ! use X && ewarn "For opengl support X useflag must be enabled" - use wxwidgets && ! use X && ewarn "For wxwidgets support X useflag must be enabled" - use wxwidgets && ! use python && ewarn "For wxwidgets support python useflag must be enabled" - - if use python; then - # only py2 is supported - python_set_active_version 2 - fi -} - -src_prepare() { - if ! use opengl; then - epatch "${FILESDIR}"/${P}-html-nonviz.patch - fi - - 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 - " - - if use python && 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 - - use opengl && myconf+=" --with-tcltk" - use motif && use opengl && myconf+=" --with-glw" - use motif || myconf+=" --without-glw" - else - myconf+=" - --without-opengl - --without-glw - --without-tcltk - --without-wxwidgets - --without-x - " - 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 || die - - pushd "${D}"/usr/${MY_PM} &> /dev/null - - # fix docs - dodoc AUTHORS CHANGES || die - dohtml -r docs/html/* || die - rm -rf docs/ || die - rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die - - # manuals - dodir /usr/share/man/man1 || die - mv man/man1/* "${D}"/usr/share/man/man1/ || die - rm -rf man/ || die - - # translations - if use nls; then - dodir /usr/share/locale/ || die - mv locale/* "${D}"/usr/share/locale/ || die - rm -rf locale/ || die - # pt_BR is broken - mv "${D}"/usr/share/locale/pt_br "${D}"/usr/share/locale/pt_BR || die - fi - - popd &> /dev/null - - # place libraries where they belong - mv "${D}"/usr/${MY_PM}/lib/ "${D}"/usr/$(get_libdir)/ || die - - # place header files where they belong - mv "${D}"/usr/${MY_PM}/include/ "${D}"/usr/include/ || die - # make rules are not required on installed system - rm -rf "${D}"/usr/include/Make || die - - # mv remaining gisbase stuff to libdir - mv "${D}"/usr/${MY_PM} "${D}"/usr/$(get_libdir) || die - - # set proper default window renderer - if [[ ${WX_BUILD} == yes ]]; then - sed -i \ - -e "1,\$s:^DEFAULT_GUI.*:DEFAULT_GUI=\"wxpython\":" \ - "${D}"/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}:" \ - "${D}"usr/bin/${MY_PM} || die - - # get proper fonts path for fontcap - sed -i \ - -e "s|${D}/usr/${MY_PM}|/usr/$(get_libdir)/${MY_PM}|" \ - "${D}"/usr/$(get_libdir)/${MY_PM}/etc/fontcap || die - - if use X; then - generate_files - doicon gui/icons/${PN}-48x48.png || die - domenu ${MY_PM}-grass.desktop || die - fi - - # install .pc file so other apps know where to look for grass - insinto /usr/$(get_libdir)/pkgconfig/ - doins grass.pc || die - - # 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 -} diff --git a/sci-geosciences/grass/grass-6.4.1.ebuild b/sci-geosciences/grass/grass-6.4.1.ebuild index 932761056cae..36dbde1efedf 100644 --- a/sci-geosciences/grass/grass-6.4.1.ebuild +++ b/sci-geosciences/grass/grass-6.4.1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.1.ebuild,v 1.2 2011/04/19 17:22:25 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.1.ebuild,v 1.3 2011/06/11 14:13:15 scarabeus Exp $ -EAPI="3" +EAPI=3 PYTHON_DEPEND="python? 2" @@ -43,15 +43,10 @@ RDEPEND=" mysql? ( virtual/mysql ) odbc? ( dev-db/unixODBC ) png? ( media-libs/libpng ) - postgres? ( - || ( - >=dev-db/postgresql-base-8.4 - >=dev-db/postgresql-server-8.4 - ) - ) + postgres? ( >=dev-db/postgresql-base-8.4 ) readline? ( sys-libs/readline ) sqlite? ( dev-db/sqlite:3 ) - tiff? ( >=media-libs/tiff-4 ) + tiff? ( media-libs/tiff ) truetype? ( media-libs/freetype:2 ) X? ( x11-libs/libICE @@ -127,10 +122,7 @@ pkg_setup() { } src_prepare() { - if ! use opengl; then - epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch - fi - + use opengl || epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch base_src_prepare } @@ -318,5 +310,5 @@ generate_files() { Icon=${PN}-48x48.png Categories=Science;Education; Terminal=false - EOF +EOF } |