parent
b8ec799b09
commit
60a6c43407
@ -1,3 +1,4 @@
|
||||
DIST gedit-plugins-2.32.0.tar.bz2 616927 SHA256 2ef7bf48e9500556d84ae4c2950f4eadcc3f9cb9c58c90f2c83956b0ddad1107 SHA512 c00535a8a166752ef764319eb79fd7dd5a55df495bf0f3de32e287214f5da8ddd32a52c5538d5e8714843e7e724d24aab9f6fca0f1f339fe299a1ffdf264761b WHIRLPOOL d7385fe3682efaeaa5fbc57a8e8fb68480983140daf78643392b6a7b335a2a5e8ce21cc8f04136efcfac6133dd1c1cd65c50eab0b0cbde766eebb850889796eb
|
||||
DIST gedit-plugins-3.6.1.tar.xz 1402568 SHA256 c5e92830e6029110bf1117bd9f31b23a9ad907210b8cb37039772f5bfcf6d174 SHA512 71bdcbe427125be1a3b73086c5d1e2c9f51e9fab6e66c6142578cbf2e30f4b2de3264e1301f6232dbc2fee84202ab1d449b1fff6e13c1a7477e23a9418f10b49 WHIRLPOOL 11e860e567f13ace41a09de0585b0e5248589f09ae22d7cd0d8b84d1381617d45c40b865050e9f4d89a243b59624c45bbd493062d6c7fea539a7ee086d72491a
|
||||
DIST gedit-plugins-3.8.0.tar.xz 722464 SHA256 44e8d61ae634898bf3a86be8b6b2fd4f998f85dcf6cb92ec80a508ca245ce6b5 SHA512 72991f5969b26cf44c185f231b2a173c9e436acd7e6d1bdbcb4dbd454def085e1a1b4437ddf4f58549a08dfe816c1bde4054a2c14e8552f7af06a40fd2e2c4d8 WHIRLPOOL 2d507e255a588c8a08a248c84670d88c2f5294961da3e8bca77eec2b6a7c68e8d97fe2148cdfeb27f21d70c8571bdbcbab3fcfb07078563243257d9b5004de84
|
||||
DIST gedit-plugins-3.8.1.tar.xz 724572 SHA256 659d379f9edfbba2db37522991c734c5d50e03eb1f70985e978d93a718273141 SHA512 2f8e0bb811d8d15bcdf7dac1c2079fd66147768031f0f4d35861a296ced23ac7458aaec6f33ec7f8faa77db19a46df1a23710016a8250a36435e6126165b6e87 WHIRLPOOL fdbabdddde257138a8958bca5182860c6ce0f55f8170bba79a69df200b100006b58f2780acf70eb66f03b80a7ea8db934d205d9bb04806de2b409f6253442d80
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit-plugins/gedit-plugins-3.8.1.ebuild,v 1.1 2013/04/28 14:41:11 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes" # plugins are dlopened
|
||||
PYTHON_COMPAT=( python3_2 )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit eutils gnome2 multilib python-r1
|
||||
|
||||
DESCRIPTION="Official plugins for gedit"
|
||||
HOMEPAGE="http://live.gnome.org/GeditPlugins"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
IUSE_plugins="charmap terminal"
|
||||
IUSE="+python ${IUSE_plugins}"
|
||||
REQUIRED_USE="charmap? ( python ) terminal? ( python )"
|
||||
|
||||
RDEPEND="
|
||||
>=app-editors/gedit-3.7.1[python?]
|
||||
>=dev-libs/glib-2.32:2
|
||||
>=dev-libs/libpeas-1.7.0[gtk,python?]
|
||||
>=x11-libs/gtk+-3.4:3
|
||||
>=x11-libs/gtksourceview-3:3.0
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
>=app-editors/gedit-3[introspection,${PYTHON_USEDEP}]
|
||||
dev-libs/libpeas[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
>=x11-libs/gtk+-3.4:3[introspection]
|
||||
>=x11-libs/gtksourceview-3:3.0[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
x11-libs/gdk-pixbuf:2[introspection]
|
||||
)
|
||||
charmap? ( >=gnome-extra/gucharmap-3:2.90[introspection] )
|
||||
terminal? ( x11-libs/vte:2.90[introspection] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.40.0
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
# DEFAULT_PLUGINS from configure.ac
|
||||
local myplugins="bookmarks,drawspaces,wordcompletion"
|
||||
|
||||
# python plugins with no extra dependencies beyond what USE=python brings
|
||||
use python && myplugins="${myplugins},bracketcompletion,codecomment,colorpicker,colorschemer,commander,dashboard,joinlines,multiedit,textsize,smartspaces,synctex"
|
||||
|
||||
# python plugins with extra dependencies
|
||||
for plugin in ${IUSE_plugins/+}; do
|
||||
use ${plugin} && myplugins="${myplugins},${plugin}"
|
||||
done
|
||||
|
||||
gnome2_src_configure \
|
||||
--with-plugins=${myplugins} \
|
||||
$(use_enable python)
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST gedit-2.30.4.tar.bz2 4705692 SHA256 a561fe3dd1d199baede1bd07c4ee65f06fc7c494dd4d3327117f04149a608e3c SHA512 31d96a86d4d207fe83aa1c8b8faadd82c2c6eeca019f2df4fdf75a8678233e76edf7a09f32dba6350ab9fc003029cbb585608d864632e1d13c42650d1894b5e1 WHIRLPOOL fe5183f33992d6ec1ce8365321f829828d6c9606b42a6872e323351ac4bee0c488fb5ed06dda8e1aac4a09be3dbad7196e48d9cccf5d0f1c6dd759224051eca6
|
||||
DIST gedit-3.6.2.tar.xz 3060832 SHA256 ad4c6837a7e844e000f7cf2c248e636febdcc9b9b9559cf9e27b99392f5735c3 SHA512 772fc51f19eaf7a8231e8f7d758e8968f096fa234636323d10e3c655116ce96768e13670380b337d346a047b8f3dd2d18fd1ff99d88637ab28d31c5772e667a1 WHIRLPOOL a8ce3752c90f4059845125a96a78660841f4d64fb38d784a21415a5ea349c783efd4e6037b02571aa821bd7a2c48bfac3f2110f519a7bed532f2e2375d86e65f
|
||||
DIST gedit-3.8.0.tar.xz 3085232 SHA256 1438146371cce64da932bb7121d6d0238684632c5bf53f9508d31552931ad1a1 SHA512 1af9783a4af5998dd6e3a3dc0aeb2b4092947cb08f3c98f6230adabfd9fab56d6197c2dc8a2ea4c2a3687e2ab53410a060a74fa2b18de8c6fe068a096ee25cb2 WHIRLPOOL 3a00ea66aa84dc4592954889772a6b2e3971ce798a4c31d9208b3722b38aabebf76c670dc44db3367cba4a48b5819c2d97ffb53f0409a26497b4cbbda6521fba
|
||||
DIST gedit-3.8.1.tar.xz 3105644 SHA256 9e0b8a831c6d6d2b82a8f42a0e01ab1f3398fed2cca0b65d0a105d134a5c4dce SHA512 2938d6af7acf10fa6580b7c13a151e6a03d437d196024805ffee7400105fb5d44627ea3f7c8c824780cb1650476599f08b66618bd8f09e76f25c540504090984 WHIRLPOOL dc39ebe33f0db35b09553656e29ccc9b1164bd3dfcd9a161c92e47dba2c8b2a605b0fa8fe5d6030ac6e1db874a83caed1b1e2d0f789d9bdfa4e486d102ed0ebe
|
||||
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/gedit/gedit-3.8.1.ebuild,v 1.1 2013/04/28 14:37:17 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes" # plugins are dlopened
|
||||
PYTHON_COMPAT=( python3_2 )
|
||||
|
||||
inherit gnome2 multilib python-r1 eutils virtualx
|
||||
|
||||
DESCRIPTION="A text editor for the GNOME desktop"
|
||||
HOMEPAGE="http://live.gnome.org/Gedit"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
IUSE="+introspection +python spell zeitgeist"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
|
||||
# X libs are not needed for OSX (aqua)
|
||||
COMMON_DEPEND="
|
||||
>=x11-libs/libSM-1.0
|
||||
>=dev-libs/libxml2-2.5.0:2
|
||||
>=dev-libs/glib-2.35.4:2
|
||||
>=x11-libs/gtk+-3.7.10:3[introspection?]
|
||||
>=x11-libs/gtksourceview-3.2.0:3.0[introspection?]
|
||||
>=dev-libs/libpeas-1.7.0[gtk]
|
||||
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
gnome-base/gvfs
|
||||
|
||||
x11-libs/libX11
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
|
||||
net-libs/libsoup:2.4
|
||||
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
>=dev-libs/gobject-introspection-0.9.3
|
||||
>=x11-libs/gtk+-3:3[introspection]
|
||||
>=x11-libs/gtksourceview-3.6:3.0[introspection]
|
||||
dev-python/pycairo
|
||||
>=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}] )
|
||||
spell? (
|
||||
>=app-text/enchant-1.2:=
|
||||
>=app-text/iso-codes-0.35 )
|
||||
zeitgeist? ( >=gnome-extra/zeitgeist-0.9.12 )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
x11-themes/gnome-icon-theme-symbolic
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
>=app-text/scrollkeeper-0.3.11
|
||||
dev-libs/libxml2:2
|
||||
>=dev-util/gtk-doc-am-1
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# yelp-tools, gnome-common needed to eautoreconf
|
||||
|
||||
src_configure() {
|
||||
DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
|
||||
gnome2_src_configure \
|
||||
--disable-deprecations \
|
||||
--enable-updater \
|
||||
--enable-gvfs-metadata \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable python) \
|
||||
$(use_enable spell) \
|
||||
$(use_enable zeitgeist) \
|
||||
ITSTOOL=$(type -P true)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# FIXME: this should be handled at eclass level
|
||||
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
|
||||
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
GSETTINGS_SCHEMA_DIR="${S}/data" Xemake check
|
||||
}
|
@ -1,9 +1,4 @@
|
||||
DIST postgis-1.3.6.tar.gz 2227317 SHA256 d3b04d4a3439596a1f6368b0627f21762347cef1e0694d5471ef17c6a3b7d144 SHA512 0e98aeaf8c3c3ca1c51c617a6f50f066a69129b63721507708f02c69b5ff8e75c4b7b076f5075263ceedaf10904eaf950784b2c2f9f27ba3bb982f871b68fd4b WHIRLPOOL c45c611a992b044f63be3259c046f01e34b0772f2f95bf7fb7b71b54adef1c72aa3c86141bff8d305751e4598ee18a40e1ebc5439501b76e6c430c19c988d316
|
||||
DIST postgis-1.4.2.tar.gz 3276515 SHA256 5ce49b83b4c8f62eccb7080157f05299ff0e49c6ba06c3e1fa1ecfa2682c4d4b SHA512 3c27e8ed9eeb0e884190cdd5e4731989f9752e2ba449cdfe45d09cd638bd5b600d5cef16140e072d5e328cac035b2ffcc18392651c7306dcc4b5401429efc73e WHIRLPOOL 34a92d15018c5c414f93bf16c7cccb53af0943564b378bf2ca49d1692ebe51b9935214a5b2e2bddee716734954be7aabe0b4ce8b9c6b7d9cfbb801fa177bf5c4
|
||||
DIST postgis-1.5.3.tar.gz 3779956 SHA256 a2334f8b229446c0497d48a430a40152a3b71a5da02f414a0340a0a025d416cf SHA512 fe51f6cd452de577d361b56196adcacd6715f608c3e2d073375f36e35a6b47b5cc92f8232b9d1d29cd00d1f85c77dbd035379687f7a180074ee7dbd38ca8f3cd WHIRLPOOL 1139e63a8875c98c6f147cba1b3693602846b61c93d73cb561ef567b29f04f51558dfe8a09e0778247fa3b6fc7d221b5ea8df44862808272123c879b21e36589
|
||||
DIST postgis-1.5.5.tar.gz 3802212 SHA256 6f7fbb417cfce8cd120d098219ba5f9a19ccdcec0beb0163320b163b23231cf3 SHA512 c9252721c9b6bb9db5c4e9c5d89efdb9767eadc3f8bec0663bb61129c6c78d867114de31aa0022ec4434fe24e5ce3a6d5002158ec6a1e006b2cb2612a4200ea7 WHIRLPOOL 551e1b9f11c9f21409d4f77174f2c2e4433212290b0fdfba53f0e7149bb3c309dfa17a1cac783623775718b4b027d74109164179fa51cdb4ada1d8d5fbe3280c
|
||||
DIST postgis-1.5.8.tar.gz 3948219 SHA256 4896fdae2f814b88c3ca458b7d01d7eca7e9aca021599c817919f131a1b0d804 SHA512 30167c56083dcd2aa764ee82b5b124992bfca2ab4eb8753a80f0fe624b310a060411f0714a8e56a1aebc277c3fdf8e1157d13d91560d5a8ffbc64917e9f3c727 WHIRLPOOL c889546679f69bbfc6d015c245721323c39fc18b6da2cfc28e24c7c736be112274f5c43d7d2ce61ea11a49011123d66d1a8f3c79ec3356227c48325945bff72a
|
||||
DIST postgis-2.0.0.tar.gz 5446748 SHA256 12179e24e348421c60c501590fda25bd349e2f697003958d9493f5c91b280081 SHA512 e6756d9bb2c88cb3cdbd7f74a8d4dff238b7e9e738468234045dce3646e211a28fd760f245cf93af55e096375de580a8283bc836c52ef216e060481dbe216894 WHIRLPOOL 18dac47cb4b3bc8104a79084da6bd32f32a58c3aaef5b96ee2ec67161d31ed0a4bd739e602a57d888f3b481e3b98ab2884ae8d9f8255c59b85e0f83222917d07
|
||||
DIST postgis-2.0.1.tar.gz 5373194 SHA256 32d181bbf0e648fe31c95b3dd23f7e4e49094d93cb4278fdf71c8feed4e9593c SHA512 c3dd03b8ae6e8917336bbaac0b91343f662d2477a7f54dcb823ef43f5433813615e992e729f2f1a30895c14a5039d3c34d9225e850f193192829380e043fc387 WHIRLPOOL a7df5478b3c23b652d48ac16d4f3fbc2d97bdb70ad5f1a450a3ad6142d977ae7de4cf5d2e53b6aee1a3beaf7feeccb12cc925a2cd08b6b5e74e2ca73e1d1786c
|
||||
DIST postgis-2.0.2.tar.gz 5573652 SHA256 57746d040080e624f3e81633a180d8a5fc16b0c035d94fe2c16306023ab1c391 SHA512 b301d77ec5f4fe216b641b150f93520a11d3b14e76af7854df8f3224a6f971183bd06ceb381c94f0089abced3dfb830591654022d43e4506ed0de9717620c5fd WHIRLPOOL 81eb53565849f2e155c5cfe5dac588b99e48eb175c98ea8afb3159ef3b7d1af55ad053c049934d63bae3f013f8d88decc35e14a2f4be44363b2303c9bfe9d647
|
||||
DIST postgis-2.0.3.tar.gz 5581619 SHA256 7f865a6fdf19afed7d2f3e7178cd504f7254a9e96f2ce6a07d0ea19edc1668a0 SHA512 e49232a0aebd202a053e2f6cb741551e932e49a8c535fadd22fe15c654e3823c2f43a4c78dc0340cddbbc7f9298651dc16e1737be3bfe0779cc4feede032facc WHIRLPOOL 9c7985ab6d50a4a8ffa4e8fa5ea69c7e365aae8d90a3ea70c978149e5a9efe4a29a29d11db5d2a6b5c830dcd5ba458a3263288f32a5af54665f5d1cab3357415
|
||||
|
@ -1,192 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-1.3.6-r1.ebuild,v 1.3 2012/06/04 06:47:41 zmedico Exp $
|
||||
|
||||
EAPI="1"
|
||||
|
||||
inherit eutils multilib versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.refractions.net"
|
||||
SRC_URI="http://postgis.refractions.net/download/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="geos proj doc"
|
||||
|
||||
RDEPEND=">=dev-db/postgresql-server-8.0
|
||||
geos? ( sci-libs/geos )
|
||||
proj? ( sci-libs/proj )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-text/docbook-xsl-stylesheets )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup(){
|
||||
if [ ! -z "${PGUSER}" ]; then
|
||||
eval unset PGUSER
|
||||
fi
|
||||
if [ ! -z "${PGDATABASE}" ]; then
|
||||
eval unset PGDATABASE
|
||||
fi
|
||||
local tmp
|
||||
tmp="$(portageq match / ${CATEGORY}/${PN} | cut -d'.' -f2)"
|
||||
if [ "${tmp}" != "$(get_version_component_range 2)" ]; then
|
||||
elog "You must soft upgrade your existing postgis enabled databases"
|
||||
elog "by adding their names in the ${ROOT}conf.d/postgis_dbs file"
|
||||
elog "then using 'emerge --config postgis'."
|
||||
require_soft_upgrade="1"
|
||||
ebeep 2
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile(){
|
||||
local myconf
|
||||
if use geos; then
|
||||
myconf="--with-geos"
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
myconf="${myconf} --with-xsl=$(ls "${ROOT}"usr/share/sgml/docbook/* | \
|
||||
grep xsl\- | cut -d':' -f1)"
|
||||
fi
|
||||
|
||||
econf --enable-autoconf \
|
||||
--datadir=/usr/share/postgresql/contrib/ \
|
||||
--libdir=/usr/$(get_libdir)/postgresql/ \
|
||||
--with-docdir=/usr/share/doc/${PF}/html/ \
|
||||
${myconf} \
|
||||
$(use_with proj) ||\
|
||||
die "Error: econf failed"
|
||||
|
||||
emake || die "Error: emake failed"
|
||||
|
||||
cd topology/
|
||||
emake || die "Unable to build topology sql file"
|
||||
|
||||
if use doc ; then
|
||||
cd "${S}"
|
||||
emake docs || die "Unable to build documentation"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install(){
|
||||
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 CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
dobin ./utils/postgis_restore.pl
|
||||
|
||||
cd "${S}"
|
||||
if use doc; then
|
||||
emake DESTDIR="${D}" docs-install || die "emake install docs failed"
|
||||
fi
|
||||
|
||||
echo "template_gis" > postgis_dbs
|
||||
doconfd postgis_dbs
|
||||
|
||||
if [ ! -z "${require_soft_upgrade}" ]; then
|
||||
grep "'C'" -B 4 "${D}"usr/share/postgresql/contrib/lwpostgis.sql | \
|
||||
grep -v "'sql'" > \
|
||||
"${D}"usr/share/postgresql/contrib/load_before_upgrade.sql
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To create new (upgrade) spatial databases add their names in the"
|
||||
elog "${ROOT}conf.d/postgis_dbs file, then use 'emerge --config postgis'."
|
||||
}
|
||||
|
||||
pkg_config(){
|
||||
einfo "Create or upgrade a spatial templates and databases."
|
||||
einfo "Please add your databases names into ${ROOT}conf.d/postgis_dbs"
|
||||
einfo "(templates name have to be prefixed with 'template')."
|
||||
for i in $(cat "${ROOT}etc/conf.d/postgis_dbs"); do
|
||||
source "${ROOT}"etc/conf.d/postgresql
|
||||
PGDATABASE=${i}
|
||||
eval set PGDATABASE=${i}
|
||||
myuser="${PGUSER:-postgres}"
|
||||
mydb="${PGDATABASE:-template_gis}"
|
||||
eval set PGUSER=${myuser}
|
||||
|
||||
is_template=false
|
||||
if [ "${mydb:0:8}" == "template" ];then
|
||||
is_template=true
|
||||
mytype="template database"
|
||||
else
|
||||
mytype="database"
|
||||
fi
|
||||
|
||||
einfo
|
||||
einfo "Using the user ${myuser} and the ${mydb} ${mytype}."
|
||||
|
||||
logfile=$(mktemp "${ROOT}tmp/error.log.XXXXXX")
|
||||
safe_exit(){
|
||||
eerror "Removing created ${mydb} ${mytype}"
|
||||
dropdb -q -U "${myuser}" "${mydb}" ||\
|
||||
(eerror "${1}"
|
||||
die "Removing old db failed, you must do it manually")
|
||||
eerror "Please read ${logfile} for more information."
|
||||
die "${1}"
|
||||
}
|
||||
|
||||
# if there is not a table or a template existing with the same name, create.
|
||||
if [ -z "$(psql -U ${myuser} -l | grep "${mydb}")" ]; then
|
||||
createdb -q -O ${myuser} -U ${myuser} ${mydb} ||\
|
||||
die "Unable to create the ${mydb} ${mytype} as ${myuser}"
|
||||
createlang -U ${myuser} plpgsql ${mydb}
|
||||
if [ "$?" == 2 ]; then
|
||||
safe_exit "Unable to createlang plpgsql ${mydb}."
|
||||
fi
|
||||
(psql -q -U ${myuser} ${mydb} -f \
|
||||
"${ROOT}"usr/share/postgresql/contrib/lwpostgis.sql &&
|
||||
psql -q -U ${myuser} ${mydb} -f \
|
||||
"${ROOT}"usr/share/postgresql/contrib/spatial_ref_sys.sql) 2>\
|
||||
"${logfile}"
|
||||
if [ "$(grep -c ERROR "${logfile}")" \> 0 ]; then
|
||||
safe_exit "Unable to load sql files."
|
||||
fi
|
||||
if ${is_template}; then
|
||||
psql -q -U ${myuser} ${mydb} -c \
|
||||
"UPDATE pg_database SET datistemplate = TRUE
|
||||
WHERE datname = '${mydb}';
|
||||
GRANT ALL ON table spatial_ref_sys, geometry_columns TO PUBLIC;" \
|
||||
|| die "Unable to create ${mydb}"
|
||||
psql -q -U ${myuser} ${mydb} -c \
|
||||
"VACUUM FREEZE;" || die "Unable to set VACUUM FREEZE option"
|
||||
fi
|
||||
else
|
||||
if [ -e "${ROOT}"usr/share/postgresql/contrib/load_before_upgrade.sql ];
|
||||
then
|
||||
einfo "Updating the dynamic library references"
|
||||
psql -q -f \
|
||||
"${ROOT}"usr/share/postgresql/contrib/load_before_upgrade.sql\
|
||||
2> "${logfile}"
|
||||
if [ "$(grep -c ERROR "${logfile}")" \> 0 ]; then
|
||||
safe_exit "Unable to update references."
|
||||
fi
|
||||
fi
|
||||
if [ -e "${ROOT}"usr/share/postgresql/contrib/lwpostgis_upgrade.sql ];
|
||||
then
|
||||
einfo "Running soft upgrade"
|
||||
psql -q -U ${myuser} ${mydb} -f \
|
||||
"${ROOT}"usr/share/postgresql/contrib/lwpostgis_upgrade.sql 2>\
|
||||
"${logfile}"
|
||||
if [ "$(grep -c ERROR "${logfile}")" \> 0 ]; then
|
||||
safe_exit "Unable to run soft upgrade."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if ${is_template}; then
|
||||
einfo "You can now create a spatial database using :"
|
||||
einfo "'createdb -T ${mydb} test'"
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,254 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-1.4.2-r1.ebuild,v 1.1 2011/08/23 22:56:13 titanofold Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.refractions.net"
|
||||
SRC_URI="http://postgis.refractions.net/download/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc gtk"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-db/postgresql-server:8.4
|
||||
dev-db/postgresql-server:8.3
|
||||
dev-db/postgresql-server:8.2
|
||||
)
|
||||
>=sci-libs/geos-3.1
|
||||
>=sci-libs/proj-4.5.0
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
|| (
|
||||
media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PGIS="$(get_version_component_range 1-2)"
|
||||
|
||||
# not parallel safe
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
export PGSLOT="$(postgresql-config show)"
|
||||
if [[ ${PGSLOT//.} < 82 || ${PGSLOT//.} > 84 ]] ; then
|
||||
eerror "You must build ${CATEGORY}/${PN} against PostgreSQL between 8.2 and 8.4."
|
||||
eerror "Set an appropriate slot with postgresql-config."
|
||||
die "postgresql-config not set to 8.2, 8.3 or 8.4."
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Configure interprets --without-gui as being the same as --with-gui
|
||||
local myargs=""
|
||||
use gtk && myargs+=" --with-gui"
|
||||
econf \
|
||||
${myargs}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Occasionally, builds fail because of out of order compilation.
|
||||
# Otherwise, it'd be fine.
|
||||
emake
|
||||
cd topology/
|
||||
emake
|
||||
|
||||
if use doc ; then
|
||||
cd "${S}/doc/"
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
cd topology/
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
cd "${S}"
|
||||
dodoc CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
dobin ./utils/postgis_restore.pl
|
||||
|
||||
if use doc; then
|
||||
cd doc/html
|
||||
dohtml -r *
|
||||
fi
|
||||
|
||||
insinto /usr/share/postgresql-${PGSLOT}/contrib/postgis-${PGIS}/
|
||||
doins postgis_comments.sql
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/postgis_dbs-${PGIS}"
|
||||
|
||||
cd "${S}/doc"
|
||||
doman man/*
|
||||
}
|
||||
|
||||
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-${PGIS}"
|
||||
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_version
|
||||
server_version=$(psql -U ${pguser} -d postgres -p ${PGPORT} \
|
||||
-Aqwtc 'SELECT version()' 2> /dev/null)
|
||||
if [[ $? = 0 ]] ; then
|
||||
server_version=$(echo ${server_version} | cut -d " " -f 2 | \
|
||||
cut -d "." -f -2 | tr -d .)
|
||||
if [[ $server_version != ${PGSLOT//.} ]] ; 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}"
|
||||
psql -q -U ${pguser} -p ${PGPORT} -d ${db} \
|
||||
-f "${postgis_path}/postgis_comments.sql"
|
||||
retval=$?
|
||||
[[ $retval == 0 ]] && eend 0 || safe_exit
|
||||
done
|
||||
|
||||
for db in ${upgrade_from_1_2[@]} ; do
|
||||
ebegin "Upgrading from PostGIS 1.2 to ${PGIS} on ${db}"
|
||||
psql -q -U ${pguser} -p ${PGPORT} -d ${db} \
|
||||
-f "${postgis_path}/postgis_upgrade_12_to_${PGIS//.}.sql"
|
||||
retval=$?
|
||||
[[ $retval == 0 ]] && eend 0 || safe_exit
|
||||
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 "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 "To enable other databases, change the default slot:"
|
||||
einfo " postgresql-config set <slot>"
|
||||
einfo "Then, emerge this package again:"
|
||||
einfo " emerge -av =${CATEGORY}/${PF}"
|
||||
}
|
@ -1,255 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-1.5.3-r1.ebuild,v 1.4 2012/03/06 21:24:46 ranger Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.refractions.net"
|
||||
SRC_URI="http://postgis.refractions.net/download/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="doc gtk"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-db/postgresql-server:9.0
|
||||
dev-db/postgresql-server:8.4
|
||||
dev-db/postgresql-server:8.3
|
||||
dev-db/postgresql-server:9.1
|
||||
)
|
||||
dev-libs/libxml2:2
|
||||
>=sci-libs/geos-3.2
|
||||
>=sci-libs/proj-4.6.0
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
|| (
|
||||
media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PGIS="$(get_version_component_range 1-2)"
|
||||
|
||||
# not parallel safe
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
export PGSLOT="$(postgresql-config show)"
|
||||
if [[ ${PGSLOT//.} < 83 ]] ; then
|
||||
eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher."
|
||||
eerror "Set an appropriate slot with postgresql-config."
|
||||
die "postgresql-config not set to 8.3 or higher."
|
||||
fi
|
||||
|
||||
if [[ ${PGSLOT//.} > 90 ]] ; then
|
||||
ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
|
||||
ewarn "This is neither supported here nor upstream."
|
||||
ewarn "However, all indicators show that this should work."
|
||||
ewarn "Any bugs you encounter should be reported upstream."
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myargs=""
|
||||
use gtk && myargs+=" --with-gui"
|
||||
econf \
|
||||
${myargs}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Occasionally, builds fail because of out of order compilation.
|
||||
# Otherwise, it'd be fine.
|
||||
emake
|
||||
emake -C topology
|
||||
use doc && emake -C doc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake -C topology DESTDIR="${D}" install
|
||||
|
||||
cd "${S}"
|
||||
dodoc CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
dobin ./utils/postgis_restore.pl
|
||||
|
||||
if use doc; then
|
||||
cd doc/html
|
||||
dohtml -r *
|
||||
fi
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/postgis_dbs"
|
||||
|
||||
cd "${S}/doc"
|
||||
doman man/*
|
||||
insinto /usr/share/postgresql-${PGSLOT}/contrib/postgis-${PGIS}/
|
||||
doins postgis_comments.sql
|
||||
}
|
||||
|
||||
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_version
|
||||
server_version=$(psql -U ${pguser} -d postgres -p ${PGPORT} \
|
||||
-Aqwtc 'SELECT version()' 2> /dev/null)
|
||||
if [[ $? = 0 ]] ; then
|
||||
server_version=$(echo ${server_version} | cut -d " " -f 2 | \
|
||||
cut -d "." -f -2 | tr -d .)
|
||||
if [[ $server_version != ${PGSLOT//.} ]] ; 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}"
|
||||
psql -q -U ${pguser} -p ${PGPORT} -d ${db} \
|
||||
-f "${postgis_path}/postgis_comments.sql"
|
||||
retval=$?
|
||||
[[ $retval == 0 ]] && eend 0 || safe_exit
|
||||
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 "To enable other databases, change the default slot:"
|
||||
einfo " postgresql-config set <slot>"
|
||||
einfo "Then, emerge this package again:"
|
||||
einfo " emerge -av =${CATEGORY}/${PF}"
|
||||
}
|
@ -1,255 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-1.5.5.ebuild,v 1.1 2012/11/01 06:39:12 patrick Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.refractions.net"
|
||||
SRC_URI="http://postgis.refractions.net/download/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc gtk"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-db/postgresql-server:9.1
|
||||
dev-db/postgresql-server:9.0
|
||||
dev-db/postgresql-server:8.4
|
||||
dev-db/postgresql-server:8.3
|
||||
)
|
||||
dev-libs/libxml2:2
|
||||
>=sci-libs/geos-3.2
|
||||
>=sci-libs/proj-4.6.0
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
|| (
|
||||
media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PGIS="$(get_version_component_range 1-2)"
|
||||
|
||||
# not parallel safe
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
export PGSLOT="$(postgresql-config show)"
|
||||
if [[ ${PGSLOT//.} < 83 ]] ; then
|
||||
eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.3 or higher."
|
||||
eerror "Set an appropriate slot with postgresql-config."
|
||||
die "postgresql-config not set to 8.3 or higher."
|
||||
fi
|
||||
|
||||
if [[ ${PGSLOT//.} > 90 ]] ; then
|
||||
ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
|
||||
ewarn "This is neither supported here nor upstream."
|
||||
ewarn "However, all indicators show that this should work."
|
||||
ewarn "Any bugs you encounter should be reported upstream."
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myargs=""
|
||||
use gtk && myargs+=" --with-gui"
|
||||
econf \
|
||||
${myargs}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Occasionally, builds fail because of out of order compilation.
|
||||
# Otherwise, it'd be fine.
|
||||
emake
|
||||
emake -C topology
|
||||
use doc && emake -C doc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake -C topology DESTDIR="${D}" install
|
||||
|
||||
cd "${S}"
|
||||
dodoc CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
dobin ./utils/postgis_restore.pl
|
||||
|
||||
if use doc; then
|
||||
cd doc/html
|
||||
dohtml -r *
|
||||
fi
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/postgis_dbs"
|
||||
|
||||
cd "${S}/doc"
|
||||
doman man/*
|
||||
insinto /usr/share/postgresql-${PGSLOT}/contrib/postgis-${PGIS}/
|
||||
doins postgis_comments.sql
|
||||
}
|
||||
|
||||
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_version
|
||||
server_version=$(psql -U ${pguser} -d postgres -p ${PGPORT} \
|
||||
-Aqwtc 'SELECT version()' 2> /dev/null)
|
||||
if [[ $? = 0 ]] ; then
|
||||
server_version=$(echo ${server_version} | cut -d " " -f 2 | \
|
||||
cut -d "." -f -2 | tr -d .)
|
||||
if [[ $server_version != ${PGSLOT//.} ]] ; 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}"
|
||||
psql -q -U ${pguser} -p ${PGPORT} -d ${db} \
|
||||
-f "${postgis_path}/postgis_comments.sql"
|
||||
retval=$?
|
||||
[[ $retval == 0 ]] && eend 0 || safe_exit
|
||||
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 "To enable other databases, change the default slot:"
|
||||
einfo " postgresql-config set <slot>"
|
||||
einfo "Then, emerge this package again:"
|
||||
einfo " emerge -av =${CATEGORY}/${PF}"
|
||||
}
|
@ -1,255 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-2.0.0.ebuild,v 1.5 2012/08/11 15:26:08 maekke Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.refractions.net"
|
||||
SRC_URI="http://postgis.refractions.net/download/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE="doc gtk"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-db/postgresql-server:9.1
|
||||
dev-db/postgresql-server:9.0
|
||||
dev-db/postgresql-server:8.4
|
||||
)
|
||||
dev-libs/libxml2:2
|
||||
>=sci-libs/geos-3.3.2
|
||||
>=sci-libs/proj-4.6.0
|
||||
sci-libs/gdal
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
|| (
|
||||
media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PGIS="$(get_version_component_range 1-2)"
|
||||
|
||||
# not parallel safe
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
export PGSLOT="$(postgresql-config show)"
|
||||
if [[ ${PGSLOT//.} < 84 ]] ; then
|
||||
eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.4 or higher."
|
||||
eerror "Set an appropriate slot with postgresql-config."
|
||||
die "postgresql-config not set to 8.4 or higher."
|
||||
fi
|
||||
|
||||
# if [[ ${PGSLOT//.} > 90 ]] ; then
|
||||
# ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
|
||||
# ewarn "This is neither supported here nor upstream."
|
||||
# ewarn "However, all indicators show that this should work."
|
||||
# ewarn "Any bugs you encounter should be reported upstream."
|
||||
# fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myargs=""
|
||||
use gtk && myargs+=" --with-gui"
|
||||
econf \
|
||||
${myargs}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Occasionally, builds fail because of out of order compilation.
|
||||
# Otherwise, it'd be fine.
|
||||
emake
|
||||
emake -C topology
|
||||
use doc && emake -C doc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake -C topology DESTDIR="${D}" install
|
||||
|
||||
cd "${S}"
|
||||
dodoc CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
dobin ./utils/postgis_restore.pl
|
||||
|
||||
if use doc; then
|
||||
cd doc/html
|
||||
dohtml -r *
|
||||
fi
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/postgis_dbs"
|
||||
|
||||
cd "${S}/doc"
|
||||
doman man/*
|
||||
insinto /usr/share/postgresql-${PGSLOT}/contrib/postgis-${PGIS}/
|
||||
doins postgis_comments.sql
|
||||
}
|
||||
|
||||
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_version
|
||||
server_version=$(psql -U ${pguser} -d postgres -p ${PGPORT} \
|
||||
-Aqwtc 'SELECT version()' 2> /dev/null)
|
||||
if [[ $? = 0 ]] ; then
|
||||
server_version=$(echo ${server_version} | cut -d " " -f 2 | \
|
||||
cut -d "." -f -2 | tr -d .)
|
||||
if [[ $server_version != ${PGSLOT//.} ]] ; 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}"
|
||||
psql -q -U ${pguser} -p ${PGPORT} -d ${db} \
|
||||
-f "${postgis_path}/postgis_comments.sql"
|
||||
retval=$?
|
||||
[[ $retval == 0 ]] && eend 0 || safe_exit
|
||||
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 "To enable other databases, change the default slot:"
|
||||
einfo " postgresql-config set <slot>"
|
||||
einfo "Then, emerge this package again:"
|
||||
einfo " emerge -av =${CATEGORY}/${PF}"
|
||||
}
|
@ -1,256 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-2.0.1.ebuild,v 1.2 2012/08/20 01:46:29 ottxor Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.refractions.net"
|
||||
SRC_URI="http://postgis.refractions.net/download/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc gtk"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-db/postgresql-server:9.1
|
||||
dev-db/postgresql-server:9.0
|
||||
dev-db/postgresql-server:8.4
|
||||
dev-db/postgresql-server:9.2
|
||||
)
|
||||
dev-libs/libxml2:2
|
||||
>=sci-libs/geos-3.3.2
|
||||
>=sci-libs/proj-4.6.0
|
||||
sci-libs/gdal
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
|| (
|
||||
media-gfx/imagemagick
|
||||
media-gfx/graphicsmagick[imagemagick]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
PGIS="$(get_version_component_range 1-2)"
|
||||
|
||||
# not parallel safe
|
||||
MAKEOPTS+=" -j1"
|
||||
|
||||
pkg_setup() {
|
||||
export PGSLOT="$(postgresql-config show)"
|
||||
if [[ ${PGSLOT//.} < 84 ]] ; then
|
||||
eerror "You must build ${CATEGORY}/${PN} against PostgreSQL 8.4 or higher."
|
||||
eerror "Set an appropriate slot with postgresql-config."
|
||||
die "postgresql-config not set to 8.4 or higher."
|
||||
fi
|
||||
|
||||
# if [[ ${PGSLOT//.} > 90 ]] ; then
|
||||
# ewarn "You are building ${CATEGORY}/${PN} against a version of PostgreSQL greater than 9.0."
|
||||
# ewarn "This is neither supported here nor upstream."
|
||||
# ewarn "However, all indicators show that this should work."
|
||||
# ewarn "Any bugs you encounter should be reported upstream."
|
||||
# fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myargs=""
|
||||
use gtk && myargs+=" --with-gui"
|
||||
econf \
|
||||
${myargs}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Occasionally, builds fail because of out of order compilation.
|
||||
# Otherwise, it'd be fine.
|
||||
emake
|
||||
emake -C topology
|
||||
use doc && emake -C doc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake -C topology DESTDIR="${D}" install
|
||||
|
||||
cd "${S}"
|
||||
dodoc CREDITS TODO loader/README.* doc/*txt
|
||||
|
||||
docinto topology
|
||||
dodoc topology/{TODO,README}
|
||||
dobin ./utils/postgis_restore.pl
|
||||
|
||||
if use doc; then
|
||||
cd doc/html
|
||||
dohtml -r *
|
||||
fi
|
||||
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/postgis_dbs"
|
||||
|
||||
cd "${S}/doc"
|
||||
doman man/*
|
||||
insinto /usr/share/postgresql-${PGSLOT}/contrib/postgis-${PGIS}/
|
||||
doins postgis_comments.sql
|
||||
}
|
||||
|
||||
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_version
|
||||
server_version=$(psql -U ${pguser} -d postgres -p ${PGPORT} \
|
||||
-Aqwtc 'SELECT version()' 2> /dev/null)
|
||||
if [[ $? = 0 ]] ; then
|
||||
server_version=$(echo ${server_version} | cut -d " " -f 2 | \
|
||||
cut -d "." -f -2 | tr -d .)
|
||||
if [[ $server_version != ${PGSLOT//.} ]] ; 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}"
|
||||
psql -q -U ${pguser} -p ${PGPORT} -d ${db} \
|
||||
-f "${postgis_path}/postgis_comments.sql"
|
||||
retval=$?
|
||||
[[ $retval == 0 ]] && eend 0 || safe_exit
|
||||
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 "To enable other databases, change the default slot:"
|
||||
einfo " postgresql-config set <slot>"
|
||||
einfo "Then, emerge this package again:"
|
||||
einfo " emerge -av =${CATEGORY}/${PF}"
|
||||
}
|
@ -1,265 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/postgis/postgis-2.0.2-r2.ebuild,v 1.1 2013/02/11 14:11:31 titanofold Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils versionator
|
||||
|
||||
DESCRIPTION="Geographic Objects for PostgreSQL"
|
||||
HOMEPAGE="http://postgis.net"
|
||||
SRC_URI="http://download.osgeo.org/postgis/source/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc gtk"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-db/postgresql-server:9.2
|
||||
dev-db/postgresql-server:9.1
|
||||
dev-db/postgresql-server:9.0
|
||||
dev-db/postgresql-server:8.4
|
||||
)
|
||||
dev-libs/json-c
|
||||
dev-libs/libxml2:2
|
||||
>=sci-libs/geos-3.3.3
|
||||
>=sci-libs/proj-4.6.0
|
||||
>=sci-libs/gdal-1.9
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-text/docbook-xsl-stylesheets
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
|| (
|
||||
media-gfx/imagemagick[png]
|
||||
media-gfx/graphicsmagick[imagemagick,png]
|
||||
)
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PGIS="$(get_version_component_range 1-2)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
# 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"
|
||||
|
||||
# Because developers have been fooled into thinking recursive make is a
|
||||
# good thing.
|
||||
MAKEOPTS="-j1"
|
||||
|
||||
pkg_setup() {
|
||||
export PGSLOT="$(postgresql-config show)"
|
||||
|
||||
if [[ ${PGSLOT//.} < 84 || ${PGSLOT//.} > 92 ]] ; then
|
||||
eerror "You must build ${CATEGORY}/${P} against PostgreSQL 8.4 - 9.2."
|
||||
eerror "Set an appropriate slot with postgresql-config."
|
||||
die 'Select a PostgreSQL slot between 8.4 and 9.2'
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-${PGIS}-ldflags.patch" \
|
||||
"${FILESDIR}/${PN}-${PGIS}-pkgconfig-json.patch"
|
||||
|
||||
local AT_M4DIR="macros"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myargs=""
|
||||
use gtk && myargs+=" --with-gui"
|
||||
econf ${myargs}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Occasionally, builds fail because of out of order compilation.
|
||||
# Otherwise, it'd be fine.
|
||||
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"
|
||||
}
|
||||
|
||||
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_version
|
||||
server_version=$(psql -U ${pguser} -d postgres -p ${PGPORT} \
|
||||
-Aqwtc 'SELECT version()' 2> /dev/null)
|
||||
if [[ $? = 0 ]] ; then
|
||||
server_version=$(echo ${server_version} | cut -d " " -f 2 | \
|
||||
cut -d "." -f -2 | tr -d .)
|
||||
if [[ $server_version != ${PGSLOT//.} ]] ; 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 "To enable other databases, change the default slot:"
|
||||
einfo " postgresql-config set <slot>"
|
||||
einfo "Then, emerge this package again:"
|
||||
einfo " emerge -av =${CATEGORY}/${PF}"
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.22_rc1.ebuild,v 1.1 2013/04/28 14:01:29 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="A library for applications dealing with netlink socket"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
LICENSE="LGPL-2.1 utils? ( GPL-2 )"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/${PN}/files/${P/_/-}.tar.gz
|
||||
"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="static-libs utils"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${P/_/-}"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-rtnl_tc_get_ops.patch
|
||||
epatch "${FILESDIR}"/${PN}-3.2.20-cache-api.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
prune_libtool_files $(usex static-libs --modules --all)
|
||||
|
||||
dodoc ChangeLog
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
From 4a874dde53cf6acca7db2e7be3c10106fb50ec62 Mon Sep 17 00:00:00 2001
|
||||
From: Markos Chandras <hwoarang@gentoo.org>
|
||||
Date: Sun, 28 Apr 2013 12:27:57 +0100
|
||||
Subject: [PATCH] configure.ac: Fix json-c detection for json-c >= 0.11
|
||||
|
||||
json-c-0.11 renamed the pkgconfig file to json-c
|
||||
https://github.com/json-c/json-c/blob/master/ChangeLog
|
||||
The configure.ac file was fixed to look for json-c if json
|
||||
is not available.
|
||||
|
||||
[Alexandre Rostovtsev <tetromino@gentoo.org>: backport to 2.0.13]
|
||||
|
||||
Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
|
||||
---
|
||||
configure.ac | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index dd50bcf..0ca5e67 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -104,7 +104,9 @@ PKG_CHECK_MODULES([DBUS], [dbus-1])
|
||||
PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
|
||||
PKG_CHECK_MODULES([NSS], [nss])
|
||||
PKG_CHECK_MODULES([CURL], [libcurl])
|
||||
-PKG_CHECK_MODULES([JSON_C], [json])
|
||||
+PKG_CHECK_MODULES([JSON_C], [json],,[
|
||||
+ PKG_CHECK_MODULES([JSON_C], [json-c])
|
||||
+])
|
||||
PKG_CHECK_MODULES([BTPARSER], [btparser])
|
||||
PKG_CHECK_MODULES([NEWT], [libnewt])
|
||||
PKG_CHECK_MODULES([PROXY], [libproxy-1.0], [
|
||||
--
|
||||
1.8.2.1
|
||||
|
@ -1,4 +1,2 @@
|
||||
DIST ucommon-5.2.2.tar.gz 792081 SHA256 9d5f3f4d1ef897482fe470b0dd65b0df516aaeb874eac3a33a455abca13f39e9 SHA512 5d5e526675cb39dffea48c38a14dff4eb1316a59c60e2352cfdbb0727ff4db00417e9704026f106da5d34f92ec2be3385b0763d66196f345f0b775bf62eb0125 WHIRLPOOL f857c4b06aff4bbb1ff84edc810d674c7d77a92bb4bcdb62fed64e77e9979c7d736b93596166de6c5fb848745aa7efc1b666231bdb6a33c3b959953b4b114ac2
|
||||
DIST ucommon-5.5.0.tar.gz 803892 SHA256 fd4b885ee5abdb3cc44a501d92428af71e1c50ff9166a0e5c5fdbdf16a853d8d SHA512 c860d0134a5c888bbbd008b1716eff985f152a8bf3e3ee54b85adcf89f3d073ea1d080a071def3314584579841a270f5323a7c092bf516af9efb2b3180b12440 WHIRLPOOL c7baf57390c415011a48fa7472932d73778b1f2a0b435de55a8d6564061ca28c29ef0660f03727853f7d96b6ea8f0d1e8afc99fff9556de4694ea9694f8363c3
|
||||
DIST ucommon-6.0.0.tar.gz 806713 SHA256 b28fe9c9f596c58bb796ec4aab54db7c525c8ad42bf5b7c57fe08d7d260c5099 SHA512 1482be954582317535e7b3668b433e4ee2bfe53ad05a7391f1152e19895221411b1900f66b0971c642bf1c5ff76241fc2d7ebd3ad020d20fce1e46d32d228bf7 WHIRLPOOL 546623fe5f5d4807c0f04145627b0e69f67022f15daf3ad6a49a69ef7c6a9be61cbbd9a255a674e2ea1f6cec54a65a5efe266b97243bc8f8946ae131b375a23e
|
||||
DIST ucommon-6.0.3.tar.gz 806841 SHA256 228f3a0fa78173e9fa43e154250a7ed4f1e5be720a81fd2768506c088190c432 SHA512 3ff30865a7f3fae955717c9bc2d3b37ad8f63dff8d3addc05eb9ddefa2311792f21b97ede852e22959ae6aae5114cce777a04b937aa07d564dd92d6f25f77762 WHIRLPOOL 93135ae4ec3c0e6d5203ebed6c6736b9b768d623d99a20674ee0a0ce48622d783efea6b8ca4eb22d5c2653b5059ff9626a35bf0ccfbad7d422a5cdf6c190c7c8
|
||||
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-5.5.0.ebuild,v 1.1 2012/11/26 18:05:54 maksbotan Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-utils eutils
|
||||
|
||||
DESCRIPTION="Portable C++ runtime for threads and sockets"
|
||||
HOMEPAGE="http://www.gnu.org/software/commoncpp"
|
||||
SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="doc static-libs socks +cxx debug ssl gnutls"
|
||||
|
||||
RDEPEND="ssl? (
|
||||
!gnutls? ( dev-libs/openssl )
|
||||
gnutls? (
|
||||
net-libs/gnutls
|
||||
dev-libs/libgcrypt
|
||||
)
|
||||
)"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=(README NEWS SUPPORT ChangeLog AUTHORS)
|
||||
PATCHES=( "${FILESDIR}"/disable_rtf_gen_doxy.patch
|
||||
"${FILESDIR}"/install_gcrypt.m4_file.patch
|
||||
"${FILESDIR}"/gcrypt_autotools.patch )
|
||||
|
||||
#"${FILESDIR}/${P}-address.patch"
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
if use ssl; then
|
||||
myconf+=" --with-sslstack=$(usex gnutls gnu ssl) "
|
||||
else
|
||||
myconf+=" --with-sslstack=nossl ";
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable socks)
|
||||
$(use_enable cxx stdcpp)
|
||||
${myconf}
|
||||
--enable-atomics
|
||||
--with-pkg-config
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile
|
||||
use doc && autotools-utils_src_compile doxy
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
if use doc; then
|
||||
dohtml doc/html/*
|
||||
fi
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-6.0.0.ebuild,v 1.1 2012/11/26 18:05:54 maksbotan Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-utils eutils
|
||||
|
||||
DESCRIPTION="Portable C++ runtime for threads and sockets"
|
||||
HOMEPAGE="http://www.gnu.org/software/commoncpp"
|
||||
SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="doc static-libs socks +cxx debug ssl gnutls"
|
||||
|
||||
RDEPEND="ssl? (
|
||||
!gnutls? ( dev-libs/openssl )
|
||||
gnutls? (
|
||||
net-libs/gnutls
|
||||
dev-libs/libgcrypt
|
||||
)
|
||||
)"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=(README NEWS SUPPORT ChangeLog AUTHORS)
|
||||
PATCHES=( "${FILESDIR}"/disable_rtf_gen_doxy.patch
|
||||
"${FILESDIR}"/install_gcrypt.m4_file.patch
|
||||
"${FILESDIR}"/gcrypt_autotools.patch )
|
||||
|
||||
#"${FILESDIR}/${P}-address.patch"
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
if use ssl; then
|
||||
myconf+=" --with-sslstack=$(usex gnutls gnu ssl) "
|
||||
else
|
||||
myconf+=" --with-sslstack=nossl ";
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable socks)
|
||||
$(use_enable cxx stdcpp)
|
||||
${myconf}
|
||||
--enable-atomics
|
||||
--with-pkg-config
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile
|
||||
use doc && autotools-utils_src_compile doxy
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
if use doc; then
|
||||
dohtml doc/html/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
diff --git a/docs/jinjaext.py b/docs/jinjaext.py
|
||||
index 12b5447..8395a55 100644
|
||||
--- a/docs/jinjaext.py
|
||||
+++ b/docs/jinjaext.py
|
||||
@@ -8,6 +8,7 @@
|
||||
:copyright: Copyright 2008 by Armin Ronacher.
|
||||
:license: BSD.
|
||||
"""
|
||||
+import collections
|
||||
import os
|
||||
import re
|
||||
import inspect
|
||||
@@ -22,6 +23,7 @@ from pygments.style import Style
|
||||
from pygments.token import Keyword, Name, Comment, String, Error, \
|
||||
Number, Operator, Generic
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
+from jinja2.utils import next
|
||||
|
||||
|
||||
def parse_rst(state, content_offset, doc):
|
||||
@@ -110,10 +112,10 @@ def dump_functions(mapping):
|
||||
def directive(dirname, arguments, options, content, lineno,
|
||||
content_offset, block_text, state, state_machine):
|
||||
reverse_mapping = {}
|
||||
- for name, func in mapping.iteritems():
|
||||
+ for name, func in mapping.items():
|
||||
reverse_mapping.setdefault(func, []).append(name)
|
||||
filters = []
|
||||
- for func, names in reverse_mapping.iteritems():
|
||||
+ for func, names in reverse_mapping.items():
|
||||
aliases = sorted(names, key=lambda x: len(x))
|
||||
name = aliases.pop()
|
||||
filters.append((name, aliases, func))
|
||||
@@ -145,9 +147,9 @@ def jinja_nodes(dirname, arguments, options, content, lineno,
|
||||
doc.append(p + '.. autoclass:: %s(%s)' % (node.__name__, sig), '')
|
||||
if node.abstract:
|
||||
members = []
|
||||
- for key, name in node.__dict__.iteritems():
|
||||
+ for key, name in node.__dict__.items():
|
||||
if not key.startswith('_') and \
|
||||
- not hasattr(node.__base__, key) and callable(name):
|
||||
+ not hasattr(node.__base__, key) and isinstance(name, collections.Callable):
|
||||
members.append(key)
|
||||
if members:
|
||||
members.sort()
|
||||
@@ -169,10 +171,10 @@ def inject_toc(app, doctree, docname):
|
||||
titleiter = iter(doctree.traverse(nodes.title))
|
||||
try:
|
||||
# skip first title, we are not interested in that one
|
||||
- titleiter.next()
|
||||
- title = titleiter.next()
|
||||
+ next(titleiter)
|
||||
+ title = next(titleiter)
|
||||
# and check if there is at least another title
|
||||
- titleiter.next()
|
||||
+ next(titleiter)
|
||||
except StopIteration:
|
||||
return
|
||||
tocnode = nodes.section('')
|
||||
diff --git a/jinja2/environment.py b/jinja2/environment.py
|
||||
index ebb5454..1b5dc40 100644
|
||||
--- a/jinja2/environment.py
|
||||
+++ b/jinja2/environment.py
|
||||
@@ -570,6 +570,10 @@ class Environment(object):
|
||||
py_header = imp.get_magic() + \
|
||||
u'\xff\xff\xff\xff'.encode('iso-8859-15')
|
||||
|
||||
+ # Python 3.3 added a source filesize to the header
|
||||
+ if sys.version_info >= (3, 3):
|
||||
+ py_header += u'\x00\x00\x00\x00'.encode('iso-8859-15')
|
||||
+
|
||||
def write_file(filename, data, mode):
|
||||
if zip:
|
||||
info = ZipInfo(filename)
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/jinja/jinja-2.6-r2.ebuild,v 1.1 2013/04/28 16:14:34 chutzpah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit eutils distutils-r1
|
||||
|
||||
MY_PN=Jinja2
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="A small but fast and easy to use stand-alone template engine written in pure Python"
|
||||
HOMEPAGE="http://jinja.pocoo.org/ http://pypi.python.org/pypi/Jinja2"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="dev-python/markupsafe[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( >=dev-python/sphinx-0.6 )"
|
||||
|
||||
# XXX: handle Babel better?
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
wrap_opts() {
|
||||
local mydistutilsargs=()
|
||||
|
||||
if [[ ${EPYTHON} == python* ]]; then
|
||||
mydistutilargs+=( --with-debugsupport )
|
||||
fi
|
||||
|
||||
"${@}"
|
||||
}
|
||||
|
||||
python_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-python3.3.patch
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
wrap_opts distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
cd docs || die
|
||||
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
# https://github.com/mitsuhiko/jinja2/issues/115
|
||||
2to3 -n -w --no-diffs jinjaext.py || die
|
||||
fi
|
||||
|
||||
emake html
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins ext/Vim/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! has_version dev-python/Babel; then
|
||||
elog "For i18n support, please emerge dev-python/Babel."
|
||||
fi
|
||||
}
|
@ -1 +1 @@
|
||||
DIST numexpr-2.0.1.tar.gz 68549 SHA256 29492a08d5137c9a3a369527a899680ef7c1908cd4851ad2827b6c1d3767b092 SHA512 4d1ee18981e7d75165d0dad6060371dc9aa1b7bcd561708105da03983920b715b25d9d7c24c595809e20917e37cd387ec293d37ede62cf0e213f8170ed1d9970 WHIRLPOOL 0b0eb3bc60d3d792579abd046f6b8752a356d71b21bea760948713301d1790e095f85dc420341ca9f03322ec273ce98cf92302fff5732c0504f5083025274e26
|
||||
DIST numexpr-2.1.tar.gz 73944 SHA256 39f2fed7f1b8125c0f2df3af454c97e5dfa636ce487ad7921025815e24c17df8 SHA512 bca4c73441b3265c60d3682b47b9a94cd9a4669b8bde284c7043dccd97177cc829e8e2e50daf99e5c8bcee7565800670319c999914f3846af15f03fc2974cbea WHIRLPOOL 7f906e2a75f888a020db95a312eb9d2592c3046fde51e25b83f716199e631c484efd570b7f7c6fc40e7dd7fb78f83ea3a35a23c88be67783c3c97a1de3539fbb
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST gnome-keyring-2.32.1.tar.bz2 1619245 SHA256 31fecec1430a97f59a6159a5a2ea8d6a1b44287f1e9e595b3594df46bf7f18f9 SHA512 23b91bc11be2805df228de98513a5f96386a89d6ead6434b7fdf4a3bee86b6601bb994b9de4524f8751c7d7f1ac9462c592bcd9b77c32234fc709148450e382b WHIRLPOOL fa9ed1d79a8af912ca8c4957d6dba30322a0239dd2c9b40f5c6adbfc66147402870a6400ae8bbdb56380c250e095b601ab9689f65ea17c95a76e7e2defe27c7d
|
||||
DIST gnome-keyring-3.6.2.tar.xz 1139836 SHA256 ae60558d60171325ddd90603328393d35d7b560a70b7ab45c4d2718d01130cd6 SHA512 d469e7cf5721aa3fd22bcf87799f303d01135698af7919f9bb9421ae043729bc8924d6e245b1e7c16d501897c259df35e9e015e79ae4d4c17af473a48dc337c5 WHIRLPOOL 0b24551a964d68e9f6dab211d409e80c49808640cd613a9d8b0cc47edfe288ac167dbc71e3164a81cbad64a1a3f1376f84ecbd023a3443b442da13770969d2ec
|
||||
DIST gnome-keyring-3.6.3.tar.xz 1141948 SHA256 e0153a3f16a25e943237e6242054870802815e0f694c5a4cd808ee72f6014151 SHA512 aff1de6831be7b1e3e8383f14bcf408153c8729cea247e63be852bd527d4221238f182f2d2c73b081dab4bd6564e5c4df5d6848cfa311ba66c0fcf0dcacaa4bf WHIRLPOOL 141632220bed40b9faa9a1a481860ba0207986c78ba4072ad9726acc8cc24cc39e61f197d25b709c2380f8b06ad349f7179f39ab11d389ff4a8a199ca172c7b8
|
||||
DIST gnome-keyring-3.8.0.tar.xz 1137888 SHA256 5ef9f4b7ff983a4fbc3d049aafee0fd3ecaf4d5cc7573517ac17c1b1a56bca6c SHA512 105ed4f37b080b79b3fafdcd8d4bec2d56fe39eafdc0f2e76549999fb574038252d7935bcda78352ea910602bf4478e66adfb934952009a2e980d96f8e7d03ac WHIRLPOOL 693cad3dd1fa820b2cc8fcd9c80d7861be6a7487e46baa44c770c562034cfedd8a6da71074b87af9177b5016cd863f88094a99923e252c06294f7599356fcf4d
|
||||
DIST gnome-keyring-3.8.1.tar.xz 1140232 SHA256 56e0a47c021fb2d2fd2c723a0e1c9e46c9a0a81ed865ac1588c19aca16ca4f37 SHA512 a31ebada5528082c511ad3cb6a11aab03a76a3fc2b1012ea505483a1078f6ad229fd32fe846cbd77703ca4644225091aa05870c870c7c31262bc0338fe011fad WHIRLPOOL 9c0e561ab6047ff59d917c51a90311b320c533dfd076d66030efac15a55292d893d6b3c78813f0ea05eaa8a93a0c91527e26d82cc5eb87d93e413a64cfe6b671
|
||||
|
@ -1,125 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.6.2.ebuild,v 1.2 2013/02/25 09:18:12 zmedico Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="yes" # Not gnome macro but similar
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit gnome2 pam versionator virtualx
|
||||
|
||||
DESCRIPTION="Password and keyring managing daemon"
|
||||
HOMEPAGE="http://live.gnome.org/GnomeKeyring"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+caps debug pam selinux"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
>=app-crypt/gcr-3.5.3:=
|
||||
>=dev-libs/glib-2.32.0:2
|
||||
>=x11-libs/gtk+-3.0:3
|
||||
app-misc/ca-certificates
|
||||
>=dev-libs/libgcrypt-1.2.2:=
|
||||
>=sys-apps/dbus-1.0
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
pam? ( virtual/pam )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
PDEPEND=">=gnome-base/libgnome-keyring-3.1.92"
|
||||
# eautoreconf needs:
|
||||
# >=dev-util/gtk-doc-am-1.9
|
||||
# gtk-doc-am is not needed otherwise (no gtk-docs are installed)
|
||||
|
||||
src_prepare() {
|
||||
# Disable stupid CFLAGS
|
||||
sed -e 's/CFLAGS="$CFLAGS -g"//' \
|
||||
-e 's/CFLAGS="$CFLAGS -O0"//' \
|
||||
-i configure.ac configure || die
|
||||
|
||||
# FIXME: some tests write to /tmp (instead of TMPDIR)
|
||||
# Disable failing tests
|
||||
sed -e '/g_test_add.*test_remove_file_abort/d' \
|
||||
-e '/g_test_add.*test_write_file/d' \
|
||||
-e '/g_test_add.*write_large_file/,+2 c\ {}; \ ' \
|
||||
-e '/g_test_add.*test_write_file_abort_.*/d' \
|
||||
-e '/g_test_add.*test_unique_file_conflict.*/d' \
|
||||
-i pkcs11/gkm/tests/test-transaction.c || die
|
||||
sed -e '/g_test_add.*test_create_assertion_complete_on_token/d' \
|
||||
-i pkcs11/xdg-store/tests/test-xdg-trust.c || die
|
||||
sed -e '/g_test_add.*gnome2-store.import.pkcs12/,+1 d' \
|
||||
-i pkcs11/gnome2-store/tests/test-import.c || die
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
G2CONF="${G2CONF}
|
||||
$(use_with caps libcap-ng)
|
||||
$(use_enable pam)
|
||||
$(use_with pam pam-dir $(getpam_mod_dir))
|
||||
$(use_enable selinux)
|
||||
--with-root-certs=${EPREFIX}/etc/ssl/certs/
|
||||
--with-ca-certificates=${EPREFIX}/etc/ssl/certs/ca-certificates.crt
|
||||
--enable-ssh-agent
|
||||
--enable-gpg-agent"
|
||||
gnome2_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
Xemake check
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use caps && fcaps 0:0 755 cap_ipc_lock "${EROOT}"/usr/bin/gnome-keyring-daemon
|
||||
|
||||
gnome2_pkg_postinst
|
||||
}
|
||||
|
||||
# borrowed from GSoC2010_Gentoo_Capabilities by constanze and Flameeyes
|
||||
# @FUNCTION: fcaps
|
||||
# @USAGE: fcaps {uid:gid} {file-mode} {cap1[,cap2,...]} {file}
|
||||
# @RETURN: 0 if all okay; non-zero if failure and fallback
|
||||
# @DESCRIPTION:
|
||||
# fcaps sets the specified capabilities in the effective and permitted set of
|
||||
# the given file. In case of failure fcaps sets the given file-mode.
|
||||
# Requires versionator.eclass
|
||||
fcaps() {
|
||||
local uid_gid=$1
|
||||
local perms=$2
|
||||
local capset=$3
|
||||
local path=$4
|
||||
local res
|
||||
|
||||
chmod $perms $path && \
|
||||
chown $uid_gid $path
|
||||
res=$?
|
||||
|
||||
use caps || return $res
|
||||
|
||||
#set the capability
|
||||
setcap "$capset=ep" "$path" &> /dev/null
|
||||
#check if the capability got set correctly
|
||||
setcap -v "$capset=ep" "$path" &> /dev/null
|
||||
res=$?
|
||||
|
||||
if [ $res -ne 0 ]; then
|
||||
ewarn "Failed to set capabilities. Probable reason is missing kernel support."
|
||||
ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)"
|
||||
ewarn "where <FS> is the filesystem to store ${path}"
|
||||
if ! version_is_at_least 2.6.33 "$(uname -r)"; then
|
||||
ewarn "For kernel 2.6.32 or older, you will also need to enable"
|
||||
ewarn "SECURITY_FILE_CAPABILITIES."
|
||||
fi
|
||||
ewarn
|
||||
ewarn "Falling back to suid now..."
|
||||
chmod u+s ${path}
|
||||
fi
|
||||
return $res
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.1.ebuild,v 1.1 2013/04/28 13:38:52 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="yes" # Not gnome macro but similar
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit fcaps gnome2 pam versionator virtualx
|
||||
|
||||
DESCRIPTION="Password and keyring managing daemon"
|
||||
HOMEPAGE="http://live.gnome.org/GnomeKeyring"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+caps debug pam selinux"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND="
|
||||
>=app-crypt/gcr-3.5.3:=[gtk]
|
||||
>=dev-libs/glib-2.32.0:2
|
||||
app-misc/ca-certificates
|
||||
>=dev-libs/libgcrypt-1.2.2:=
|
||||
>=sys-apps/dbus-1.1.1
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
pam? ( virtual/pam )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.35
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
PDEPEND=">=gnome-base/libgnome-keyring-3.1.92"
|
||||
# eautoreconf needs:
|
||||
# >=dev-util/gtk-doc-am-1.9
|
||||
# gtk-doc-am is not needed otherwise (no gtk-docs are installed)
|
||||
|
||||
src_prepare() {
|
||||
# Disable stupid CFLAGS
|
||||
sed -e 's/CFLAGS="$CFLAGS -g"//' \
|
||||
-e 's/CFLAGS="$CFLAGS -O0"//' \
|
||||
-i configure.ac configure || die
|
||||
|
||||
# FIXME: some tests write to /tmp (instead of TMPDIR)
|
||||
# Disable failing tests
|
||||
sed -e '/g_test_add.*test_remove_file_abort/d' \
|
||||
-e '/g_test_add.*test_write_file/d' \
|
||||
-e '/g_test_add.*write_large_file/,+2 c\ {}; \ ' \
|
||||
-e '/g_test_add.*test_write_file_abort_.*/d' \
|
||||
-e '/g_test_add.*test_unique_file_conflict.*/d' \
|
||||
-i pkcs11/gkm/tests/test-transaction.c || die
|
||||
sed -e '/g_test_add.*test_create_assertion_complete_on_token/d' \
|
||||
-i pkcs11/xdg-store/tests/test-xdg-trust.c || die
|
||||
sed -e '/g_test_add.*gnome2-store.import.pkcs12/,+1 d' \
|
||||
-i pkcs11/gnome2-store/tests/test-import.c || die
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_with caps libcap-ng) \
|
||||
$(use_enable pam) \
|
||||
$(use_with pam pam-dir $(getpam_mod_dir)) \
|
||||
$(use_enable selinux) \
|
||||
--enable-ssh-agent \
|
||||
--enable-gpg-agent
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
Xemake check
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fcaps cap_ipc_lock usr/bin/gnome-keyring-daemon
|
||||
gnome2_pkg_postinst
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
DIST gvfs-1.12.3.tar.xz 1361968 SHA256 38f69ec92083f86a51e7814e98d2861151f16dfb3abe4b3b39488408e12fd9c2 SHA512 1b2a2947447fa0917c64a69e02c84a1f870e88fb12c65169a86fd54165e5d4df671e324653ce1d1f123e03187f284e645ef6d4311000b9e88ac2aec055d48a58 WHIRLPOOL 07b21d6ddbb2388944e88af5057d5c027ea9cc4848e6901d74f428498cc4e87db4b80846ca2914802777c32b536bb220a7a8a3c0eae3a8e1f9373a032cd4511f
|
||||
DIST gvfs-1.14.2.tar.xz 1466384 SHA256 c3bbdac4bc89de82a2ba373799da80d24fb6a038a9893d9b54e2c9429c878fbc SHA512 f7f4fa2b69d51f087d0f5094c4a170363cad2cd86c6de94241bb4fd9adfcde48ee34c21f5e3e761ff13ba39d842f886dbabba5cecb466dcbae9a40c9b7976a58 WHIRLPOOL dff3f4fc334cb5f3ccd82260fd0feb7c57da8d588e5e9fd5ec5c8563dc52922fe58ff6ac3de85af94d7c7ff6d32acc85edb9def6db90130ef75681566222cde4
|
||||
DIST gvfs-1.16.0.tar.xz 1493176 SHA256 b0cf3ec2be053ef42a25a34c64b90fdf28a5334c595452ee2e246734696dd55e SHA512 0d03534ff084d0f8dbad0fc336e3c9bd62fa557189ca61ecd629eb3450d532308b198d9d9c59c82c926d1b7d0bf01b0a9e6bcd4591bf317c0fa30793d26fc038 WHIRLPOOL cab313c6f043a58b0f1526f8a53a504d38402c8cd30141a5c048b92d5f3d611f868fb0e58994682a728208f92bf1418c6637376b0690afcb43902c1fd532a4ef
|
||||
DIST gvfs-1.16.1.tar.xz 1493260 SHA256 e7ec47547ff8029a2e8d81533bdfa870fe4a547c9d7c4e1e946d42d38970b0ac SHA512 1e30efe1dafc9bee0916063ee39808a18e2e8e15ae28ba9f9aa49a39dc83d574dad926917dc82fadf0386b0370ac3ad294dc602df36c28f265dd4e75f85de772 WHIRLPOOL 6872730e4ee331fa998b3cce27495ddfdfb64c43a65a3904c58dbe9f2377c93350d08c729c4729efc3b7a19ed072ce988827dd2d8f1c6b3fa8b407708e9c6100
|
||||
DIST libgcrypt.m4.bz2 1526 SHA256 ce9d04f9cbd5417e4d4ba91095c06cea4852c70d75716311e82dfc243d2f0128 SHA512 fe7916d01efb1d14c4d84ed37f3b53b04d3b005cb04b603bded8d24e147fe69a4c0823164483dba3bc95cf540eaf93a0c0ad59f29f8e1edbae9566a81be5900d WHIRLPOOL 6baa8ed005a691fb1f31ac420d801d20a1611519a38749718dcf3956557f40a058c24b988d20534a62084fadd4141c44893cfa751ebf8011cf55d83c759868dd
|
||||
|
@ -1,126 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gvfs/gvfs-1.16.0.ebuild,v 1.4 2013/04/07 09:43:07 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit autotools bash-completion-r1 eutils gnome2
|
||||
|
||||
DESCRIPTION="GNOME Virtual Filesystem Layer"
|
||||
HOMEPAGE="http://www.gnome.org"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README TODO" # ChangeLog.pre-1.2 README.commits
|
||||
|
||||
SRC_URI="${SRC_URI}
|
||||
http://dev.gentoo.org/~tetromino/distfiles/aclocal/libgcrypt.m4.bz2"
|
||||
|
||||
IUSE="afp archive avahi bluetooth bluray cdda doc fuse gdu gnome-keyring gnome-online-accounts gphoto2 gtk +http mtp ios samba systemd +udev udisks"
|
||||
REQUIRED_USE="systemd? ( udisks )"
|
||||
|
||||
# Can use libgphoto-2.5.0 as well. Automagic detection.
|
||||
RDEPEND=">=dev-libs/glib-2.35:2
|
||||
sys-apps/dbus
|
||||
dev-libs/libxml2:2
|
||||
net-misc/openssh
|
||||
afp? ( >=dev-libs/libgcrypt-1.2.2:= )
|
||||
archive? ( app-arch/libarchive:= )
|
||||
avahi? ( >=net-dns/avahi-0.6 )
|
||||
bluetooth? (
|
||||
>=app-mobilephone/obex-data-server-0.4.5
|
||||
dev-libs/dbus-glib
|
||||
net-wireless/bluez
|
||||
dev-libs/expat )
|
||||
bluray? ( media-libs/libbluray )
|
||||
fuse? ( >=sys-fs/fuse-2.8.0 )
|
||||
gdu? ( || (
|
||||
>=gnome-base/libgdu-3.0.2
|
||||
=sys-apps/gnome-disk-utility-3.0.2-r300
|
||||
=sys-apps/gnome-disk-utility-3.0.2-r200 ) )
|
||||
gnome-keyring? ( app-crypt/libsecret )
|
||||
gphoto2? ( >=media-libs/libgphoto2-2.4.7:= )
|
||||
gtk? ( >=x11-libs/gtk+-3.0:3 )
|
||||
http? ( || ( >=net-libs/libsoup-2.42:2.4 >=net-libs/libsoup-gnome-2.34.0[gnome] ) )
|
||||
ios? (
|
||||
>=app-pda/libimobiledevice-1.1.0
|
||||
>=app-pda/libplist-1 )
|
||||
mtp? ( >=media-libs/libmtp-1.1.5 )
|
||||
samba? ( >=net-fs/samba-3.4.6[smbclient] )
|
||||
systemd? ( sys-apps/systemd )
|
||||
udev? (
|
||||
cdda? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
|
||||
virtual/udev[gudev] )
|
||||
udisks? ( >=sys-fs/udisks-1.97:2 )
|
||||
gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.7.1 )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/libxslt
|
||||
>=dev-util/intltool-0.40
|
||||
virtual/pkgconfig
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/gtk-doc-am
|
||||
doc? ( >=dev-util/gtk-doc-1 )"
|
||||
|
||||
REQUIRED_USE="cdda? ( udev )"
|
||||
|
||||
src_prepare() {
|
||||
if use archive; then
|
||||
epatch "${FILESDIR}"/${PN}-1.16.0-expose-archive-backend.patch
|
||||
echo mount-archive.desktop.in >> po/POTFILES.in
|
||||
echo mount-archive.desktop.in.in >> po/POTFILES.in
|
||||
fi
|
||||
|
||||
if ! use udev; then
|
||||
sed -e 's/gvfsd-burn/ /' \
|
||||
-e 's/burn.mount.in/ /' \
|
||||
-e 's/burn.mount/ /' \
|
||||
-i daemon/Makefile.am || die
|
||||
fi
|
||||
|
||||
if use archive || ! use udev; then
|
||||
# libgcrypt.m4 needed for eautoreconf, bug #399043
|
||||
mv "${WORKDIR}/libgcrypt.m4" "${S}"/ || die
|
||||
AT_M4DIR=. eautoreconf
|
||||
fi
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# --enable-documentation installs man pages
|
||||
G2CONF="${G2CONF}
|
||||
--disable-bash-completion
|
||||
--disable-hal
|
||||
--with-dbus-service-dir="${EPREFIX}"/usr/share/dbus-1/services
|
||||
--enable-documentation
|
||||
$(use_enable afp)
|
||||
$(use_enable archive)
|
||||
$(use_enable avahi)
|
||||
$(use_enable bluetooth obexftp)
|
||||
$(use_enable bluray)
|
||||
$(use_enable cdda)
|
||||
$(use_enable doc gtk-doc)
|
||||
$(use_enable fuse)
|
||||
$(use_enable gdu)
|
||||
$(use_enable gphoto2)
|
||||
$(use_enable gtk)
|
||||
$(use_enable ios afc)
|
||||
$(use_enable mtp libmtp)
|
||||
$(use_enable udev)
|
||||
$(use_enable udev gudev)
|
||||
$(use_enable http)
|
||||
$(use_enable gnome-keyring keyring)
|
||||
$(use_enable samba)
|
||||
$(use_enable systemd libsystemd-login)
|
||||
$(use_enable udisks udisks2)"
|
||||
gnome2_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
dobashcomp programs/completion/gvfs
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
From 35469116fbf0b398d748f8116e4dcc8bdaee12c7 Mon Sep 17 00:00:00 2001
|
||||
From: Jon Nordby <jononor@gmail.com>
|
||||
Date: Thu, 12 Apr 2012 12:10:05 +0000
|
||||
Subject: gobject-introspection: Fix build after 0.2.x version bump
|
||||
|
||||
Remove hardcoding of version numbers so that this does
|
||||
not happen again.
|
||||
---
|
||||
(limited to 'gegl/Makefile.am')
|
||||
|
||||
diff --git a/gegl/Makefile.am b/gegl/Makefile.am
|
||||
index aef4c33..43010ce 100644
|
||||
--- a/gegl/Makefile.am
|
||||
+++ b/gegl/Makefile.am
|
||||
@@ -118,10 +118,10 @@ introspection_sources = \
|
||||
INCLUDES = $(AM_CFLAGS) $(AM_CPPFLAGS)
|
||||
|
||||
Gegl-@GEGL_API_VERSION@.gir: libgegl-@GEGL_API_VERSION@.la Makefile
|
||||
-Gegl_0_1_gir_INCLUDES = GObject-2.0 GLib-2.0 Babl-0.1
|
||||
-Gegl_0_1_gir_CFLAGS = $(INCLUDES)
|
||||
-Gegl_0_1_gir_LIBS = libgegl-@GEGL_API_VERSION@.la
|
||||
-Gegl_0_1_gir_FILES = $(introspection_sources)
|
||||
+Gegl_@GEGL_MAJOR_VERSION@_@GEGL_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 GLib-2.0 Babl-0.1
|
||||
+Gegl_@GEGL_MAJOR_VERSION@_@GEGL_MINOR_VERSION@_gir_CFLAGS = $(INCLUDES)
|
||||
+Gegl_@GEGL_MAJOR_VERSION@_@GEGL_MINOR_VERSION@_gir_LIBS = libgegl-@GEGL_API_VERSION@.la
|
||||
+Gegl_@GEGL_MAJOR_VERSION@_@GEGL_MINOR_VERSION@_gir_FILES = $(introspection_sources)
|
||||
INTROSPECTION_GIRS += Gegl-@GEGL_API_VERSION@.gir
|
||||
|
||||
girdir = $(datadir)/gir-1.0
|
||||
--
|
||||
cgit v0.9.1
|
@ -0,0 +1,420 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-9.2_pre20130427.ebuild,v 1.1 2013/04/28 13:47:45 chithanh Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
|
||||
|
||||
if [[ ${PV} = 9999* ]]; then
|
||||
GIT_ECLASS="git-2"
|
||||
EXPERIMENTAL="true"
|
||||
fi
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit base autotools multilib flag-o-matic python-single-r1 toolchain-funcs ${GIT_ECLASS}
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_PN="${PN/m/M}"
|
||||
MY_P="${MY_PN}-${PV/_/-}"
|
||||
MY_SRC_P="${MY_PN}Lib-${PV/_/-}"
|
||||
|
||||
FOLDER="${PV/_rc*/}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="http://mesa3d.sourceforge.net/"
|
||||
|
||||
#SRC_PATCHES="mirror://gentoo/${P}-gentoo-patches-01.tar.bz2"
|
||||
if [[ $PV = 9999* ]]; then
|
||||
SRC_URI="${SRC_PATCHES}"
|
||||
else
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
||||
${SRC_PATCHES}"
|
||||
fi
|
||||
|
||||
# The code is MIT/X11.
|
||||
# GLES[2]/gl[2]{,ext,platform}.h are SGI-B-2.0
|
||||
LICENSE="MIT SGI-B-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
INTEL_CARDS="i915 i965 intel"
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} nouveau vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
bindist +classic debug +egl +gallium gbm gles1 gles2 +llvm +nptl
|
||||
openvg osmesa pax_kernel pic r600-llvm-compiler selinux +shared-glapi vdpau
|
||||
wayland xvmc xa xorg kernel_FreeBSD"
|
||||
|
||||
REQUIRED_USE="
|
||||
llvm? ( gallium )
|
||||
openvg? ( egl gallium )
|
||||
gbm? ( shared-glapi )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
r600-llvm-compiler? ( gallium llvm || ( video_cards_r600 video_cards_radeon ) )
|
||||
wayland? ( egl )
|
||||
xa? ( gallium )
|
||||
xorg? ( gallium )
|
||||
video_cards_intel? ( || ( classic gallium ) )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.44"
|
||||
# keep correct libdrm and dri2proto dep
|
||||
# keep blocks in rdepend for binpkg
|
||||
RDEPEND="
|
||||
!<x11-base/xorg-server-1.7
|
||||
!<=x11-proto/xf86driproto-2.0.3
|
||||
classic? ( app-admin/eselect-mesa )
|
||||
gallium? ( app-admin/eselect-mesa )
|
||||
>=app-admin/eselect-opengl-1.2.7
|
||||
dev-libs/expat
|
||||
gbm? ( virtual/udev )
|
||||
>=x11-libs/libX11-1.3.99.901
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
>=x11-libs/libxcb-1.8.1
|
||||
vdpau? ( >=x11-libs/libvdpau-0.4.1 )
|
||||
wayland? ( >=dev-libs/wayland-1.0.3 )
|
||||
xorg? (
|
||||
x11-base/xorg-server:=
|
||||
x11-libs/libdrm[libkms]
|
||||
)
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.6 )
|
||||
${LIBDRM_DEPSTRING}[video_cards_nouveau?,video_cards_vmware?]
|
||||
"
|
||||
for card in ${INTEL_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
done
|
||||
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
>=sys-devel/llvm-2.9
|
||||
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] )
|
||||
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] )
|
||||
)
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/libxml2[python,${PYTHON_USEDEP}]
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
>=x11-proto/dri2proto-2.6
|
||||
>=x11-proto/glproto-1.4.15-r1
|
||||
>=x11-proto/xextproto-7.0.99.1
|
||||
x11-proto/xf86driproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# It is slow without texrels, if someone wants slow
|
||||
# mesa without texrels +pic use is worth the shot
|
||||
QA_EXECSTACK="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
|
||||
QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
|
||||
|
||||
# Think about: ggi, fbcon, no-X configs
|
||||
|
||||
pkg_setup() {
|
||||
# workaround toc-issue wrt #386545
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
[[ $PV = 9999* ]] && git-2_src_unpack
|
||||
mv "${WORKDIR}"/${PN}-* "${WORKDIR}/${MY_P}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# apply patches
|
||||
if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_SOURCE="${WORKDIR}/patches" \
|
||||
EPATCH_SUFFIX="patch" \
|
||||
epatch
|
||||
fi
|
||||
|
||||
# relax the requirement that r300 must have llvm, bug 380303
|
||||
epatch "${FILESDIR}"/${PN}-8.1-dont-require-llvm-for-r300.patch
|
||||
|
||||
# fix for hardened pax_kernel, bug 240956
|
||||
[[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch
|
||||
|
||||
# Solaris needs some recent POSIX stuff in our case
|
||||
if [[ ${CHOST} == *-solaris* ]] ; then
|
||||
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die
|
||||
fi
|
||||
|
||||
# Tests fail against python-3, bug #407887
|
||||
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die
|
||||
|
||||
base_src_prepare
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
if use classic; then
|
||||
# Configurable DRI drivers
|
||||
driver_enable swrast
|
||||
|
||||
# Intel code
|
||||
driver_enable video_cards_i915 i915
|
||||
driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
driver_enable video_cards_r100 radeon
|
||||
driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
driver_enable video_cards_radeon radeon r200
|
||||
fi
|
||||
fi
|
||||
|
||||
if use egl; then
|
||||
myconf+="
|
||||
--with-egl-platforms=x11$(use wayland && echo ",wayland")$(use gbm && echo ",drm")
|
||||
$(use_enable gallium gallium-egl)
|
||||
"
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
myconf+="
|
||||
$(use_enable llvm gallium-llvm)
|
||||
$(use_enable openvg)
|
||||
$(use_enable r600-llvm-compiler)
|
||||
$(use_enable vdpau)
|
||||
$(use_enable xvmc)
|
||||
"
|
||||
gallium_enable swrast
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if use pax_kernel; then
|
||||
myconf+="
|
||||
$(use_enable x86 glx-rts)
|
||||
"
|
||||
fi
|
||||
|
||||
# build fails with BSD indent, bug #428112
|
||||
use userland_GNU || export INDENT=cat
|
||||
|
||||
econf \
|
||||
--enable-dri \
|
||||
--enable-glx \
|
||||
$(use_enable !bindist texture-float) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable egl) \
|
||||
$(use_enable gbm) \
|
||||
$(use_enable gles1) \
|
||||
$(use_enable gles2) \
|
||||
$(use_enable nptl glx-tls) \
|
||||
$(use_enable osmesa) \
|
||||
$(use_enable !pic asm) \
|
||||
$(use_enable shared-glapi) \
|
||||
$(use_enable xa) \
|
||||
$(use_enable xorg) \
|
||||
--with-dri-drivers=${DRI_DRIVERS} \
|
||||
--with-gallium-drivers=${GALLIUM_DRIVERS} \
|
||||
PYTHON2="${PYTHON}" \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
base_src_install
|
||||
|
||||
find "${ED}" -name '*.la' -exec rm -f {} + || die
|
||||
|
||||
if use !bindist; then
|
||||
dodoc docs/patents.txt
|
||||
fi
|
||||
|
||||
# Install config file for eselect mesa
|
||||
insinto /usr/share/mesa
|
||||
newins "${FILESDIR}/eselect-mesa.conf.8.1" eselect-mesa.conf
|
||||
|
||||
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib
|
||||
# because user can eselect desired GL provider.
|
||||
ebegin "Moving libGL and friends for dynamic switching"
|
||||
local x
|
||||
local gl_dir="/usr/$(get_libdir)/opengl/${OPENGL_DIR}/"
|
||||
dodir ${gl_dir}/{lib,extensions,include/GL}
|
||||
for x in "${ED}"/usr/$(get_libdir)/lib{EGL,GL*,OpenVG}.{la,a,so*}; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
mv -f "${x}" "${ED}${gl_dir}"/lib \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
mv -f "${x}" "${ED}${gl_dir}"/include/GL \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
for x in "${ED}"/usr/include/{EGL,GLES*,VG,KHR}; do
|
||||
if [ -d ${x} ]; then
|
||||
mv -f "${x}" "${ED}${gl_dir}"/include \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
eend $?
|
||||
|
||||
if use classic || use gallium; then
|
||||
ebegin "Moving DRI/Gallium drivers for dynamic switching"
|
||||
local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
|
||||
keepdir /usr/$(get_libdir)/dri
|
||||
dodir /usr/$(get_libdir)/mesa
|
||||
for x in ${gallium_drivers[@]}; do
|
||||
if [ -f "${S}/$(get_libdir)/gallium/${x}" ]; then
|
||||
mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
|
||||
|| die "Failed to move ${x}"
|
||||
insinto "/usr/$(get_libdir)/dri/"
|
||||
if [ -f "${S}/$(get_libdir)/${x}" ]; then
|
||||
insopts -m0755
|
||||
doins "${S}/$(get_libdir)/${x}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
mv -f "${x}" "${x/dri/mesa}" \
|
||||
|| die "Failed to move ${x}"
|
||||
fi
|
||||
done
|
||||
pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
|
||||
ln -s ../mesa/*.so . || die "Creating symlink failed"
|
||||
# remove symlinks to drivers known to eselect
|
||||
for x in ${gallium_drivers[@]}; do
|
||||
if [ -f ${x} -o -L ${x} ]; then
|
||||
rm "${x}" || die "Failed to remove ${x}"
|
||||
fi
|
||||
done
|
||||
popd
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
|
||||
# switch to xorg-x11 and back if necessary, bug #374647 comment 11
|
||||
OLD_IMPLEM="$(eselect opengl show)"
|
||||
if [[ ${OPENGL_DIR}x != ${OLD_IMPLEM}x ]]; then
|
||||
eselect opengl set ${OPENGL_DIR}
|
||||
eselect opengl set ${OLD_IMPLEM}
|
||||
fi
|
||||
|
||||
# Select classic/gallium drivers
|
||||
if use classic || use gallium; then
|
||||
eselect mesa set --auto
|
||||
fi
|
||||
|
||||
# warn about patent encumbered texture-float
|
||||
if use !bindist; then
|
||||
elog "USE=\"bindist\" was not set. Potentially patent encumbered code was"
|
||||
elog "enabled. Please see patents.txt for an explanation."
|
||||
fi
|
||||
|
||||
local using_radeon r_flag
|
||||
for r_flag in ${RADEON_CARDS}; do
|
||||
if use video_cards_${r_flag}; then
|
||||
using_radeon=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ ${using_radeon} = 1 ]] && ! has_version media-libs/libtxc_dxtn; then
|
||||
elog "Note that in order to have full S3TC support, it is necessary to install"
|
||||
elog "media-libs/libtxc_dxtn as well. This may be necessary to get nice"
|
||||
elog "textures in some apps, and some others even require this to run."
|
||||
fi
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag
|
||||
# other args - names of DRI drivers to enable
|
||||
# TODO: avoid code duplication for a more elegant implementation
|
||||
driver_enable() {
|
||||
case $# in
|
||||
# for enabling unconditionally
|
||||
1)
|
||||
DRI_DRIVERS+=",$1"
|
||||
;;
|
||||
*)
|
||||
if use $1; then
|
||||
shift
|
||||
for i in $@; do
|
||||
DRI_DRIVERS+=",${i}"
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
case $# in
|
||||
# for enabling unconditionally
|
||||
1)
|
||||
GALLIUM_DRIVERS+=",$1"
|
||||
;;
|
||||
*)
|
||||
if use $1; then
|
||||
shift
|
||||
for i in $@; do
|
||||
GALLIUM_DRIVERS+=",${i}"
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
From a8fd9ff8062152ccdcec7d63f2d5075f29ee2429 Mon Sep 17 00:00:00 2001
|
||||
From: Ullrich Koethe <ullrich.koethe@iwr.uni-heidelberg.de>
|
||||
Date: Wed, 21 Dec 2011 16:31:56 +0100
|
||||
Subject: [PATCH] adapted regular expressions for doxygen 1.7.6.1
|
||||
|
||||
---
|
||||
docsrc/makeFunctionIndex.py | 4 ++--
|
||||
docsrc/post.py | 6 +++---
|
||||
2 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/docsrc/makeFunctionIndex.py b/docsrc/makeFunctionIndex.py
|
||||
index 55e74bc..06300e2 100644
|
||||
--- a/docsrc/makeFunctionIndex.py
|
||||
+++ b/docsrc/makeFunctionIndex.py
|
||||
@@ -119,8 +119,8 @@ def generateFunctionIndex(functionList):
|
||||
text = open(path + "/namespaces.html").read()
|
||||
if text.find('</h1>') > -1: # up to doxygen 1.7.1
|
||||
header = text[:text.find('</h1>')+5]
|
||||
- else: # for doxygen 1.7.4
|
||||
- header = text[:re.search(r'<div class="title">[^<]*</div>\s*</div>\s*</div>\n<div class="contents">',text).end()]
|
||||
+ else: # for doxygen 1.7.4 to 1.7.6.1
|
||||
+ header = text[:re.search(r'<div class="title">[^<]*</div>\s*</div>\s*</div>(?:<!--header-->)?\n<div class="contents">',text).end()]
|
||||
footer = re.search(r'(?s)(<!-- footer.html -->.*)', text).group(1)
|
||||
|
||||
text = re.sub(r'Namespace List', r'Function Index', header)
|
||||
diff --git a/docsrc/post.py b/docsrc/post.py
|
||||
index a8836d5..fc51f8d 100644
|
||||
--- a/docsrc/post.py
|
||||
+++ b/docsrc/post.py
|
||||
@@ -51,13 +51,13 @@
|
||||
</div>
|
||||
<div class="contents">''')
|
||||
|
||||
-# tested with doxygen 1.7.5.1
|
||||
+# tested with doxygen 1.7.5.1 and 1.7.6.1
|
||||
mainHeading4 = re.compile(r'''(<!-- Generated by Doxygen .+ -->
|
||||
</div>)
|
||||
(<div class="header">
|
||||
<div class="headertitle">
|
||||
)<div class="title">(.*)</div> </div>(.*)()
|
||||
-</div>
|
||||
+</div>(?:<!--header-->)?
|
||||
<div class="contents">''')
|
||||
|
||||
mainHeadingReplacement = '''\\1
|
||||
@@ -149,7 +149,7 @@ def processFile(fileName):
|
||||
f.close()
|
||||
|
||||
files = glob.glob(path + '/*.html') # use given path to files
|
||||
-#files = glob.glob('../doc/vigra/index.html')
|
||||
+#files = glob.glob(path + '/index.html')
|
||||
|
||||
for file in files:
|
||||
processFile(file)
|
||||
--
|
||||
1.8.1.6
|
||||
|
@ -1 +1 @@
|
||||
Sun, 28 Apr 2013 07:06:54 +0000
|
||||
Sun, 28 Apr 2013 17:36:56 +0000
|
||||
|
@ -1 +1 @@
|
||||
Sun, 28 Apr 2013 07:06:54 +0000
|
||||
Sun, 28 Apr 2013 17:36:56 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue