diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2006-09-30 21:25:15 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2006-09-30 21:25:15 +0000 |
commit | 60d28d43854a2ff8982dd4416f45a27dc3139f34 (patch) | |
tree | 4bae63f3b45aa91f507ff4800eed9d6b5a349d9a | |
parent | version bump closing security bug #149602 thanks to Janne Pikkarainen (diff) | |
download | gentoo-2-60d28d43854a2ff8982dd4416f45a27dc3139f34.tar.gz gentoo-2-60d28d43854a2ff8982dd4416f45a27dc3139f34.tar.bz2 gentoo-2-60d28d43854a2ff8982dd4416f45a27dc3139f34.zip |
Version bump.
(Portage version: 2.1.2_pre2)
-rw-r--r-- | dev-db/postgis/ChangeLog | 5 | ||||
-rw-r--r-- | dev-db/postgis/files/digest-postgis-1.1.4 | 3 | ||||
-rw-r--r-- | dev-db/postgis/postgis-1.1.4.ebuild | 99 |
3 files changed, 106 insertions, 1 deletions
diff --git a/dev-db/postgis/ChangeLog b/dev-db/postgis/ChangeLog index 090da7be8974..f57b5b05bd4d 100644 --- a/dev-db/postgis/ChangeLog +++ b/dev-db/postgis/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-db/postgis # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/ChangeLog,v 1.22 2006/08/01 00:14:18 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/ChangeLog,v 1.23 2006/09/30 21:25:15 dev-zero Exp $ + + 30 Sep 2006; Tiziano Müller <dev-zero@gentoo.org> ChangeLog: + Version bump. 01 Aug 2006; Luca Longinotti <chtekk@gentoo.org> metadata.xml, postgis-0.7.5-r2.ebuild, -postgis-1.0.0_p20050512.ebuild, diff --git a/dev-db/postgis/files/digest-postgis-1.1.4 b/dev-db/postgis/files/digest-postgis-1.1.4 new file mode 100644 index 000000000000..36ba91147cc8 --- /dev/null +++ b/dev-db/postgis/files/digest-postgis-1.1.4 @@ -0,0 +1,3 @@ +MD5 a550dfbe2e20223ed530cd0faf747967 postgis-1.1.4.tar.gz 1853989 +RMD160 8441aba816154ebe743a93334df9df43a15fa87e postgis-1.1.4.tar.gz 1853989 +SHA256 8f7c74c34431120364d623d0d7ef2556ae6c9bb153b9621eb93ebf56a5396018 postgis-1.1.4.tar.gz 1853989 diff --git a/dev-db/postgis/postgis-1.1.4.ebuild b/dev-db/postgis/postgis-1.1.4.ebuild new file mode 100644 index 000000000000..ce3c544e596c --- /dev/null +++ b/dev-db/postgis/postgis-1.1.4.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-1.1.4.ebuild,v 1.1 2006/09/30 21:25:15 dev-zero Exp $ + +inherit autotools eutils + +KEYWORDS="~x86 ~ppc ~amd64" + +DESCRIPTION="Geographic Objects for PostgreSQL" +HOMEPAGE="http://postgis.refractions.net" +SRC_URI="http://www.postgis.org/download/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +IUSE="geos proj" + +DEPEND=">=dev-db/postgresql-7.4 + app-text/docbook-xsl-stylesheets + geos? ( sci-libs/geos ) + proj? ( sci-libs/proj ) + sys-devel/autoconf" +RDEPEND=">=dev-db/postgresql-7.4 + geos? ( sci-libs/geos ) + proj? ( sci-libs/proj )" + +RESTRICT="test" + +pkg_setup(){ + tmp="$(portageq match / ${CATEGORY}/${PN})" + if [ "${tmp}" != "${CATEGORY}/${PF}" ]; then + ewarn "Don't forget to dump your databases with -Fc options before" + ewarn "upgrading postgis." + ewarn "(see http://postgis.refractions.net/docs/ch02.html#upgrading)" + ebeep 4 + fi +} + +src_unpack(){ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-1.1.1_doc.patch" + + local xslv + xslv="$(ls /usr/share/sgml/docbook/ | grep xsl\-)" + einfo "doc will be build with template :" + einfo "${xslv}" + sed "s:xsl-stylesheets:${xslv}:" -i configure.in || die "xsl-stylesheets pb" + + eautoconf +} + +src_compile(){ + cd "${S}" + + econf \ + --enable-autoconf \ + --datadir=/usr/share/postgresql/contrib/ \ + --libdir=/usr/$(get_libdir)/postgresql/ \ + --with-docdir=/usr/share/doc/${PF}/html/ \ + $(use_with geos) \ + $(use_with proj)\ + || die "Error: econf failed" + + emake || die "Error: emake failed" + + emake docs || die "Unable to build documentation" + cd topology/ + emake || die "Unable to build topology sql file" +} + +src_install(){ + cd "${S}" + dodir /usr/$(get_libdir)/postgresql /usr/share/postgresql/contrib/ + emake DESTDIR="${D}" install || die "emake install failed" + cd "${S}/topology/" + emake DESTDIR="${D}" install || die "emake install topology failed" + + cd "${S}" + dodoc CHANGES CREDITS README.postgis TODO loader/README.* \ + doc/*txt + + docinto topology + dodoc topology/{TODO,README} + + cd "${S}" + emake DESTDIR="${D}" docs-install || die "emake install docs failed" + + dobin ./utils/postgis_restore.pl +} + +pkg_postinst() { + einfo "To create your first postgis database use the following commands :" + einfo " # su postgres" + einfo " # createdb test" + einfo " # createlang plpgsql test" + einfo " # psql -d test -f /usr/share/postgresql/contrib/lwpostgis.sql" + einfo " # psql -d test -f /usr/share/postgresql/contrib/spatial_ref_sys.sql" + einfo "For more informations see : http://www.postgis.org/documentation.php" + einfo "(For french user only see http://postgis.fr)" +} |