This version has postgresql 9 compatibility, which also should "fix" bug 325077.
Created attachment 236285 [details] postgis-1.5.1.ebuild Ebuild for postgis. Basically 1.5.0 with some changes: - added test suite, yay! (at least the tests based on cunit) - revised dependency against imagemagick for docs - added dependency against cunit for tests
The nowadays unused use-flags in metadata.xml can also be removed.
more fixes required: dropdb -q createdb -q -q not available for this tools in portgresql-9
Created attachment 238669 [details] postgis-1.5.1 build log proposed ebuild and portage's, just renamed - both emerge fails for me with such build.log
From what I can tell, only 'psql' has the --quiet option. The line: source "${ROOT}"etc/conf.d/postgresql Won't actually work. You need a slot version after it. You'll also need to know which slot is active. Here's what I would do: local SLOT=$(eselect postgresql show) source "${ROOT}"etc/conf.d/postgresql-${SLOT}
Created attachment 238693 [details] postgis-1.5.1 build log (In reply to comment #5) > The line: > source "${ROOT}"etc/conf.d/postgresql > Won't actually work. You need a slot version after it. You'll also need to know > which slot is active. Here's what I would do: > local SLOT=$(eselect postgresql show) > source "${ROOT}"etc/conf.d/postgresql-${SLOT} better now, but some other issues still present, new build log attached
Created attachment 238719 [details] postgis-1.5.1-r1.ebuild I've tweaked a few things. Made slotting a bit more pervasive. Also added a check to ensure the server is running before going on with the pkg_config. Also changed the commands to support ports as a machine may have multiple instances of PostgreSQL running. It assumes that what is set by eselect is the slot to shoot for. The ebuild should probably take that into account before it is released into the wild. But for now, here ya go.
Created attachment 248887 [details, diff] postgis-1.5.1.ebuild.patch
Comment on attachment 248887 [details, diff] postgis-1.5.1.ebuild.patch A small patch to fix errors coused by wrong path settings.
Lets take another stab at this, with 1.5.2?
01 May 2011; Aaron W. Swenson <titanofold@gentoo.org> +postgis-1.5.2-r1.ebuild, +files/postgis_dbs, metadata.xml: Fixes bug 273960, 285082, 296172, 314243, 325113 and 339312