diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-29 00:49:16 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-12-29 01:20:03 +0100 |
commit | 0452eff68c3a95f0e22a604ced402b9bacafc3e6 (patch) | |
tree | 3e014481689d96ba1a0aea2385832f01cd958860 /sci-libs | |
parent | sci-libs/libgeotiff: Add missing slot ops (diff) | |
download | gentoo-0452eff68c3a95f0e22a604ced402b9bacafc3e6.tar.gz gentoo-0452eff68c3a95f0e22a604ced402b9bacafc3e6.tar.bz2 gentoo-0452eff68c3a95f0e22a604ced402b9bacafc3e6.zip |
sci-libs/ogdi: Restrict to <PROJ-6, EAPI-7 bump
Closes: https://bugs.gentoo.org/686086
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/ogdi/ogdi-3.2.0-r1.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sci-libs/ogdi/ogdi-3.2.0-r1.ebuild b/sci-libs/ogdi/ogdi-3.2.0-r1.ebuild new file mode 100644 index 000000000000..7de1803045b3 --- /dev/null +++ b/sci-libs/ogdi/ogdi-3.2.0-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P=${P/_/.} +inherit toolchain-funcs + +DESCRIPTION="Open Geographical Datastore Interface, a GIS support library" +HOMEPAGE="http://ogdi.sourceforge.net/" +SRC_URI="mirror://sourceforge/ogdi/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="static-libs" + +DEPEND=" + net-libs/libtirpc + dev-libs/expat + >=sci-libs/proj-4.9.0:= + <sci-libs/proj-6.0.0:= + sys-libs/zlib +" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +DOCS=( ChangeLog NEWS README ) + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.0_beta2-subdirs.patch + "${FILESDIR}"/${P}-acinclude.patch + "${FILESDIR}"/${P}-aclocal.patch + "${FILESDIR}"/${P}-endianess.patch + "${FILESDIR}"/${P}-fpic.patch + "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${P}-optimisation.patch + "${FILESDIR}"/${P}-rpc.patch + "${FILESDIR}"/${P}-tcl.patch +) + +src_prepare() { + default + rm -r external || die + sed 's:O2:O9:g' -i configure || die +} + +src_configure() { + export TOPDIR="${S}" + export TARGET=$(uname) + export CFG="release" + export LD_LIBRARY_PATH=$TOPDIR/bin/${TARGET} + + econf \ + --with-projlib="-L${EPREFIX}/usr/$(get_libdir) -lproj" \ + --with-expat \ + --with-zlib +} + +src_compile() { + # bug #299239 + emake -j1 \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + SHLIB_LD="$(tc-getCC)" +} + +src_install() { + mv "${S}"/bin/${TARGET}/*.so* "${S}"/lib/Linux/. || die "lib move failed" + dobin "${S}"/bin/${TARGET}/* + insinto /usr/include + doins ogdi/include/ecs.h ogdi/include/ecs_util.h + dolib.so lib/${TARGET}/lib* + use static-libs && dolib.a lib/${TARGET}/static/*.a +# dosym libogdi31.so /usr/$(get_libdir)/libogdi.so + einstalldocs +} |