diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/geos | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/geos')
-rw-r--r-- | sci-libs/geos/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/geos/files/3.2.0-darwin.patch | 13 | ||||
-rw-r--r-- | sci-libs/geos/files/3.2.0-python.patch | 40 | ||||
-rw-r--r-- | sci-libs/geos/files/3.3.2-solaris-isnan.patch | 13 | ||||
-rw-r--r-- | sci-libs/geos/files/3.4.1-solaris-isnan.patch | 14 | ||||
-rw-r--r-- | sci-libs/geos/files/3.4.2-ruby_so_name.patch | 12 | ||||
-rw-r--r-- | sci-libs/geos/files/3.4.2-solaris-isnan.patch | 14 | ||||
-rw-r--r-- | sci-libs/geos/geos-3.4.1-r1.ebuild | 61 | ||||
-rw-r--r-- | sci-libs/geos/geos-3.4.2-r1.ebuild | 58 | ||||
-rw-r--r-- | sci-libs/geos/metadata.xml | 15 |
10 files changed, 242 insertions, 0 deletions
diff --git a/sci-libs/geos/Manifest b/sci-libs/geos/Manifest new file mode 100644 index 000000000000..b0d0b45bc3ec --- /dev/null +++ b/sci-libs/geos/Manifest @@ -0,0 +1,2 @@ +DIST geos-3.4.1.tar.bz2 1813303 SHA256 d07ac375f3edd12425d6ce5a96db9739d5ff358cbdf60c6804f7a9e565af8ff2 SHA512 69d02630856f63bd0617db383b9936ad07e94d2b2fda4a3865657057626887439b52fd7b74602d529aff5cf8c7fbfea72672ccde807395b2dc1cc73c93c2567b WHIRLPOOL 35a6673a98d1fa1f10113c8cfef4dc32ba9b68dcc23e5522252870c2591537f80841913105425bd23ebecaa63d520ceccbfe7824a00e70e9c1461aa919bf2469 +DIST geos-3.4.2.tar.bz2 1813726 SHA256 15e8bfdf7e29087a957b56ac543ea9a80321481cef4d4f63a7b268953ad26c53 SHA512 c335608ff5e719ec6f3a6edc157c11fe5aaf9a813bf3c4b1e8a05de7a52584f6f64d5c42e646410c09a2e3cdfd3f8f994bedba37fc60454bbaa7c25ba1d36c9b WHIRLPOOL 5090bb4a4413b4c6fa00651058acfd5cb98bb8a2e68b1175baaf4ade6c737792239a08a6f9f3831c963e896469f9e9a4c1410bdddfb152638f1e72cbdb7c05e0 diff --git a/sci-libs/geos/files/3.2.0-darwin.patch b/sci-libs/geos/files/3.2.0-darwin.patch new file mode 100644 index 000000000000..2701b5906a7b --- /dev/null +++ b/sci-libs/geos/files/3.2.0-darwin.patch @@ -0,0 +1,13 @@ +Also check for dylib before giving up, bug #335811 + +--- macros/ac_python_devel.m4 ++++ macros/ac_python_devel.m4 +@@ -42,7 +42,7 @@ + # Check for Python library path + AC_MSG_CHECKING([for Python library path]) + python_path=`python$PYTHON_VERSION -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_var("LIBDIR"))'` +- if test ! -f "${python_path}"/libpython$PYTHON_VERSION.so ; then ++ if test ! -f "${python_path}"/libpython$PYTHON_VERSION.so && test ! -f "${python_path}"/libpython$PYTHON_VERSION.dylib ; then + python_path="" + fi + AC_MSG_RESULT([$python_path]) diff --git a/sci-libs/geos/files/3.2.0-python.patch b/sci-libs/geos/files/3.2.0-python.patch new file mode 100644 index 000000000000..b4a85c0410ad --- /dev/null +++ b/sci-libs/geos/files/3.2.0-python.patch @@ -0,0 +1,40 @@ +diff --git a/macros/ac_python_devel.m4 b/macros/ac_python_devel.m4 +index d67842b..f3a3a3b 100644 +--- a/macros/ac_python_devel.m4 ++++ b/macros/ac_python_devel.m4 +@@ -29,13 +29,10 @@ AC_DEFUN([AC_PYTHON_DEVEL],[ + + # Check for Python include path + AC_MSG_CHECKING([for Python include path]) +- for i in "$base_python_path/include/python$PYTHON_VERSION/" "$base_python_path/include/python/" "$base_python_path/include/" "$base_python_path/" ; do +- python_path=`find $i -type f -name Python.h -print 2> /dev/null | sed "1q"` +- if test -n "$python_path" ; then +- break +- fi +- done +- python_path=`echo $python_path | sed "s,/Python.h$,,"` ++ python_path="${base_python_path}/include/python$PYTHON_VERSION/" ++ if test ! -f "${python_path}"/Python.h ; then ++ python_path="" ++ fi + AC_MSG_RESULT([$python_path]) + if test -z "$python_path" ; then + AC_MSG_ERROR([cannot find Python include path]) +@@ -44,13 +41,10 @@ AC_DEFUN([AC_PYTHON_DEVEL],[ + + # Check for Python library path + AC_MSG_CHECKING([for Python library path]) +- for i in "$base_python_path/lib/python$PYTHON_VERSION/config/" "$base_python_path/lib/python$PYTHON_VERSION/" "$base_python_path/lib/python/config/" "$base_python_path/lib/python/" "$base_python_path/" "$base_python_path/libs/" ; do +- python_path=`find $i -name libpython$PYTHON_VERSION.* -print 2> /dev/null | sed "1q"` +- if test -n "$python_path" ; then +- break +- fi +- done +- python_path=`echo $python_path | sed "s,/libpython.*$,,"` ++ python_path=`python$PYTHON_VERSION -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_var("LIBDIR"))'` ++ if test ! -f "${python_path}"/libpython$PYTHON_VERSION.so ; then ++ python_path="" ++ fi + AC_MSG_RESULT([$python_path]) + if test -z "$python_path" ; then + AC_MSG_ERROR([cannot find Python library path]) diff --git a/sci-libs/geos/files/3.3.2-solaris-isnan.patch b/sci-libs/geos/files/3.3.2-solaris-isnan.patch new file mode 100644 index 000000000000..04dc131e7df3 --- /dev/null +++ b/sci-libs/geos/files/3.3.2-solaris-isnan.patch @@ -0,0 +1,13 @@ +--- include/geos/platform.h.in ++++ include/geos/platform.h.in +@@ -97,8 +97,9 @@ + // It does leave a version in std. + # define ISNAN(x) (std::isnan(x)) + # elif defined(__sun) || defined(__sun__) ++# define _XOPEN_SOURCE 600 // force iso/math_c99 + # include <math.h> +-# define ISNAN(x) (::isnan(x)) ++# define ISNAN(x) (std::isnan(x)) + # endif + #endif + diff --git a/sci-libs/geos/files/3.4.1-solaris-isnan.patch b/sci-libs/geos/files/3.4.1-solaris-isnan.patch new file mode 100644 index 000000000000..f4cb2aee9ad0 --- /dev/null +++ b/sci-libs/geos/files/3.4.1-solaris-isnan.patch @@ -0,0 +1,14 @@ +diff -Naruw geos-3.4.1.orig/include/geos/platform.h.in geos-3.4.1/include/geos/platform.h.in +--- geos-3.4.1.orig/include/geos/platform.h.in 2013-08-17 14:08:04.000000000 +0000 ++++ geos-3.4.1/include/geos/platform.h.in 2013-08-18 22:00:59.412676805 +0000 +@@ -96,8 +96,9 @@ + // It does leave a version in std. + # define ISNAN(x) (std::isnan(x)) + # elif defined(__sun) || defined(__sun__) ++# define _XOPEN_SOURCE 600 // force iso/math_c99 + # include <math.h> +-# define ISNAN(x) (::isnan(x)) ++# define ISNAN(x) (std::isnan(x)) + # endif + #endif + diff --git a/sci-libs/geos/files/3.4.2-ruby_so_name.patch b/sci-libs/geos/files/3.4.2-ruby_so_name.patch new file mode 100644 index 000000000000..4168e5c0263f --- /dev/null +++ b/sci-libs/geos/files/3.4.2-ruby_so_name.patch @@ -0,0 +1,12 @@ +diff -Naur geos-3.4.2.orig/macros/ruby.m4 geos-3.4.2/macros/ruby.m4 +--- a/macros/ruby.m4 2013-08-25 11:10:32.000000000 -0400 ++++ b/macros/ruby.m4 2014-11-05 06:35:39.347830878 -0500 +@@ -38,7 +38,7 @@ + RUBY_EXTENSION_DIR=`$RUBY -rrbconfig -e 'puts RbConfig::CONFIG[["sitearchdir"]] || Config::CONFIG[["sitearchdir"]]'` + + dnl Get Ruby shared library name, this does not include the lib prefix or extension name +- RUBY_SO_NAME=`$RUBY -rrbconfig -e 'puts RbConfig::CONFIG[["LIBRUBY_SO"]] || Config::CONFIG[["RUBY_SO_NAME"]]'` ++ RUBY_SO_NAME=`$RUBY -rrbconfig -e 'puts RbConfig::CONFIG[["RUBY_SO_NAME"]] || Config::CONFIG[["RUBY_SO_NAME"]]'` + + dnl Get Ruby shared libary name + RUBY_SHARED_LIB=`$RUBY -rrbconfig -e 'puts RbConfig::CONFIG[["LIBRUBY"]] || Config::CONFIG[["LIBRUBY"]]'` diff --git a/sci-libs/geos/files/3.4.2-solaris-isnan.patch b/sci-libs/geos/files/3.4.2-solaris-isnan.patch new file mode 100644 index 000000000000..a66d36f6587d --- /dev/null +++ b/sci-libs/geos/files/3.4.2-solaris-isnan.patch @@ -0,0 +1,14 @@ +diff -Naruw geos-3.4.2.orig/include/geos/platform.h.in geos-3.4.2/include/geos/platform.h.in +--- geos-3.4.2.orig/include/geos/platform.h.in 2013-08-25 15:10:32.000000000 +0000 ++++ geos-3.4.2/include/geos/platform.h.in 2013-10-20 23:45:29.891690795 +0000 +@@ -98,8 +98,9 @@ + // It does leave a version in std. + # define ISNAN(x) (std::isnan(x)) + # elif (defined(__sun) || defined(__sun__)) && defined(__SUNPRO_CC) ++# define _XOPEN_SOURCE 600 //force iso/math_c99 + # include <math.h> +-# define ISNAN(x) (::isnan(x)) ++# define ISNAN(x) (std::isnan(x)) + # endif + #endif + diff --git a/sci-libs/geos/geos-3.4.1-r1.ebuild b/sci-libs/geos/geos-3.4.1-r1.ebuild new file mode 100644 index 000000000000..7eb33e194e9b --- /dev/null +++ b/sci-libs/geos/geos-3.4.1-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +inherit autotools eutils python-single-r1 python-utils-r1 + +DESCRIPTION="Geometry engine library for Geographic Information Systems" +HOMEPAGE="http://trac.osgeo.org/geos/" +SRC_URI="http://download.osgeo.org/geos/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86 ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" +IUSE="doc php python ruby static-libs" + +RDEPEND=" + php? ( >=dev-lang/php-5.3[-threads] ) + ruby? ( dev-lang/ruby ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + php? ( dev-lang/swig ) + python? ( dev-lang/swig ${PYTHON_DEPS} ) + ruby? ( dev-lang/swig ) +" + +src_prepare() { + epatch "${FILESDIR}"/3.4.1-solaris-isnan.patch + eautoreconf + echo "#!${EPREFIX}/bin/bash" > py-compile +} + +src_configure() { + econf \ + $(use_enable python) \ + $(use_enable ruby) \ + $(use_enable php) \ + $(use_enable static-libs static) +} + +src_compile() { + emake + + use doc && emake -C "${S}/doc" doxygen-html +} + +src_install() { + emake DESTDIR="${D}" install + + # https://bugs.gentoo.org/show_bug.cgi?id=487068 + insinto /usr/include/geos + doins include/geos/platform.h + + use doc && dohtml -r doc/doxygen_docs/html/* + use python && python_optimize "${D}$(python_get_sitedir)"/geos/ + + find "${ED}" -name '*.la' -exec rm -f {} + +} diff --git a/sci-libs/geos/geos-3.4.2-r1.ebuild b/sci-libs/geos/geos-3.4.2-r1.ebuild new file mode 100644 index 000000000000..567d3eaf7f50 --- /dev/null +++ b/sci-libs/geos/geos-3.4.2-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +inherit autotools eutils python-single-r1 python-utils-r1 + +DESCRIPTION="Geometry engine library for Geographic Information Systems" +HOMEPAGE="http://trac.osgeo.org/geos/" +SRC_URI="http://download.osgeo.org/geos/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris" +IUSE="doc php python ruby static-libs" + +RDEPEND=" + php? ( >=dev-lang/php-5.3[-threads] ) + ruby? ( dev-lang/ruby ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + php? ( dev-lang/swig ) + python? ( dev-lang/swig ${PYTHON_DEPS} ) + ruby? ( dev-lang/swig ) +" + +src_prepare() { + epatch "${FILESDIR}"/3.4.2-solaris-isnan.patch \ + "${FILESDIR}"/3.4.2-ruby_so_name.patch + eautoreconf + echo "#!${EPREFIX}/bin/bash" > py-compile +} + +src_configure() { + econf \ + $(use_enable python) \ + $(use_enable ruby) \ + $(use_enable php) \ + $(use_enable static-libs static) +} + +src_compile() { + emake + + use doc && emake -C "${S}/doc" doxygen-html +} + +src_install() { + emake DESTDIR="${D}" install + + use doc && dohtml -r doc/doxygen_docs/html/* + use python && python_optimize "${D}$(python_get_sitedir)"/geos/ + + find "${ED}" -name '*.la' -exec rm -f {} + +} diff --git a/sci-libs/geos/metadata.xml b/sci-libs/geos/metadata.xml new file mode 100644 index 000000000000..c39dbd31f58e --- /dev/null +++ b/sci-libs/geos/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-geosciences</herd> + <herd>postgresql</herd> + <longdescription lang="en"> + Geometric Engine Open Source provides a spatial object model and + fundamental geometric functions. It implements the geometry model + defined in the OpenGIS Consortium Simple Features Specification for + SQL. Functions provided include: spatial predicates (based on the + DE-9IM model), overlay functions (intersection, difference, union, + symmetric difference), buffer, convex hull, area and distance + functions, and topological validity checking. + </longdescription> +</pkgmetadata> |