Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/ogdi/
Date: Sun, 29 Dec 2019 00:20:34
Message-Id: 1577578803.0452eff68c3a95f0e22a604ced402b9bacafc3e6.asturm@gentoo
1 commit: 0452eff68c3a95f0e22a604ced402b9bacafc3e6
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 23:49:16 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 00:20:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0452eff6
7
8 sci-libs/ogdi: Restrict to <PROJ-6, EAPI-7 bump
9
10 Closes: https://bugs.gentoo.org/686086
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 sci-libs/ogdi/ogdi-3.2.0-r1.ebuild | 78 ++++++++++++++++++++++++++++++++++++++
15 1 file changed, 78 insertions(+)
16
17 diff --git a/sci-libs/ogdi/ogdi-3.2.0-r1.ebuild b/sci-libs/ogdi/ogdi-3.2.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..7de1803045b
20 --- /dev/null
21 +++ b/sci-libs/ogdi/ogdi-3.2.0-r1.ebuild
22 @@ -0,0 +1,78 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +MY_P=${P/_/.}
29 +inherit toolchain-funcs
30 +
31 +DESCRIPTION="Open Geographical Datastore Interface, a GIS support library"
32 +HOMEPAGE="http://ogdi.sourceforge.net/"
33 +SRC_URI="mirror://sourceforge/ogdi/${MY_P}.tar.gz"
34 +
35 +LICENSE="GPL-2"
36 +SLOT="0"
37 +KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
38 +IUSE="static-libs"
39 +
40 +DEPEND="
41 + net-libs/libtirpc
42 + dev-libs/expat
43 + >=sci-libs/proj-4.9.0:=
44 + <sci-libs/proj-6.0.0:=
45 + sys-libs/zlib
46 +"
47 +RDEPEND="${DEPEND}"
48 +
49 +S=${WORKDIR}/${MY_P}
50 +
51 +DOCS=( ChangeLog NEWS README )
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/${PN}-3.2.0_beta2-subdirs.patch
55 + "${FILESDIR}"/${P}-acinclude.patch
56 + "${FILESDIR}"/${P}-aclocal.patch
57 + "${FILESDIR}"/${P}-endianess.patch
58 + "${FILESDIR}"/${P}-fpic.patch
59 + "${FILESDIR}"/${P}-ldflags.patch
60 + "${FILESDIR}"/${P}-optimisation.patch
61 + "${FILESDIR}"/${P}-rpc.patch
62 + "${FILESDIR}"/${P}-tcl.patch
63 +)
64 +
65 +src_prepare() {
66 + default
67 + rm -r external || die
68 + sed 's:O2:O9:g' -i configure || die
69 +}
70 +
71 +src_configure() {
72 + export TOPDIR="${S}"
73 + export TARGET=$(uname)
74 + export CFG="release"
75 + export LD_LIBRARY_PATH=$TOPDIR/bin/${TARGET}
76 +
77 + econf \
78 + --with-projlib="-L${EPREFIX}/usr/$(get_libdir) -lproj" \
79 + --with-expat \
80 + --with-zlib
81 +}
82 +
83 +src_compile() {
84 + # bug #299239
85 + emake -j1 \
86 + CC="$(tc-getCC)" \
87 + LD="$(tc-getCC)" \
88 + SHLIB_LD="$(tc-getCC)"
89 +}
90 +
91 +src_install() {
92 + mv "${S}"/bin/${TARGET}/*.so* "${S}"/lib/Linux/. || die "lib move failed"
93 + dobin "${S}"/bin/${TARGET}/*
94 + insinto /usr/include
95 + doins ogdi/include/ecs.h ogdi/include/ecs_util.h
96 + dolib.so lib/${TARGET}/lib*
97 + use static-libs && dolib.a lib/${TARGET}/static/*.a
98 +# dosym libogdi31.so /usr/$(get_libdir)/libogdi.so
99 + einstalldocs
100 +}