diff options
author | Steve Arnold <nerdboy@gentoo.org> | 2006-07-04 17:00:09 +0000 |
---|---|---|
committer | Steve Arnold <nerdboy@gentoo.org> | 2006-07-04 17:00:09 +0000 |
commit | 64b305df24a2fffee6e8785fcd1c0920c504599e (patch) | |
tree | b1d26d4685b81b5142b0cbad4a3e670e2d7771b4 | |
parent | net-proxy/ziproxy:xinetd (diff) | |
download | historical-64b305df24a2fffee6e8785fcd1c0920c504599e.tar.gz historical-64b305df24a2fffee6e8785fcd1c0920c504599e.tar.bz2 historical-64b305df24a2fffee6e8785fcd1c0920c504599e.zip |
updated for ruby support and cleaned up old version
Package-Manager: portage-2.1.1_pre2-r2
-rw-r--r-- | sci-libs/geos/ChangeLog | 12 | ||||
-rw-r--r-- | sci-libs/geos/files/digest-geos-2.2.2-r1 | 3 | ||||
-rw-r--r-- | sci-libs/geos/geos-2.2.2-r1.ebuild | 128 |
3 files changed, 141 insertions, 2 deletions
diff --git a/sci-libs/geos/ChangeLog b/sci-libs/geos/ChangeLog index c3b43f00103e..309fa9e62bfb 100644 --- a/sci-libs/geos/ChangeLog +++ b/sci-libs/geos/ChangeLog @@ -1,9 +1,17 @@ # ChangeLog for sci-libs/geos # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/ChangeLog,v 1.15 2006/07/04 00:40:09 nerdboy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/ChangeLog,v 1.16 2006/07/04 17:00:09 nerdboy Exp $ + +*geos-2.2.2-r1 (04 Jul 2006) + + 04 Jul 2006; Steve Arnold <nerdboy@gentoo.org> +geos-2.2.2-r1.ebuild: + Updated for ruby support (such as it is) and cleaned up old version. Note + the tests are not complete (only the basic framework is there). Needs more + testing by a ruby-ish person (including the tests :) The ruby eclass also + needs more helper functions... 04 Jul 2006; Steve Arnold <nerdboy@gentoo.org> geos-2.2.2.ebuild: - dodoc ordering got messed up (wrong working directory) + The dodoc ordering got messed up (wrong working directory). 03 Jul 2006; Steve Arnold <nerdboy@gentoo.org> +files/geos-2.2.2-swig.patch, +files/python.i, geos-2.2.2.ebuild: diff --git a/sci-libs/geos/files/digest-geos-2.2.2-r1 b/sci-libs/geos/files/digest-geos-2.2.2-r1 new file mode 100644 index 000000000000..ae660fc73ca9 --- /dev/null +++ b/sci-libs/geos/files/digest-geos-2.2.2-r1 @@ -0,0 +1,3 @@ +MD5 daf1f2d863103cc08b17747590af2cef geos-2.2.2.tar.bz2 554476 +RMD160 52ccecf31aacd7d7fe1522ad7a608e2580525c17 geos-2.2.2.tar.bz2 554476 +SHA256 17a4cde96b159261cab40f25ee0215676ff98b48fd28a32e0663a07c4af0e69a geos-2.2.2.tar.bz2 554476 diff --git a/sci-libs/geos/geos-2.2.2-r1.ebuild b/sci-libs/geos/geos-2.2.2-r1.ebuild new file mode 100644 index 000000000000..21e96eb2e194 --- /dev/null +++ b/sci-libs/geos/geos-2.2.2-r1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/geos/geos-2.2.2-r1.ebuild,v 1.1 2006/07/04 17:00:09 nerdboy Exp $ + +inherit eutils distutils autotools kde-functions ruby toolchain-funcs + +DESCRIPTION="Geometry Engine - Open Source" +HOMEPAGE="http://geos.refractions.net" +SRC_URI="http://geos.refractions.net/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="static doc python ruby" +USE_RUBY="ruby18" + +RDEPEND="virtual/libc" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + python? ( dev-lang/python + >=dev-lang/swig-1.3.29 ) + ruby? ( virtual/ruby + >=dev-lang/swig-1.3.29 )" + +src_unpack() { + unpack ${A} + cd ${S} + need-autoconf 2.5 + elibtoolize + epatch ${FILESDIR}/${P}-swig.patch + +} + +src_compile() { + cd ${S} + local myconf + myconf="" + if use static; then + myconf="$(use_enable static)" + elif use python || use ruby; then + myconf="--with-pic" + else + myconf="--with-pic --disable-static" + fi + + econf ${myconf} || die "Error: econf failed" + + # intermittent build failures with emake + make || die "Error: make failed" + + if use python; then + einfo "Compilling PyGEOS" + cd ${S}/swig/python + cp ${FILESDIR}/python.i ${S}/swig/python/ + rm -f geos_wrap.cxx + swig -c++ -python -modern -o geos_wrap.cxx ../geos.i + distutils_src_compile + fi + if use ruby; then + einfo "Compilling Ruby bindings" + cd ${S}/swig/ruby + swig -c++ -ruby -autorename -o geos_wrap.cxx ../geos.i + local CXX=$(tc-getCXX) + local RUBY_ARCHDIR="$(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')" + ${CXX} ${CXXFLAGS} -I../../source/headers -I${RUBY_ARCHDIR} \ + -fPIC -c geos_wrap.cxx + ${CXX} ${CXXFLAGS} -shared -L${S}/source/geom/.libs -lgeos \ + -lruby geos_wrap.o -o geos.so + fi +} + +src_test() { + cd ${S} + make check || die "Tring make check without success." + # I think this test must be made after the PyGEOS installation + #export PYTHONPATH=${S}/swig/python + if use python; then + cd ${S}/swig/python + python tests/runtests.py -v + fi +} + +src_install(){ + make install DESTDIR=${D} || die "make install failed" + + if use python; then + einfo "Installing PyGEOS" + cd ${S}/swig/python + distutils_src_install + insinto /usr/share/doc/${PF}/python + doins README.txt tests/*.py + insinto /usr/share/doc/${PF}/python/cases + doins tests/cases/* + fi + if use ruby; then + local RUBY_SITEARCHDIR="$(ruby -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')" + einfo "Installing Ruby bindings in ${RUBY_SITEARCHDIR}/${PN}" + cd ${S}/swig/ruby + insinto ${RUBY_SITEARCHDIR}/${PN} + doins geos.so + insinto /usr/share/doc/${PF}/ruby + doins README.txt test/*.rb + if use doc; then + erubydoc + fi + fi + if use doc; then + cd ${S}/doc + make doxygen-html + dohtml -r doxygen_docs/html/* + fi + cd ${S} + dodoc AUTHORS COPYING INSTALL NEWS README TODO +} + +pkg_postinst() { + if use python; then + python_version + python_mod_optimize ${ROOT}usr/bin + fi +} + +pkg_postrm() { + if use python; then + python_version + python_mod_cleanup + fi +} |