You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/proj/proj-4.8.0.ebuild

53 lines
1.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/proj/proj-4.8.0.ebuild,v 1.8 2013/01/02 12:33:54 jer Exp $
EAPI=4
inherit eutils java-pkg-opt-2 flag-o-matic
DESCRIPTION="Proj.4 cartographic projection software with updated NAD27 grids"
HOMEPAGE="http://trac.osgeo.org/proj/"
SRC_URI="ftp://ftp.remotesensing.org/pub/proj/${P}.tar.gz
http://download.osgeo.org/proj/${PN}-datumgrid-1.5.zip
http://trac.osgeo.org/proj/export/2190/tags/${PV}/proj/src/org_proj4_PJ.h -> ${P}-org_proj4_PJ.h
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="alpha amd64 ~mips 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
dodoc README.{NAD,NADUS}
insinto /usr/share/proj
insopts -m 755
doins test27 test83
insopts -m 644
doins pj_out27.dist pj_out83.dist
}