blob: 7fac923f670c7bed6546bb9cc135694f9168aa99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils java-pkg-opt-2 flag-o-matic
DESCRIPTION="Proj.4 cartographic projection software"
HOMEPAGE="http://trac.osgeo.org/proj/"
SRC_URI="
http://download.osgeo.org/proj/${P}.tar.gz
http://download.osgeo.org/proj/${PN}-datumgrid-1.5.zip
http://trac.osgeo.org/proj/export/2647/trunk/proj/src/org_proj4_PJ.h -> ${P}-org_proj4_PJ.h
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE="java static-libs"
RDEPEND=""
DEPEND="
app-arch/unzip
java? ( >=virtual/jdk-1.5 )"
src_unpack() {
unpack ${P}.tar.gz
cd "${S}"/nad || die
mv README README.NAD || die
cp "${DISTDIR}/${P}-org_proj4_PJ.h" "${S}/src/org_proj4_PJ.h" || die
unpack ${PN}-datumgrid-1.5.zip
}
src_configure() {
if use java; then
export JAVACFLAGS="$(java-pkg_javac-args)"
append-cflags "$(java-pkg_get-jni-cflags)"
fi
econf \
$(use_enable static-libs static) \
$(use_with java jni)
}
src_install() {
default
cd nad || die
dodoc README.{NAD,NADUS}
insinto /usr/share/proj
insopts -m 755
doins test27 test83
insopts -m 644
doins pj_out27.dist pj_out83.dist
prune_libtool_files
}
|