diff options
author | Patrick Lauer <patrick@gentoo.org> | 2015-07-08 08:33:23 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2015-07-08 08:33:23 +0000 |
commit | 51dd6ed7cc6240df8cae457bafd83535f6758481 (patch) | |
tree | ea6f0dbb679af8869c38f83ffeb1b88d4fb9421e /dev-db/postgis | |
parent | Bump #552544 (diff) | |
download | historical-51dd6ed7cc6240df8cae457bafd83535f6758481.tar.gz historical-51dd6ed7cc6240df8cae457bafd83535f6758481.tar.bz2 historical-51dd6ed7cc6240df8cae457bafd83535f6758481.zip |
Bump
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Diffstat (limited to 'dev-db/postgis')
-rw-r--r-- | dev-db/postgis/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/postgis/Manifest | 4 | ||||
-rw-r--r-- | dev-db/postgis/postgis-2.1.8.ebuild | 287 |
3 files changed, 296 insertions, 2 deletions
diff --git a/dev-db/postgis/ChangeLog b/dev-db/postgis/ChangeLog index 54b758f5013e..e654f5e2d040 100644 --- a/dev-db/postgis/ChangeLog +++ b/dev-db/postgis/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/postgis # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/ChangeLog,v 1.106 2015/07/08 08:09:22 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/ChangeLog,v 1.107 2015/07/08 08:33:14 patrick Exp $ + +*postgis-2.1.8 (08 Jul 2015) + + 08 Jul 2015; Patrick Lauer <patrick@gentoo.org> +postgis-2.1.8.ebuild: + Bump 08 Jul 2015; Patrick Lauer <patrick@gentoo.org> postgis-9999.ebuild: No keywords for live ebuild diff --git a/dev-db/postgis/Manifest b/dev-db/postgis/Manifest index 9b50b77ada40..0da81ea3639f 100644 --- a/dev-db/postgis/Manifest +++ b/dev-db/postgis/Manifest @@ -15,6 +15,7 @@ DIST postgis-2.1.4.tar.gz 6854492 SHA256 cd73c2a38428c8736f6cae73b955aee0bd42f9c DIST postgis-2.1.5.tar.gz 6827999 SHA256 0d0e27f72f12b8dba456fbde25ed0f6913f42baf57332a7f1b9bbc6f29fddbf4 SHA512 c1d186b237114c951feb78e97dc7d69896dcb0884c02e49d93e8602590e82d34a808eb12c127c7dc78db3237ac619709f8bd7febb4670909b03615f8278aede2 WHIRLPOOL c203aa2034e899647139445ce0b1e6e7637a0e2ad3c1f6d4ee1f303d9734b219b68d18fb6d6e7da6c9df53f90e8dfd30ce8d4ab8a6c942b96db7e8b55d632417 DIST postgis-2.1.6.tar.gz 6803831 SHA256 6ffdf655bc4fca2b5495dd96f44b266e84111912d5c3f91b832023c4fec5c222 SHA512 a6c1263d64f2c1828656d5613840d721fb70ecbdfab3e28099c8f6b80d5404d46a9376913c0ab46c7f1109517c04430800b8c3be0c94d964421c6681afb2f997 WHIRLPOOL 98bfcae992f444b63840a28ef90077c01473ea528aa72ae5fd283b4fdcf7b7e37732afeac1a29fc87e330f687ca491d5afbed44b0792fb00763dc682501d37a3 DIST postgis-2.1.7.tar.gz 6804372 SHA256 00ab79a3f609d7ea458f6fc358032ad059cb720baf88285243d6436a597a7ec2 SHA512 021fcb73c2109dafb67cb9d459eb08e0da7e55cf1a5fab81115aad3b0a61809b8f83d7a278aa04e41ecd633164e4257a90d5dfc0e81339b0c322e7d41d3c5eae WHIRLPOOL 938cacf1af4ba8a2f0f3bbefe11c0014a31cd331186cd7fc7fc0a242528094efb617326a484bdad76704bfb98fd065a7f280ab663088440af0555fc69862e36b +DIST postgis-2.1.8.tar.gz 6811272 SHA256 7c2380b895fe7bda34c2e70deab3fcf4c12b13ab40d7501cdaa6fa36f1a6c662 SHA512 e8aeb739a1ecf95b224a3908d2af3aa38933b56c63713af30d14243653745436165b418a3368601a699b744f6fe61ce645c980319eb159395d68166a3815c5f4 WHIRLPOOL b6675fecbb922379bd50c351abe1553fdbda53543fce56451c688e25a3fa2e9d0813d8f3a349b623b85fcb4016fc4710f6746a224ba7673ec0d2106c7635d3d1 EBUILD postgis-2.0.3.ebuild 7184 SHA256 e69433a448a32da4be216062794d5b9966b2809758a2d14f01874113f906b1ac SHA512 d494f1b4b641674c3c77f5f02a3c3683312472760fd8a3e678137ee1e0d953edfc2c333fe15fa1c481eb1776d7300a5edd7178fbb3ad65a68fa9c9553f65d868 WHIRLPOOL 92d81fb840349e2cbed5ed6c2b64f0cdc8df590bbce1ba14254bbc2c8b7629d7a041130d1bc386c59bd1614830a097560b1dfdc25f1cb5e15b8a139b38dc3239 EBUILD postgis-2.0.6.ebuild 7054 SHA256 dacafa7a1cac3b38fdfa2f853f176330b19ff6358f92c4284b7fb2a8b8c00f07 SHA512 b5a3ebb193c7f493bfa227de173c8cd585ac5e9457de76b200c813bda71c34e3bddcbca3edbd0265435427c34de41872bc790829292a11c6c49954f2435cc324 WHIRLPOOL 02e222f511fd9997ae2c3c29bafcea010571f4dbe75051a87b2a66f988930af492e80a46b0945f693c2e4b0024ec5809815fd7803a13f0250d7e41fda5958bdd EBUILD postgis-2.1.0.ebuild 7787 SHA256 548680c7d4094b5ee2df37a438315a56f271be95073a74a81177b9f9c087f9fc SHA512 ee75805aee9acbb01ae361dcbc909a9436ab02308a1b85ed154601f7492b9df221db2f2beef17cb34a7beff499b092b47c6b4c62588c108d019c28e3d1ee0026 WHIRLPOOL cf7c56162e2cf0898b77ba0c38a113f0465ac6d99dc2a3e09b19a0aee2a8e8a22ef1c68d0bafe0cb370407ab8016b2645d92531bd1fc87eb2c9ac35fd469017b @@ -23,6 +24,7 @@ EBUILD postgis-2.1.4.ebuild 7648 SHA256 becade067efe3d16a3b93bbfbbf6f68d0c43238d EBUILD postgis-2.1.5.ebuild 7648 SHA256 2ef18d72a11cc1a009c9c97faf7fe6b44ec17eb46d40a87e0aecf190b27a9f86 SHA512 696374d25e0364f63ed57650411d864da54398abc3d6b1c06adbd144534a374f2f8801d0042dda2edb3026cea51f128b83a6ecd96fb972f520358c5d3f022c26 WHIRLPOOL 362e7dbfd1509cb676033e439c242f6862b30fd56508cffce52daba23313f14682c831526e20a5166fc78fa3154b4b03d4af0f7442b649872858c3361c7fef66 EBUILD postgis-2.1.6.ebuild 7598 SHA256 c346e2a69fac41f0e730ef04ce27e1871e8c24fee50d4adff6980832a672c4ba SHA512 b18ae613b63b906d6dbf502bffb28286cec6ec8c7a47bec10f49aff3ec53435337902b8a40d4cd084563013c39089fa5f63d438af2d983f45dc520f98d5665fb WHIRLPOOL 2e32acd4d5b18412994283ec37fb89899ffd2cc0242bd87422f3b955335c27871d1696d46bb6ae507bd5fd6b5a7ea7c564ae3d75a6efe33fa128b9b5e0ea4ec1 EBUILD postgis-2.1.7.ebuild 7600 SHA256 9105013e6da5910cef39f5eea2050a5a4ba10dd7bf9f0a69e2c36ec5daef2d3c SHA512 9d24ffe854fb2f47d6d9c39c9d40430756f75e7f290448c91f5e3267c2ca1b9303a88b99a2a6282a46f015230b55e74ef29c9d7f6cedd2dfb858bf61f9c112f5 WHIRLPOOL e0b69de8e785d0e730198b628e9a5a3ecda16f2ed52bc1884d99f94bc0109422d27ef18a0fbf380f7846b2f35429d07335a15d4ece42813a2fe832d679967099 +EBUILD postgis-2.1.8.ebuild 7600 SHA256 14c931cde74d1ebb8d0ebc1fe3e715d0415e26207cc5cfcac36cc16670814184 SHA512 a277b16a9965c339ca6f96371f7c7a4781d553a76a6717c9157b90f573468a20eff03ebbc745a618d8f86dc5a9ab0f394d5330a8891e78c430a1364c65f1cf40 WHIRLPOOL df3e6db55c71778cd221bd1a7aba090a5294a0f14736a70fee7c9619674013275cb9c7c98e8975cc4f4bcc4d0f289fa768d87a7d4b72e0ba22cbe14941267c27 EBUILD postgis-9999.ebuild 7608 SHA256 f7f8cbd42308e410ad156749405ddad3e9b4462198c0c23cb12058a8f47f2d25 SHA512 e239244718f33b07e97c4203593026005380a208b0d5abbeddd68254bbd2aab980c0228ddf912d2911f9acfd058e42d7617b7c17a144139357b6db48613aed42 WHIRLPOOL bdcb83e071ae0dfcc5bc9c8595f160a4ec4edf43966de2cef778e7cf380f54909c1132ead40d31170b57f03d5d04526d8bfdd24582c0f48ff34919965ab27d5a -MISC ChangeLog 15310 SHA256 eceb756cf86bdca60ca4f02fa066f6f5f39a193382b38ad5d63244edab12b7d2 SHA512 b38e6666da59e0a45e68cd446262c3e08e30150be22730e3d6965264b2f79319d7de2f275d02f40a400e4a1903b351b780b435f4551402598a60bec41b0b5baf WHIRLPOOL 97555fbded08c5ae5b50e5c5521d23e0739046f13106d5ea787f8eb1f17b401a9261082a3054c4d40d01bb36856e16492f0a5af2947c85d2a02ce676d16ae98e +MISC ChangeLog 15421 SHA256 0f3e682af97970b63f483d38082d202cad0ce391e805f545590a37fc9fc2c3b3 SHA512 71d3a8f9f00ecdb484fead44508a1f15674b546d60533addf7f91c94d028800b098f52b1172ec028b6c85470154a4b364f10c9e1c8e0e6d0d8139d1aac8b9c6a WHIRLPOOL 651c4e132f36162267fe3473136aecfb8f6266a22d2715989697ff8319c933b058fb3a9fdbcefc6abc9451e5b3da72d94c05c51e31dc90bf6a09dd9e166330d6 MISC metadata.xml 293 SHA256 aba886c4c12c0d9948f277e58a17e155a6d3d7c3424f409a4d4789fb613a5cd3 SHA512 74abb5ec4fae7313859af907a10d68462c185f07923fb4a7aeabcfaea949b6e71647dce38fa6fafcda3e24bbb1f4912fbec2405f5b7bfb4ddf012e59d9e31c01 WHIRLPOOL 9627fa5905b0a0758f64d7d269edbd889f26f6e39a03af6aabdf6b2781d23a581b9b4bc97f06589f997dbc4fa15c83fd149bedc9e12c206904e91af42c1eef84 diff --git a/dev-db/postgis/postgis-2.1.8.ebuild b/dev-db/postgis/postgis-2.1.8.ebuild new file mode 100644 index 000000000000..c9af4eb3ed62 --- /dev/null +++ b/dev-db/postgis/postgis-2.1.8.ebuild @@ -0,0 +1,287 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-2.1.8.ebuild,v 1.1 2015/07/08 08:33:14 patrick Exp $ + +EAPI="5" +POSTGRES_COMPAT=( 9.{0,1,2,3,4,5} ) + +inherit autotools eutils versionator + +MY_PV=$(replace_version_separator 3 '') +MY_P="${PN}-${MY_PV}" +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Geographic Objects for PostgreSQL" +HOMEPAGE="http://postgis.net" +SRC_URI="http://download.osgeo.org/postgis/source/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc gtk static-libs test" + +RDEPEND=" + || ( + dev-db/postgresql:9.4[server] + dev-db/postgresql:9.3[server] + dev-db/postgresql:9.2[server] + dev-db/postgresql:9.1[server] + dev-db/postgresql:9.0[server] + ) + dev-libs/json-c + dev-libs/libxml2:2 + >=sci-libs/geos-3.4.2 + >=sci-libs/proj-4.6.0 + >=sci-libs/gdal-1.10.0 + gtk? ( x11-libs/gtk+:2 ) +" + +DEPEND="${RDEPEND} + doc? ( + app-text/docbook-xsl-stylesheets + app-text/docbook-xml-dtd:4.5 + dev-libs/libxslt + || ( + media-gfx/imagemagick[png] + media-gfx/graphicsmagick[imagemagick,png] + ) + ) + virtual/pkgconfig + test? ( dev-util/cunit ) +" + +PGIS="$(get_version_component_range 1-2)" + +REQUIRED_USE="test? ( doc )" + +# Needs a running psql instance, doesn't work out of the box +RESTRICT="test" + +MAKEOPTS+=' -j1' + +# These modules are built using the same *FLAGS that were used to build +# dev-db/postgresql. The right thing to do is to ignore the current +# *FLAGS settings. +QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so" + +postgres_check_slot() { + if ! declare -p POSTGRES_COMPAT &>/dev/null; then + die 'POSTGRES_COMPAT not declared.' + fi + +# Don't die because we can't run postgresql-config during pretend. +[[ "$EBUILD_PHASE" = "pretend" \ + && -z "$(which postgresql-config 2> /dev/null)" ]] && return 0 + + local res=$(echo ${POSTGRES_COMPAT[@]} \ + | grep -c $(postgresql-config show 2> /dev/null) 2> /dev/null) + + if [[ "$res" -eq "0" ]] ; then + eerror "PostgreSQL slot must be set to one of: " + eerror " ${POSTGRES_COMPAT[@]}" + return 1 + fi + + return 0 +} + +pkg_setup() { + postgres_check_slot || die + export PGSLOT="$(postgresql-config show)" +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-2.1-ldflags.patch" \ + "${FILESDIR}/${PN}-2.0-arflags.patch" \ + "${FILESDIR}/${PN}-2.1.4-pkgconfig-json.patch" + + local AT_M4DIR="macros" + eautoreconf +} + +src_configure() { + local myargs="" + use gtk && myargs+=" --with-gui" + econf \ + --with-pgconfig="/usr/lib/postgresql-${PGSLOT}/bin/pg_config" \ + ${myargs} +} + +src_compile() { + emake + emake -C topology + + if use doc ; then + emake comments + emake cheatsheets + emake -C doc html + fi +} + +src_install() { + emake DESTDIR="${D}" install + use doc && emake DESTDIR="${D}" comments-install + emake -C topology DESTDIR="${D}" install + dobin ./utils/postgis_restore.pl + + dodoc CREDITS TODO loader/README.* doc/*txt + + use doc && dohtml -r doc/html/* + + docinto topology + dodoc topology/{TODO,README} + + insinto /etc + doins "${FILESDIR}/postgis_dbs" + + use static-libs || find "${ED}" -name '*.a' -delete +} + +pkg_postinst() { + postgresql-config update + + elog "To finish installing or updating PostGIS edit:" + elog " ${EROOT%/}/etc/postgis_dbs" + elog + elog "Then, run:" + elog " emerge --config =${CATEGORY}/${PF}" +} + +pkg_config(){ + source "${EROOT%/}/etc/conf.d/postgresql-${PGSLOT}" + source "${EROOT%/}/etc/postgis_dbs" + local postgis_path="${EROOT%/}/usr/share/postgresql-${PGSLOT}/contrib/postgis-${PGIS}" + + if [[ -n ${configured} ]] ; then + einfon "Password for PostgreSQL user '${pguser}': " + read -s PGPASSWORD + export PGPASSWORD + echo + else + eerror "You must edit:" + eerror " ${EROOT%/}/etc/postgis_dbs" + eerror "Before running 'emerge --config =${CATEGORY}/${PF}'" + eerror + die "Edit postgis_dbs" + fi + + # The server we work with must be the same slot we built against. + local server_match + server_match=$(psql -U ${pguser} -d postgres -p ${PGPORT} \ + -Aqwtc 'SELECT version()' 2> /dev/null | grep -c "PostgreSQL ${PGSLOT}") + if [[ $? = 0 ]] ; then + if [[ $server_match -ne 1 ]] ; then + unset PGPASSWORD + eerror "Server version must be ${PGSLOT}.x" + die "Server version isn't ${PGSLOT}.x" + fi + else + unset PGPASSWORD + eerror "Is the server running?" + die "Couldn't connect to server." + fi + + local retval + safe_exit() { + unset PGPASSWORD + sed -e 's/\(configured\)/#\1/' -i "${EROOT%/}/etc/postgis_dbs" + eend $retval + eerror "All actions could not be performed." + eerror "Read above to see what failed." + eerror "Once you fix the issue, you'll need to edit:" + eerror " ${EROOT%/}/etc/postgis_dbs" + eerror "As some things may have succeeded." + eerror + die "All actions could not be performed" + } + + local db + for db in ${databases[@]} ; do + ebegin "Performing CREATE LANGUAGE on ${db}" + createlang -U ${pguser} -p ${PGPORT} plpgsql ${db} + retval=$? + # In this case, only error code 1 is fatal + [[ $retval == 1 ]] && safe_exit || eend 0 + + ebegin "Enabling PostGIS on ${db}" + psql -q -U ${pguser} -p ${PGPORT} -d ${db} \ + -f "${postgis_path}/postgis.sql" + retval=$? + [[ $retval == 0 ]] && eend 0 || safe_exit + done + + for db in ${templates[@]} ; do + ebegin "Creating template database '${db}'" + createdb -p ${PGPORT} -U ${pguser} -O ${pguser} -T ${from_template} \ + ${db} "PostGIS Template" + retval=$? + [[ $retval != 0 ]] && safe_exit + + psql -q -U ${pguser} -p ${PGPORT} -c \ + "UPDATE pg_database \ + SET datistemplate = TRUE, datallowconn = TRUE \ + WHERE datname = '${db}'" + retval=$? + [[ $retval != 0 ]] && safe_exit + + createlang -U ${pguser} -p ${PGPORT} plpgsql ${db} + retval=$? + # In this case, only error code 1 is fatal + [[ $retval == 1 ]] && safe_exit + + psql -q -U ${pguser} -p ${PGPORT} -d ${db} \ + -f "${postgis_path}/postgis.sql" + retval=$? + [[ $retval == 0 ]] && eend 0 || safe_exit + done + + for db in ${epsg_databases[@]} ; do + ebegin "Adding EPSG to ${db}" + psql -q -U ${pguser} -p ${PGPORT} -d ${db} \ + -f "${postgis_path}/spatial_ref_sys.sql" + retval=$? + [[ $retval == 0 ]] && eend 0 || safe_exit + done + + for db in ${comment_databases[@]} ; do + ebegin "Adding comments on ${db}" + local comment_file + for comment_file in "${postgis_path}"/*_comments.sql ; do + psql -q -U ${pguser} -p ${PGPORT} -d ${db} -f "${comment_file}" + retval=$? + [[ $retval == 0 ]] && continue || safe_exit + done + eend 0 + done + + for db in ${upgrade_from_1_3[@]} ; do + ebegin "Upgrading from PostGIS 1.3 to ${PGIS} on ${db}" + psql -q -U ${pguser} -p ${PGPORT} -d ${db} \ + -f "${postgis_path}/postgis_upgrade_13_to_${PGIS//.}.sql" + retval=$? + [[ $retval == 0 ]] && eend 0 || safe_exit + done + + for db in ${upgrade_from_1_4[@]} ; do + ebegin "Upgrading from PostGIS 1.4 to ${PGIS} on ${db}" + psql -q -U ${pguser} -p ${PGPORT} -d ${db} \ + -f "${postgis_path}/postgis_upgrade_14_to_${PGIS//.}.sql" + retval=$? + [[ $retval == 0 ]] && eend 0 || safe_exit + done + + for db in ${upgrade_from_1_5[@]} ; do + ebegin "Minor upgrade for PostGIS ${PGIS} on ${db}" + psql -q -U ${pguser} -p ${PGPORT} -d ${db} \ + -f "${postgis_path}/postgis_upgrade_${PGIS//.}_minor.sql" + retval=$? + [[ $retval == 0 ]] && eend 0 || safe_exit + done + + # Clean up and make it so the user has to edit postgis_dbs again that + # way this script won't step on any toes due to user error. + unset PGPASSWORD + sed -e 's/\(configured\)/#\1/' -i "${EROOT%/}/etc/postgis_dbs" + einfo "PostgreSQL ${PGSLOT} is now PostGIS enabled." + einfo + einfo "Currently, only one PostgreSQL slot at a time can be PostGIS enabled." +} |