version bump
authorMasatomo Nakano <nakano@gentoo.org>
Sat, 27 Aug 2005 22:28:27 +0000 (22:28 +0000)
committerMasatomo Nakano <nakano@gentoo.org>
Sat, 27 Aug 2005 22:28:27 +0000 (22:28 +0000)
Package-Manager: portage-2.0.51.22-r2

dev-db/postgis/ChangeLog
dev-db/postgis/Manifest
dev-db/postgis/files/digest-postgis-1.0.1_p20050805 [new file with mode: 0644]
dev-db/postgis/postgis-1.0.1_p20050805.ebuild [new file with mode: 0644]

index c5252ac2cf23fd8e3aa73c9cb5500d96f49b913a..085a4dc54401f969af08006b85d3d1fcc6ea7f0a 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-db/postgis
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/ChangeLog,v 1.18 2005/05/24 21:18:52 nakano Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/ChangeLog,v 1.19 2005/08/27 22:28:27 nakano Exp $
+
+*postgis-1.0.1_p20050805 (27 Aug 2005)
+
+  27 Aug 2005; Masatomo Nakano <nakano@gentoo.org>
+  +postgis-1.0.1_p20050805.ebuild:
+  Version bump.
 
 *postgis-1.0.0_p20050512 (14 May 2005)
 
index 40b27d0814484f5b3a6bbeae327624b60a3633ed..d6ded47d9bedd8df81a87c97f8a3bdda139764cf 100644 (file)
@@ -1,6 +1,8 @@
 MD5 8557793e4877948f4c89f36a7d74db81 postgis-0.7.5-r2.ebuild 1822
 MD5 20a835ca6a852facf4d893e6c3abca73 postgis-1.0.0_p20050512.ebuild 2402
-MD5 3726500f31962086d8bf5e5491006227 ChangeLog 1950
+MD5 35b92db4842efab19cdb0aefd29061fb postgis-1.0.1_p20050805.ebuild 2606
+MD5 14bf62145982fe2ad7a09d1d1675362f ChangeLog 2093
 MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
 MD5 e02da1081e84b4266aff297f0e422688 files/digest-postgis-0.7.5-r2 135
+MD5 166d20a82877d518f78081c596450b49 files/digest-postgis-1.0.1_p20050805 80
 MD5 45fbdc11a7887af6cbdb23256ede1cbf files/digest-postgis-1.0.0_p20050512 76
diff --git a/dev-db/postgis/files/digest-postgis-1.0.1_p20050805 b/dev-db/postgis/files/digest-postgis-1.0.1_p20050805
new file mode 100644 (file)
index 0000000..a64008e
--- /dev/null
@@ -0,0 +1 @@
+MD5 af1ad54f2e9eea188e888a6e32ace504 postgis-cvs-1.0.1_p20050805.tar.gz 1447942
diff --git a/dev-db/postgis/postgis-1.0.1_p20050805.ebuild b/dev-db/postgis/postgis-1.0.1_p20050805.ebuild
new file mode 100644 (file)
index 0000000..c550e2c
--- /dev/null
@@ -0,0 +1,90 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-1.0.1_p20050805.ebuild,v 1.1 2005/08/27 22:28:27 nakano Exp $
+
+DESCRIPTION="Geographic Objects for PostgreSQL"
+HOMEPAGE="http://postgis.refractions.net"
+SRC_URI="http://gentoo.01map.net/distfiles/${PN}-cvs-${PV}.tar.gz"
+
+S="${WORKDIR}/${PN}-cvs"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="doc geos proj"
+
+DEPEND=">=dev-db/postgresql-8.0.0 \
+       geos? (sci-libs/geos) \
+       proj? (sci-libs/proj) \
+       doc? (app-text/docbook-xsl-stylesheets) \
+       sys-devel/autoconf "
+RDEPEND=">=dev-db/postgresql-8.0.0 \
+       geos? (sci-libs/geos) \
+       proj? (sci-libs/proj)"
+
+src_compile(){
+       local myconf
+
+       use ppc && CFLAGS="-pipe -fsigned-char"
+
+       myconf="${myconf} --enable-autoconf --with-maxbackends=1024"
+
+       cd ${S}
+       if use doc; then
+               local xslv="$(portageq match / app-text/docbook-xsl-stylesheets |\
+                       cut -d'/' -f2 | sed s/"docbook-"//)"
+               einfo "Building doc with ${xslv}"
+               if [ ! -z "$(echo ${xslv} | grep '\-r')" ]; then
+                       xslv="$(echo ${xslv} | cut -d'-' -f1 )-$(echo ${xslv} | cut -d'-' -f2 )-$(echo ${xslv} | cut -d'-' -f3)"
+               fi
+               sed s/"xsl-stylesheets"/"${xslv}"/ -i configure.in
+       fi
+
+       autoconf
+
+       if use geos; then
+               myconf="${myconf} $(use_with geos)=$(which geos-config)"
+       fi
+       if use proj; then
+           myconf="${myconf} $(use_with proj)=/usr"
+       fi
+       if use doc; then
+               einfo "doc will be build"
+               myconf="${myconf} --with-docdir=${D}/usr/share/doc/${PF}/html/"
+       else
+               einfo "doc will not be build"
+       fi
+
+       econf ${myconf} --mandir=${D}/usr/share/man \
+               || die "Error: econf failed"
+
+       emake || die "Error: emake failed"
+
+       if use doc; then
+               make docs
+       fi
+}
+
+src_install(){
+       into /usr
+       cd ${S}
+       dodir /usr/libexec /usr/share/postgresql /usr/share/postgresql/contrib/
+       einstall || die "Error: einstall failed"
+       mv ${D}/usr/share/*.sql ${D}/usr/share/postgresql/contrib/
+       dodoc CHANGES COPYING CREDITS README.postgis TODO
+       if use doc; then
+               cd ${S}
+               make docs-install
+               rm ${D}/usr/share/doc/${PF}/html/postgis/README.postgis
+       fi
+}
+
+pkg_postinst() {
+       einfo "To create your first postgis database do the followings commands :"
+       einfo " # su postgres"
+       einfo " # createdb -E SQL_ASCII poolp"
+       einfo " # createlang plpgsql poolp"
+       einfo " # psql -d poolp -f /usr/share/postgresql/contrib/lwpostgis.sql"
+       einfo " # psql -d poolp -f /usr/share/postgresql/contrib/spatial_ref_sys.sql"
+       einfo "For more informations go to : http://postgis.refractions.net/documentation.php"
+       einfo "(For french user only see http://techer.pascal.free.fr/postgis)"
+}