parent
39a37ac7cb
commit
2b438b0e82
@ -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)
|
||||
}
|
@ -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,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
|
||||
}
|
@ -1,31 +1,26 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
Hash: SHA256
|
||||
|
||||
AUX libreport-2.0.13-automake-1.12.patch 2285 SHA256 b4c764e104cf76336661d96228786ce2d347ca6339e44c85a993c3c10fc0a215 SHA512 59a6f857604ab45c049030ab351cef28dc51b78aabd5575ff45abdd607d6b973020f32687666fd11a879e0ee18aca75650fa9e3fa2284a8e05c6b65216479b9f WHIRLPOOL 660303844f839d8d7f494d22f041d4543b502074603183801def34741f7a3e5fddb06a54d0b8372c49e508ca1076b1c81063e36c426134f0903efb642b17cb4c
|
||||
AUX libreport-2.0.13-gentoo.patch 10369 SHA256 7dec2b0708121c5deb5e8036d9ef5ee20aebd9713ee191d701b27920a4ab0f49 SHA512 762e389c62efaeaad08a04871e5dec05aadc26fb9457291bf2308835128241068b2e799585060b3ce4f7bd17f275a4e5c7da37835d4e8940651ea5e5928402f0 WHIRLPOOL 0b253ba384ee40aa60c36564739101e328e326fcf5e3543644ed46b71a89fbb34d8567ce5892a162ba7b26f6bc780514601e6fc32f883f3276c7a1229529ac92
|
||||
AUX libreport-2.0.13-json-c-0.11.patch 1145 SHA256 e47adb08f2c4d844e8ee824f33f6861331773308520e75714fe07b4e9f9126f2 SHA512 fd07c360d599d71fddb6766860203052fb390cde6cb795779e75a2d2a826affd6f03c6977eb99237caffdc41ac9f0e1c600a9414f72629ff5fc2102c70d8ca67 WHIRLPOOL 4b0dab98d5390443296d26c808fb095d45b7977b55073f69556905e4e60d6326b993ef3c031fd6d9b9fb28db40a35bcb765b348624cba04a1a6230ac578bdb2f
|
||||
AUX libreport-2.0.7-uploader_event-syntax.patch 610 SHA256 b93e9e05396b70754fcacf7e7358ccfa4cc995fa3e1a3fbe598c540ae4f0c148 SHA512 b0ae2617a013fd8cb3475e5a51073677f2ea965a57169c760e542474351293e70f70e678a66beeb3b3fa163589aaf7f79f0883fa55ff524e62b5fcd3ae919bf0 WHIRLPOOL 9c0e00a502a216ce47c513f052e1a63b0d57910d8790d180978522f860d980f8f216cf5773830f9ba3b5fdbf8dd7e3f661e41e008398a8d6de5e525a2e95c8d3
|
||||
AUX libreport-2.0.9-gentoo.patch 8795 SHA256 f3d0ee0e1c9f6032ce71d6daa92d8796306d9bfd91a346fb0c874f49368807ea SHA512 308ca2d73deadd351ff188941b37ce4d01c3b9d395038fa58b4bd03bd418659942d4def77c2423976f0113160642e92a9c55e7826e30ed2afe8c47116c7658ce WHIRLPOOL ba7891e9859de7cf8927da24080153c4e1c7f8df8762e27fc9d6d12e5dd5b0e0801511af341739000db41b3c6f39e775edd419ee1bbb0cff8e4e2dd54fd57907
|
||||
AUX libreport-2.0.9-no-bugzilla.patch 2620 SHA256 794b862cdd8d3d946eb80558cd7531f01a18944a2fa11be2fb9f585d397c4f05 SHA512 3d00eaa2aca33295af7331a0ebde312506edce6b8df5efe26ca190e9c431b6d5c6b9055c7dfbd5be923e39315f3b23a766b3ee2e46dea2d379839933467c348f WHIRLPOOL 46d3a99a8880ccbd9247a49903adbfc3e94a127253d5c0267a14da86f8023cae04dea9ef79f9a1ca23a2b02166415097931bf61343729c5386a5dd796f5fcbbd
|
||||
DIST libreport-2.0.10.tar.gz 1204194 SHA256 ab8f2bb2eeb93719b6a946b8a810527cec653815fd59c3fb03efca88e6e80408 SHA512 f9eca6aacb28c856e5bc109545dbd371baf57de4f2431b988dfce0d9d1a1e38269a056a924453bbfaed7c80890ddddbddca086754385a7397e23b6d1b8a17702 WHIRLPOOL 2429cd98c9d897a953956d92a9680fd65ccaf79f89da84c0862356c11acf318a50b41a674ac4de07e020836a2e4efcd38f1d949e2136a2abb854324a2c9a2a5a
|
||||
DIST libreport-2.0.13.tar.gz 1190147 SHA256 4a0609abe80b9432ae81c5a512680a7035b547cd1fef29c63c730d92c1be8b05 SHA512 cfe963db8091b245f8ceb7d8501466f4f9464c28d298faeafc9f6e57deafdfdc6501d468bf5ffd83703adb67bc1e05e06c56b5c0e0028bb2e0134788ddbb2181 WHIRLPOOL 647da27bf88cf77dbb25ace9f446dfe9a875370c27fef05999843dcee1f653ba07af44d4e5a36107dbf69f0241f1f66d3a6a58ae7897faca7b049d2b1aa00301
|
||||
EBUILD libreport-2.0.10.ebuild 3082 SHA256 2e3c64992a0709e7299cd3d7060198760efadaaa936b2f497310c77bb4749c6b SHA512 f0d76b4ab8fb66ea207e0940189ee8afd44d02c88b3007806098a68756e3a5b0a83a356e94a5f678eb0dd74a9c4ed0d0f58f45d950ed84e0e4dbdf216405ee75 WHIRLPOOL 7d43bac6f66fa5d037b0e64d52ef8027478d822143b5a4a0faf95eeb62f5b1c684e49e08905279f06f6f1966a75b7ad0224f7c5ce28d043fc5d7a515b9b22a5d
|
||||
EBUILD libreport-2.0.13.ebuild 2109 SHA256 083eb20cf883256fe47c247be3b4061840198ee0d2f9ee13391367827845ad58 SHA512 c853ec9fb33cd041155428529a24008ded99d7285cfe7d88da8e5f9702d2ad09027003aed1afe4178d4c65836b455bc6003e197e367c3eabe1475e91fe7eea8d WHIRLPOOL 7c717e2ab2acb750be4e86221967dabce3e18e91b386cc0de2f346eddfaaa1bbcda4e58b84fc12a047b2b4fdda94a57ba7417d660c4bab99220e257cdde82658
|
||||
MISC ChangeLog 3040 SHA256 4e52e4555b46447953389229668db5461fcf79b26bef76b835c9aa9737975867 SHA512 b73af1de02d297f83a7202b592a2d19b433951fc81e54f1d6996b5c8512352f3ebfaeeb93a726cb24756b6333ccfde1c41ea2ea1141d9eeda1cc23b228a8f911 WHIRLPOOL 9e748938f3b9cb52e82536bb93fd1d8d5be496ded260d1c2b595d3df61fd208bebf247aecedb8e6ea606aa32a15c5b75f1be9f22f97a923f69c8dd2efeccf9e2
|
||||
EBUILD libreport-2.0.13.ebuild 2228 SHA256 7ad560fdf03a76d36a6188995f470d77b059cd7ee457ee6cc5361985267c2634 SHA512 696a26a6629c71e3bad88304943611fbb2bf0e45d60eb5305400d475ac132dd6c3178e9d1a8ac353cb93403db0e21db5fe54d6eb84c37279e6dd28203f018af8 WHIRLPOOL d316e1b4ac57545bcdd597b4b4fcc1bca63d43546b1bc5f02379bf7613ba4c3a0cea921ae1ee12dddc36b2df02b5d8bd58680d610bd6bb8805f12351e45436c1
|
||||
MISC ChangeLog 3266 SHA256 7c258be6fbdbf6193ac9f222d1e9a689fa4bc61b4f52c103cc4364d871b2815a SHA512 e3db67964a5608d07fba38fe49253204acbddc6b6bfc3d7421f2c2e5528a468a8a59358f4e6a91f0fb5cdd99afab5d634ea11c488f35bc600d1f25191bd2e1bc WHIRLPOOL ae11acdc3a991dab0ef430b29a8f09fc52a7220bbd8e8f9deb7d1ddf878aae4389d2fff51d20d81e127928808ac42ac64f5afb3424e30894157e9b3c3649ee5f
|
||||
MISC metadata.xml 158 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1 SHA512 7fbfbd2b3ed1b81867d55648509f778fdbe2091af53727b3426a3c7f453ae7e1663a99fdd2101508b8d6c85b3158459c93551b77a6a394f02d7e11cbc8a5ecf4 WHIRLPOOL 4bcd5662974877d42ebc4361b6eb412bfeea2af7144b436ce7ed152327d554afc321c376625ba0bb85a704b70d86e3c4882dff3573047acddd8ffccf655d4f7e
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCgAGBQJRUHjyAAoJELp701BxlEWfe0kP/0DrJAXjhjKRIV2F55MPSTzZ
|
||||
Q9alwf3Ex5ayKkMvxik914i0QLh1Rci1tqKODlPhc1ALGYDlICNhFlZnv/sxIfbX
|
||||
d/vdgq2nPLvhtETocHXs/l+NEVDx6V/UEFP1zHcosLsPSW4pkxhNnQ9Hd2xGHGnd
|
||||
V5hQLyuONgaM2ENFHteiyG+K9Cxxc7cH8Wc3cJWPMii/e5rS84z38+FGBVN388/s
|
||||
FidseOdyIeVvrECenl+E0mE8plIw9bKj5uoGssx09d3mzrG6XcszY6we+l6BnUoh
|
||||
ywMClwf59Rle3lQKb8IQBN1l7IsVVpSDe+rC1WbV5ux/Vlz8Yh9xUzoTYh+lJzbx
|
||||
E8djPf7aimYSRlgda+Qv395HDqQJ8vMNL/xulUTegW6+CzhESLXrjnFHjG6yiBe0
|
||||
w+HbvYCwt1snJtoOgRh9iozTGOuNZIRYPUoHmjicMVzW3uLaD1XIhmfEx/+hhIRr
|
||||
Y7vIMykkaURLSDEz3wXwZIawuUN+crxyUs1KRXg0UrsK2CWYh5zlIvdgRNmCMgN9
|
||||
megEfotAhfB2QKgk9sJ9DtONhZtTac84CqtGwDF2jtJ2zNlAzAlrvGwww9nntqvD
|
||||
nuSo/UYsDwNVKc6KXUtUMxsWrhhcWtTaThHf58EB4brX8feDU0q2+Zyu7PG0/rxH
|
||||
BOXpmBUIwDt51UCNvr8o
|
||||
=6Bcq
|
||||
iQEcBAEBCAAGBQJRfTR2AAoJEJ0WA1zPCt1hj1sH/1WsV7bdp9UVrrK+f1bP3oPD
|
||||
xASVe2soLtLs8jayLxJJdOc8emytTmc7p7em/vAMSwFVfduiZOvAcbYKP6qMP1TM
|
||||
h0vnaowjuCJLoLJJaAUZn/NWLQ6+xQPfn7dGEZ4Vy39ZrQnuaY/Iu027WL9f9KS2
|
||||
Vob7/J1K1d3pOtqlsHXaHZXyPbRoBiqmH9FrOUd1nFoED7R4KHjYylv9+G42Y5SD
|
||||
9voPy9pceuuVtRt1unbFf4xvUQ8bzMTQUfAeAOjJtQrXZx4I+CrU6gHBpeBu014X
|
||||
B/h8z7gtu3t9deVVgqmNig6u/xKN5kTYOKhYJ2gdQVnTjEHCfs3VPZN7PkG0t5w=
|
||||
=hna+
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -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,34 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
Hash: SHA256
|
||||
|
||||
AUX disable_rtf_gen_doxy.patch 446 SHA256 19742ff3a149ca50d7397f9ffafc5c70fb332837e2eae81b914e47cf9e8b1f20 SHA512 fe4168b313b5eca78fe8787b758c789c4b91df8355e380acd71c32735ad5c6984a3d6c06747e0215326870eba05d38ca015c88e5ca4166f42b3213ecfb1ad793 WHIRLPOOL 3bb313489028b0e0098e6338fa563327ecfd0cdd3f3e0e410d0c07d532ffe0572e742e4e81b4a9e8e94730211a0b3c4bd473302700f6cb78cd93a5998076796f
|
||||
AUX gcrypt_autotools.patch 1843 SHA256 9c449f270645e4809ea629533529e60297fd408606a126e4063d0685d6ed1a7d SHA512 019cbd580b7da5097a8de595fce2585cb9c84636260452ad8f03d03f8ce5b157a655f21724799689a94cc8eef70c1e0445aca5f458a659c301eaeb490f86aa83 WHIRLPOOL 1817daa10642c183dc30872368e20494dac5ef7c794584940b9074a788e1576c69abb2805c3eda80a3af7603ef64cc1ce615e7a675057d598839d21e3852cb41
|
||||
AUX install_gcrypt.m4_file.patch 4970 SHA256 9a161813addb5be01b411539a65fc0c2848fa109624986b81be861f8b044df6c SHA512 03039a04a8fafe4b23e74efc89ee1391caf0c4172ff3f2176cb47fea3777061382e756b81c01d1413cdbf5d7715c85194842ff7e17d1b679e2db4ac5de14d683 WHIRLPOOL 4db79a5ac8086cca33c88b902a1bc91cbd9bbaed66138761779d72455b4233751469ce268d6f9b4fd7855723af9a13ed4b3152c641cdb8ea6d3e822f079a53d1
|
||||
AUX ucommon-5.2.2-address.patch 1289 SHA256 1185931d42376bf3b980eff21a255b4a1bad5f61a97bf9129711afbbecbbd8ad SHA512 22950b7c5adc3af05e21e8324dd46665ac197f1de4c988fd2b28096d3bd18f00c5e4ab275e02571251607bdd3661caae950a2397e253293b62097e9cfce8847c WHIRLPOOL 73c616b7dc99074c95241a50bd2a0aa63d0322412588674431988004a27372c0df25df7a69a96d0fcc08bcc29c96b550097c08c717f143425d912bc750e357c8
|
||||
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
|
||||
EBUILD ucommon-5.2.2-r3.ebuild 1382 SHA256 4c335d815c0c6306497d489fe8426d79ec090561457d4c2d9ea2f3a65cdf71aa SHA512 78361e73d8f17b4981bfd2431720d974e1ff186d16d387cb01557301d06dfb036a20388aebd10bf03711212e1686a2abdd0c76cb0dd3fa6843c7f30eccd4f8b0 WHIRLPOOL 433211d6cb3b7ad1441c2a92ee722c897bfc28c01881a15c480b106381087000d6e4e51f2c654fef7fde88ffd62a5bd333c2de421948a3ebc94a7e42dcb73f1f
|
||||
EBUILD ucommon-5.5.0.ebuild 1491 SHA256 d6d24324b81cebf2fa5bc881067278b80677c013e8a441a967974578a52bad6a SHA512 1eeb5b3c946bc7c17107be70a3ee31845625f244ac2af914eea11e877e991e3229d14c24505afcd85ab66e39993fb0acd02a39bb2068497c27411ec4ede0a65c WHIRLPOOL b5341c708badf228ca32a788fcfe346aa069b44a73557e60f2db3a1316471006853c542447c71d3904dd5c1c054df4af3d89342293be0a07b13d3feae43f64c4
|
||||
EBUILD ucommon-6.0.0.ebuild 1491 SHA256 b7871fa1fd38e46ecf24b439532b7a1b8d6e7e0f86119d46bf3cd16c875beb6a SHA512 b0fd10aa67e0a4c5f3229f40d0125d9a993e9996bbc3f542e8c6b3869abcb9b981467cddd4cdeac517848400ccbb0549329660d80bbfd848baa076ada087e947 WHIRLPOOL cf8d38174b3f7d1fbd021b44dae6bc15ddac607c9da25fe9d312b4b205e1133f2f95990e75027d0caf297d323e0e442a100afd1f38a08084177f44677cff36a0
|
||||
EBUILD ucommon-6.0.3.ebuild 1483 SHA256 71cc415e87604af5c999405496816d94511685fa0b8598d39618f0c262ead5d5 SHA512 df6564474285ec1ff6035c702c2368592241d21ac0ee7c30b90c7ac16f3a1be71aa76d1de47160a376a3a58fe2f82546c783e8c914f4064227d1081459e79208 WHIRLPOOL e7f420c75c45085f8761e37fd54147796557c380991950d1375244369ca06ef5559fcf9f97001bbe54f423c4f3e99f89efef00aba6fad6e36e22280a217c1032
|
||||
MISC ChangeLog 2946 SHA256 71450c0f35781457b603af32054a1002338f4559aea8a92c925c10f206ac6460 SHA512 f8d3db215b3d3ca36e936794ee2b366d38a552c247556920d6cd5d5a7bea671b0229740110d4114a72926a0ec0ec20b538eb133a0bda4041c7ee2e7527fce397 WHIRLPOOL bd26a8cbc342dacf2f45203d516fd49240a2c4f483a1df08ac21ab39a34939dd5c9a4dab6130708f084753605a7ab80c1f6a4272c38fd8fc0e5f75bb92d10f4e
|
||||
EBUILD ucommon-6.0.3.ebuild 1619 SHA256 ffa2d55a0f1e241a7a1927b31511a256d2391c1843439007646a2bdff5ec2041 SHA512 1b729a606f880139c730266b64597c5dcd1c40cdb16b87bb8817f21ab16eba387c1d3333285a4ec9c48b73df1a81d95d71283d3828e957c70ccda915333230e2 WHIRLPOOL 2f6a49dae570879289390a1e2d714081a2131fd49ddc8f78b7ba9cfdf7d988a02b21000c9e317715eb25d8d035e101f12d3ee48987f11978726a3f633e2c69fd
|
||||
MISC ChangeLog 3149 SHA256 bf4357290d91f4da179e1c254ebe4de37111e4e9431a05930f5b733c4ab68cd1 SHA512 40d3f30b17565d26b34c6969545745b2c605d7f6697a26aeac34a132102f643d31b5faf7f02bc8cf05bd93187c7b626f515859c8abdfa33ffaa7a3d23d52bebe WHIRLPOOL c421e5cee9048f4afd63eb19eeedaa469a15d2600ea4444589db85c1a5ddace182eecee50730afd9dc8fcbfe6f65302703d6117b132151e18393f43eb6d6ef6b
|
||||
MISC metadata.xml 438 SHA256 a8ececfa37303e2e3822d69cacd23567fb9813b6fb0f319b08b6676808a26484 SHA512 c39973823d63c3506f0f572f4187aa000fa57dca64d96d3d5f5baf9b0e00bed2f1cc6fd116fff8e802b71bdfefbf527d6bf99051ad23136d9b6f91be6db55451 WHIRLPOOL 24719f9882adcf8bed378d899117a817b678f6b79623db49b9a833bc85cadb240f31ff61c0fc798772e7395ec9b3df9dfeeb27a7c47cde7a91a34a883e95a050
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCgAGBQJRLJWFAAoJELp701BxlEWfB60P/jqdCfiEzqlcK3F8j4uKJvUN
|
||||
0yDdDP8hS/JuY0nd+ZllNScmXPF3IRWS/9DOVDe29IWBQB4tj4U2NrbFoPM/UFE+
|
||||
B2zq7qzgkE/aGhjxCBwxl72FvEkwduArYo+xPC3MIT03paISLWkI1XVbCb+ElU5Y
|
||||
gWWAcfSWmuCpmu+d7N7q4O+xtStYaiJTAi5puCIRDR42VOKiRnZVxC1cE2t32/+S
|
||||
ChNkLgZtzMuKJvN3Jkg60KKwp6eNqg8s5L6VWT4g4QCCveIbzIBK9ECN5GsKV4YV
|
||||
DYjvW9fq7LXsqg6cSlwjR29DDmDK8B9mmT9f47osoJBHFqnxqEvhdkFsanwWJxQb
|
||||
CYGX+H6mdFN4vrBvCnHnrYXW8PyPJzk6CU+z2SmGw6Ap5sezHclgCNbGRstNK6Qa
|
||||
jsfbtGVHWgdPD5oS6t6CYVz3IXbqbhMPVY4xeJZrJVAb8L7pZl0uPBmrxmHAs2tD
|
||||
/NrgdB59fo+57eovuSQPE1eoe/4XrSWdASfjiQcrCdvdDKTiDF5TqmZTLWOloJnz
|
||||
IV9T1C7yyU2SbCeEMsws3P8hFQGkIiNq8UKGInns4QoVG1l4rhyXGUynHt9LuXPV
|
||||
f0faeNuI6Mp0iKc80O8K4vCCdZ2L5XqJcPi+4/ka1xLLSIx4Eu+HNgghfhi4GWfl
|
||||
k1X9nCrhHt4EnEHXd0Pr
|
||||
=eWCs
|
||||
iQEcBAEBCAAGBQJRfMydAAoJEAmJmMX429reTzEIAIvY2QELEotcDEAY7Jai2NZY
|
||||
DaDM7llTSVDnHPzq1BkpSFr/lKgjyzDaz2Vp62DQ1pmizWFCeyfWh9rKrDrq19n+
|
||||
fXRoerxYd/UsspPXy6vuqgJEdDuO3xUgyv5t+ppvMJsVLOag1R3JdUQXyO3ksQ0V
|
||||
CneUdL+WT1SX/UDYG7WaRPl3QShTk8yC47dM1/CfEwhSSkzI9Lbn3O6of9RkZ7on
|
||||
DJBaoiZJcdo9un5gUGmmBCznRJu0OVWF1m82ZbNPnyRU6k1UjkevBDgovhqP+LKK
|
||||
N9fRuPhl1aP7RS3KyW2uSU+fI2lkhwmHeRk65ZRh+SR+GXFIXcU4fUb44VNlJEU=
|
||||
=WyY7
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -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
|
||||
}
|
@ -1,5 +1,27 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX jinja-2.6-python3.3.patch 2923 SHA256 ea056a4d046fb61e6f6de5a1e15d96cc64e00257e128535e68878ff265b8293a SHA512 27a5dade64e555eaefe30512a5cf3ff09bbafc83ea05d051a9a1835a7122988c5d6e93a44d50a0c4d9eaf5eb339d6dc5cf97b239f2b521b83f6609be1257f63c WHIRLPOOL df8d052bbfc24636ee2969e5dbc8e7724f2ff8c2460a003a5dd2cab188f48a3d3631ce65c357891ff2f010f81dd683c7803fd3751797e240d3da28b8c990a5ed
|
||||
DIST Jinja2-2.6.tar.gz 389741 SHA256 a85e185375db75c109f99ecde3d55415f035e7068a82252cf4f16c667ac38f49 SHA512 6603bd6a7e4956433746da15b18b1206b67c901262337aab8352ddff154efca9eb6d652c244c63e8ffad492d204c724db3e86222ae371e75e3f5f2011244554e WHIRLPOOL d6d27867a6d4d9f82e956d5d116faae4adfb5f1fea4ecc067fec61d67eca0d16ee6dc80d8585f34a49a89a2da18c65395a4d615b5723241866ff27e3362f915f
|
||||
EBUILD jinja-2.6-r1.ebuild 1834 SHA256 6cc0b89c803fb4733a40953667dce8cec445963dc46dd813f4bce341a475d9bd SHA512 dc21f64353a3615fb866a4d9e40223b5f85d492def513a310a8e63e7699b67d06c66db0ffe52b40e8d602d9b4f71fa704e37cfd995b2b2b7601e9f3c737f0e14 WHIRLPOOL 37b95f984eaa5254278cb48073233e31caa14ed6a501b8e83e1df016df1e7e441db529b16d8f829e39e65938364d37180c896e30167582c38f0a5b812df81eca
|
||||
EBUILD jinja-2.6-r2.ebuild 1913 SHA256 f849c6169b0addc9f80088a25be63210547524b9757c3c8f4c4a3ef55976f127 SHA512 0faaf37cafbbed355ec8fac75268cf2d1ee4231b44fb3f94ec5522431a06001adc11405657e853682c16a2b8c69db6eb23df2c70c8b3bc8ead36c3d2ff0f2d45 WHIRLPOOL e7c0d426fbe9c48804a0d567add1986f6d69e2e6cc008bd3be96ad7a6aa79d2a328a976576ed0d77e4065be43a00601ef454086e8fdfea90d6c724f93b8b022b
|
||||
EBUILD jinja-2.6.ebuild 1885 SHA256 ca7229d425db7195fdb936ce819b014664de41a9847face956612288e0e6a9e1 SHA512 88d8513f5132d5877704db80d320b3cf1210b56118d2bca034aa6cb4a5135fdd330cafc3439f357746c721af49d2368c095d6501e63ef14525fab0fc97034e6c WHIRLPOOL f5eb57b60bcc43905da22da49f58aaa6c4f6a23e00322281149d63588ef1d8430bad8b2364b510efa0cee760450d0855464a0a409d8e34b4e2657cb9a49b55c7
|
||||
MISC ChangeLog 12665 SHA256 327de588b1f5801934f0129ee9acc5e88b0be33f3658dfb0ebdbd51912a637bd SHA512 bd81f55ec8b7450d14c4ca63ceeb9c8b3bd1c361d2eb378abc1e261efaaded9750fc99fc22a0a42f3258b5be9ae00eb4ea93c074165edb4371e4612cda10a0b2 WHIRLPOOL 1412400ff9b12eec7187f7537fe0dad97b8b6ad913bcaa0ee23d1f9876d73c70094ab5a5be79def677c7aca7f9c49a07f58f2f525c7caa507644391e94ba7f1f
|
||||
MISC ChangeLog 12888 SHA256 619eb331b17ccb68690366e580335d4f178510b2499d485bf5285f5dd95e53e6 SHA512 f3d820b8d8b2581a75367524a0da9204a3823b7df6d6b08359dc583cd4c5bdd07cb2f812b2b5a0a8a60b6c3f7b194ec297ecf90536ec823ee37c6383f97f2301 WHIRLPOOL 71539b28eb91287b516b6e0e96d26a8f8f24501efe6583b5bb17f5d2deb81ab6e0de64533d65a1c04da2d7db9b7b28c9ed41fc73ddce9e938401d91686169ef2
|
||||
MISC metadata.xml 260 SHA256 bda84a3528019ac7c58b2435d70ad4a5f5c5fa29f0f8643569b4710081c2e555 SHA512 ac8108e6022705d5954c6ea7e504f0fb9dfd618c22d126ea6d22d181f6784dbd504ed705dc995cbd6c444067d43f46acb1cda58481b1c5459e4f9df7f260a81b WHIRLPOOL f6d4bb49f06a00d8ecc5d2e28ebdb80dee4dca9a77ce5d1926b45386301a2c267c943c991375ffdcde1473a8e30073803512a9e2f091e318fe6401d039c4c696
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJRfUrrAAoJEHy/RO9cNQiDKCYP/3SM2iyRyGLu6xEX+8i9ELZc
|
||||
YvYEIT1UAK7bGF+twmgrx3kF7sufxo1PeFfX3vM+RkYcq9PD4Tpx47lhpOGMOttu
|
||||
Iz3K9Wzi7OsUETE7RSdsEct94hNO9NG1YRwNqslcnp2U4oHZqQyPB/87ZYdUTEFB
|
||||
yQs2Ua7z3lGNIqYW8LHSE/awhCrLQ5CW/ZW37lvfAwnECqnp6lcyIWxuFW5jWi9F
|
||||
ZsdTi9RiB/ReN6osfGQyPGOPIW1IF8MrOdBYwVU77AUJz6kN40ZZezKfgvQVuFV+
|
||||
t7ewvLBNvy9brPEdTcyIchjb+ZFMS+EpOFXk9cEF6/pW95aKVs0MhMtWBPoWZB1F
|
||||
lF6TkAG2BKcIJzS1TeDOGegYxQHJmuE34q4H3bA3SIinPLQ8+tC6730ze9sKUWc8
|
||||
k6zpqjCBvYWgFbNHc58xotmKOb6cnfsl4ygTQFbsq2EYFOrmfiTxua3wuUhU0m9W
|
||||
EoZ89EZOsNOBSbP6DNMBGofd4GiucQD3lSyG8yHDK3C++ONAOLIHkv5jomnWzHDE
|
||||
jUVvmeHOwOrJ47ORcvfRGJIjG8ZTFv56gKl0vmfRHblxY0t7cDEN0fF+SLbDPK8n
|
||||
j5asprbrsRBi48C6OytkOKTXd/qSgkj7S4YUhu/Z7AvEuCotjZdgAivnQi7nLVCz
|
||||
B3oB7odyf80bDCqc9f2r
|
||||
=KzZh
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -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,26 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST numexpr-2.0.1.tar.gz 68549 SHA256 29492a08d5137c9a3a369527a899680ef7c1908cd4851ad2827b6c1d3767b092 SHA512 4d1ee18981e7d75165d0dad6060371dc9aa1b7bcd561708105da03983920b715b25d9d7c24c595809e20917e37cd387ec293d37ede62cf0e213f8170ed1d9970 WHIRLPOOL 0b0eb3bc60d3d792579abd046f6b8752a356d71b21bea760948713301d1790e095f85dc420341ca9f03322ec273ce98cf92302fff5732c0504f5083025274e26
|
||||
EBUILD numexpr-2.0.1.ebuild 1261 SHA256 729a6a8e49f4e0824a27fd88823c824984bf79ad9cf1fc67bb8eca32239a3699 SHA512 a86608ac42c05e4f88358395ea1141b88b536edaf9139d0cd47e244419599ffb479f741f52f179996c1e7919b875c3942376faf5a4fe9bcd78649c13a4e17398 WHIRLPOOL 6261c94df48c60e70fd5095fd1f58fd59edd66c2e131564d62abd67672e4e903914f783f72428b7604ea53bff1294b57fb2a3dcc3b52ded095627e76b4df9ae1
|
||||
MISC ChangeLog 1678 SHA256 5bc078c0f6548a3cfac58a5e1b5a9a45bbb843fdf9b6c55a4e8d9e35e68df2ef SHA512 d80e9d16462dfc96532141d4dba07d952c2098fbb7ed250a184f8088af1939d14d79e280f3314abd1121669af1c6fb3a3eff0f9c3cad9d2b0d45334d256ddcef WHIRLPOOL e75c198cce9abf2291b2db9413cd4a96c88a536fbd69c0994f685c866e0447d55193e50dc8b3e8a8373f0b42071ee6da86128dfe3e706e9ebf654b4fa436d0d0
|
||||
DIST numexpr-2.1.tar.gz 73944 SHA256 39f2fed7f1b8125c0f2df3af454c97e5dfa636ce487ad7921025815e24c17df8 SHA512 bca4c73441b3265c60d3682b47b9a94cd9a4669b8bde284c7043dccd97177cc829e8e2e50daf99e5c8bcee7565800670319c999914f3846af15f03fc2974cbea WHIRLPOOL 7f906e2a75f888a020db95a312eb9d2592c3046fde51e25b83f716199e631c484efd570b7f7c6fc40e7dd7fb78f83ea3a35a23c88be67783c3c97a1de3539fbb
|
||||
EBUILD numexpr-2.1.ebuild 1284 SHA256 935f140040702b83ee113297dad55884f1a8dcc5b7219d53185376a06c9f6c05 SHA512 66300afda6af2a004bf710d0c7c815261d286da79f398d2a47bc87ee053605689b182022a15346ca93a54013d9c263b537941a91e0dca2def1ad85ea5b460d48 WHIRLPOOL 6ee52ef76ac248ea0b30fabe5ccd1ef5f4253f18bc71c0823203e039a71baa34668272297c80f518edc53de4684835f00d7113ba6360ef870f824b022e4982d9
|
||||
MISC ChangeLog 1859 SHA256 8b51d97c5e792ae82adea0a426f134e6c6a1c8e0b5c3e15d93b647554fb33c64 SHA512 8e38a6de55400d9809b1ab6f0cad19f8034cbf40be2bbe1df2865b9a52c5a2cf9538cbd8622f2bb185a3da744879cb9dc3896faac46d42eb8f001bb8096735e1 WHIRLPOOL 0ec7a186fbec206e923d9cd5e3461f3a312673317f946387ef7ce852836e003481bb6d40eb694270127988ced063b523f27e984e9975ce8c7faf66d7735fc98f
|
||||
MISC metadata.xml 879 SHA256 9bb44ce2e541a717d38e29bb689c7bc57e0d65594bde4aec7d1fead3aa8e6346 SHA512 4c42b9b40f4254c19d5773ed935729b68a67efc98556168b6d7b349f90a7295379d7bc040aaa01257a451b7e4e7985fc1eb5d26a67e8762abde91297408a001e WHIRLPOOL 5480e53ba9b36d798ec7ba85985ecddf898a9343bff3a44974c4a976efeb44adbfd05443413257085813c81a0ca1fd408d753614b05bdff06d77a4e3dbe2424c
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQJ8BAEBCABmBQJRRegsXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
|
||||
OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88EPsP/2oUQrn5vaC7nKPu8FlVUnEa
|
||||
Qo2IXtCa8cn6GmvWR+XV/lJcWMmEBBhQaS9PP3S/h24lQI2HrYLpV/tj9n9ZGhmz
|
||||
TLFaAeIqa7MoOa1S6o1GxeWyeUfJgWnYKQggx03GMYUrrSYwtM0F/e2UQyS/IYSz
|
||||
knXmTLmdYoINkmF3htW5IlF79kd9sIw3/dktiFyonr+hMGbOruNNgTAWU8j+VT7n
|
||||
ZYLsDdpqeSidUhb/G8p0Fzolp15OKjk7X2CSav9EmCAJpIrU212VQEyMdfBr431O
|
||||
+OZnZP3Wls/3WnGjv9NvBHolJYbcilEPmMiDRSLAc0hHJ+i2p9FPaGDorp1UPlaj
|
||||
VU+fnKIErELNHyCbVOkQLBaWYUGLuBFZrqemqaImaQm9XLnZkgyyGHwM0+jFd5jx
|
||||
224TIy0d6uUxg3gJOf1H3xJEcFbUNWFktACRe38LNM0fplLIB8kM4MvXKzVPX1aj
|
||||
ksmisqoSYrXZHoDbdlzz7D3M8Ip/xxquPtV/wjhdpmnjcYMO0kmjxk4hvY+c8UYk
|
||||
ntbCwtYl5fFYO2W7HfiVKVQEL5LMvOCCSkNENLvEZQiGMlSafp9lZYbmoxFlsZpC
|
||||
5m3ftXVwu/OmHBIkkL14lzzjsvGQq33tGxVLWaRlvLVVSYbvQ/v5t5O9XVcB0cTr
|
||||
H2y5XOQ06pJFZLLPjyan
|
||||
=rUeo
|
||||
iQIcBAEBCAAGBQJRfQbHAAoJEF0huFKJUZL5hWcP/ibfx15td5nTaUVViOEd/sqV
|
||||
JMlfPEjK97zrFN8IhUvR4Rmcoppyq52OYsrKd1yhuod2TPXAUNP3GZDW1NIx9aOV
|
||||
iNCSEI7y6uB8IAsmQ7PErstt5kSfNqTaNBR6+1vlvspcGclu9F0s8xfqjhRLRoic
|
||||
bCofAnGldoLgmcYHtyBZ9WWPuIMUuYd765+1Ry14t5VXGyXkjJmr6emJXPXoAUoh
|
||||
/QayYAaohKIjBCD2ZDSIszMaF3VrKDsjG4Jet2fQd3Vl1qYn1pT8kzOO8gh4ltj5
|
||||
n4Sc56NWhpo50B9pwiirMu3rjmP0s2pFGn/AMG/HxOfvswZsmEpZpwvVsKH+Fx1o
|
||||
rlEdmheu+pvCMDBJruM/B2KyANu1xLESLWyfs6zBhYneft5JU0JvnwrUupFswCv0
|
||||
wypSvFRGg8ewbOb7OQe3MA8kZJWDA4NkrLLIPPYTylaADbdxodiZMgHsio37bNL5
|
||||
+10m5QtTtU2FPCwBtbb4XG8aYOylYDvTgU1LlpsYsZ9kzAWhRJU9NM9V72yU37N5
|
||||
SXquOZcFknW2RylAQKsramynj5CB284NeptGGRV/7wbhqv3ZLAUOVpGa3xCxjGZ4
|
||||
EXAag4b0PK58BSxWK5sXIzHBzlBIq1Vyt/NmjcXKrg/+aLzwY1F7MZDjp1TxeJZW
|
||||
V2yBuZwQy5hsWnLT10aJ
|
||||
=4KOa
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -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,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,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
EBUILD mpv-9999.ebuild 7578 SHA256 8c8afd20dee7ef9430a92b5234fccc6e9383a2d4321f51c0375f9ea833c1b133 SHA512 ed737f7325e6a3167e0dc24b3f1491a74a68850d5f870e559404391ad37bc4913f3ce0deb21f9b04ee3b67775cef58db3ebff0193f79b928354bd26789ed546c WHIRLPOOL d611c2dbd0fe677eca1438530efa89d18c6d97ca8d36a9780d7a845f94df56d3f601acfaf7f444051d97ee7b3f7ed7a970d30426959a4c85b0738f079cfd271e
|
||||
MISC ChangeLog 694 SHA256 27ef054407a407b804b8ddbc6ecb4b79fc251ee6f0f57ec3e6658ce8387bdccd SHA512 2bf74ec2d39480999007c11847d809214b612c9606ec7a548c0488d134920ddcecf01184bfc7fc4e9087700446cee8cf73ac1684aa261493cc7e597ae4745b09 WHIRLPOOL 4366700f6b600f4ffed553958ddec0b6d0c00aee29e55ecd7ca2ae5bf93d866bcc6331a740a9842735841ea960c9ce6c4b8df2349132e9d4fa068415fe917e63
|
||||
EBUILD mpv-9999.ebuild 7710 SHA256 384e4e7b01bd78cacd559552ddf10cc9c60f7167ca4d95c74d0663be038d525d SHA512 e1bebacff28e6b914758ad0b0cfd69bce7381b2ac8278797ea41dbe8f0fe2346eb20018efc8724f9cb722b10efd0c3bce51ebeb2f686dfcc02bf94b298919017 WHIRLPOOL 3c055f664bd3ac539cb3fefd07248c8b2007440315e8b944daa71ce228a6c0702a4146457365226d6b76b48965541f61c24671b6372c7103c0bee58ec6655d31
|
||||
MISC ChangeLog 822 SHA256 9a63bd36006d23604e9ff5c1a93bc6079389492ee4c1531db10c8c96a0798f4a SHA512 d4a85a8dd64aa87547742258c4bbacff81aeea0b242265f438a4b7333a45cff58846b47addfff1e9754a267977aa6556aecab1a26ea6e01f8af709cb64534cfd WHIRLPOOL f82141fcb1c42e3b376cfbd543387d7fd3ec72c9bf1eea848b9cde1f76ecbcec6dfb59aa739d494fe8f377929cc1ee197eee187173b7f70522995df80109ea49
|
||||
MISC metadata.xml 1270 SHA256 7b7a247933e1e83c76902cabed57625c61781d528b098c30918a952c12b25f76 SHA512 31329829392854d79f701a59cce3eafa36a15869df786ce9f4897d14e37dd40c0af2788717ffa446cdaff0c200322c29954fc5a48cb67bc73726fe1c9db437b1 WHIRLPOOL 7bf76e61f9dde30ccd7a5317829e413ab8c8d00697a93669f0ee0d0a9c9912ab2fb59e12b2881c7225d17f7977c2d3d4735f0bc3bcfc37d64e289c627e9311cc
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJRfB+mAAoJEOSiRoyO7jvozVIP/3sFcM6kWgzJwTD9Yw/ShG8V
|
||||
Qg8vlWA0M5YzNWdAtuYB3n6R4DFgDDVZgDSegr+soO54Cf1qWJJXNAppTJV6gk6u
|
||||
7lyON9JJcNOTydc6UGnwc/brww6Euq6ZbQIsjCbw4tLdvzDVHgZpZyuXvEJ2ckCt
|
||||
NnFGdOKKOZ51c01MSEw3vjTv8BGdhBzyuD4c7JSHVKUbGsWtEvwgHyuEnJxpAbCG
|
||||
aYIsogTYlEB1wQoxPatKQ9IOQSbwYjART0fH7pA3cYyYyp6TVf+yjI7MIqzpF/ml
|
||||
e4hBkNA4vVw8+mYyx8jRuK8NFAPDUBfQjQ4w+aKXDfXJ1qpkTjoWp/Iz+L/t6lOa
|
||||
vAtyK+NTLx8tsHPDCZpLRYKmrhAWy4U79hf556HHPOq6xh5ja0yHNfQ4ngHV9q7X
|
||||
1lIJjt27x3otpuMtiYRYl9HB+rOKGk+TPP/QTZ4yDR/SUz1KI83YWY4V9qkNbiiA
|
||||
OqUwJn84yvJ6Nud1byZ1N85+slemr6tRRQw637gSXQw9uGfMLmU47ReCvhpX3ORS
|
||||
tC/cYfJsbqklp0YTKHOonJCoZKKmZcPkaKT3UOU2y1oK58QL/PS2Pc9eRhJsrkOA
|
||||
c0cEpSBfv0T9dJQZq3f+0YikdTrKfNK0pDi+K8yVwqDZyd5lMQ4q+xo517nGum9q
|
||||
ZiiMICoSqTzESudZbZ0R
|
||||
=gCy9
|
||||
iQIcBAEBCAAGBQJRfNjXAAoJEOSiRoyO7jvo8m4P/3edJCjCzRLfUilezlu5svqK
|
||||
i42prUWGQU4bFtHK3zQ300JQ+9EpRe70cs0PW4a9zlyopDXTI5IxHDiuLZWAzKaH
|
||||
CzuTRJa62c+cxIO59xbUgUj8Vt+Q7nxygC3EE5EOtO7DqOuBbt9mbRit6xywe5ls
|
||||
8K1z9T5hTTII4RGqrJzj8I0CsT7tRGLKgfYmSTXHBk/oQ3hl2dyALEbem+OWqc/+
|
||||
BzQ9WsL+vO/Vos1nQZNQy04/YZ5BQZFqYs0K99ej6rGpNNPPPvkT7mEet8miieNB
|
||||
gCRlih6r/XasZkcJdjHy8K8Em87n1k3zTW4dRrmd1FW9xAw9uY3iJSplI8gjhr4x
|
||||
ZLinsAiME5A9SdrTnCv7X9yK7WfrYOJCzT+vcs9WORLmchtPgdt1ZViic6M4HWjq
|
||||
wPfpyrEt8g+ZbruhMcxB0ESbaHC1nDXmu3YCZk5+t2alInYrg5UJqOI28raNmqDB
|
||||
iSxG9uRm0Tp8XnsJOLJMEyECp44AUO0LbMLytq3/VJ0HlrxO7enppzRy2bgFfexs
|
||||
N5gEe4rfEBTStSKjPwQTCqqcd5VWf+zIKGgAxUl9U4G+WOatbx0OOXGkaazrH3fK
|
||||
BeaAZryQwuDdMqKu61Ri/g9Dd0lwAppLTNhpftT/VZWBsahph1omHG+ch9hMH06g
|
||||
XTkKtQ3+YNfIH7F1rNV2
|
||||
=uI+S
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue