LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="doc gtk static-libs test"
+IUSE="address-standardizer doc gtk static-libs mapbox test topology"
RDEPEND="
${POSTGRES_DEP}
dev-libs/json-c:=
dev-libs/libxml2:2
- >=sci-libs/geos-3.4.2
+ >=sci-libs/geos-3.5.0
>=sci-libs/proj-4.6.0
- >=sci-libs/gdal-1.10.0:=
+ >=sci-libs/gdal-1.10.0
+ address-standardizer? ( dev-libs/libpcre )
gtk? ( x11-libs/gtk+:2 )
+ mapbox? ( dev-libs/protobuf )
"
DEPEND="${RDEPEND}
# Needs a running psql instance, doesn't work out of the box
RESTRICT="test"
-MAKEOPTS+=' -j1'
-
src_prepare() {
source "${S}"/Version.config
export PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
# *FLAGS settings.
export QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
+ eapply "${FILESDIR}/${PN}-2.2.0-arflags.patch"
eapply_user
local AT_M4DIR="macros"
src_configure() {
local myargs=""
- use gtk && myargs+=" --with-gui"
+
+ use gtk && myargs+=" --with-gui"
+
+ use address-standardizer || myargs+=" --without-address-standardizer"
+ use mapbox || myargs+=" --without-protobuf"
+ use topology || myargs+=" --without-topology"
+
postgres-multi_foreach econf ${myargs}
}