| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libgeotiff/libgeotiff-1.3.0.ebuild,v 1.4 2012/03/02 17:05:46 grobian Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit base
|
| 7 |
|
| 8 |
MY_P=${P/_rc/RC}
|
| 9 |
|
| 10 |
DESCRIPTION="Library for reading TIFF files with embedded tags for geographic (cartographic) information"
|
| 11 |
HOMEPAGE="http://geotiff.osgeo.org/"
|
| 12 |
SRC_URI="http://download.osgeo.org/geotiff/${PN}/${MY_P}.tar.gz"
|
| 13 |
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
| 17 |
IUSE="debug doc static-libs"
|
| 18 |
|
| 19 |
RDEPEND="
|
| 20 |
virtual/jpeg
|
| 21 |
>=media-libs/tiff-3.9.1
|
| 22 |
sci-libs/proj
|
| 23 |
sys-libs/zlib"
|
| 24 |
|
| 25 |
DEPEND="${RDEPEND}
|
| 26 |
doc? ( app-doc/doxygen )"
|
| 27 |
|
| 28 |
S=${WORKDIR}/${MY_P/RC*/}
|
| 29 |
|
| 30 |
DOCS=( README ChangeLog )
|
| 31 |
|
| 32 |
src_configure() {
|
| 33 |
econf \
|
| 34 |
$(use_enable static-libs static) \
|
| 35 |
--enable-debug=$(use debug && echo yes || echo no) \
|
| 36 |
--with-jpeg="${EPREFIX}"/usr/ \
|
| 37 |
--with-zip="${EPREFIX}"/usr/
|
| 38 |
|
| 39 |
}
|
| 40 |
src_compile() {
|
| 41 |
default
|
| 42 |
|
| 43 |
if use doc; then
|
| 44 |
mkdir -p docs/api
|
| 45 |
cp "${FILESDIR}"/Doxyfile Doxyfile
|
| 46 |
doxygen -u Doxyfile || die "updating doxygen config failed"
|
| 47 |
doxygen Doxyfile || die "docs generation failed"
|
| 48 |
fi
|
| 49 |
}
|
| 50 |
|
| 51 |
src_install() {
|
| 52 |
default
|
| 53 |
|
| 54 |
use doc && dohtml docs/api/*
|
| 55 |
find "${ED}" -name '*.la' -exec rm -f {} +
|
| 56 |
}
|
| 57 |
|
| 58 |
pkg_postinst() {
|
| 59 |
echo
|
| 60 |
ewarn "You should rebuild any packages built against ${PN} by running:"
|
| 61 |
ewarn "# revdep-rebuild"
|
| 62 |
ewarn "or using preserved-rebuild features of portage-2.2:"
|
| 63 |
ewarn "# emerge @preserved-rebuild"
|
| 64 |
echo
|
| 65 |
}
|