/[gentoo-x86]/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild
Gentoo

Contents of /sci-libs/shapelib/shapelib-1.2.10-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Dec 4 11:52:07 2012 UTC (7 years, 11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
sci-libs/shapelib: Drop old

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

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/shapelib/shapelib-1.2.10-r1.ebuild,v 1.8 2012/08/02 19:01:46 bicatali Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs multilib
7
8 DESCRIPTION="Library for manipulating ESRI Shapefiles"
9 HOMEPAGE="http://shapelib.maptools.org/"
10 SRC_URI="http://dl.maptools.org/dl/shapelib//${P}.tar.gz"
11
12 LICENSE="GPL-2 LGPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
15 IUSE="static-libs"
16
17 DEPEND=""
18 RDEPEND=""
19
20 src_prepare() {
21 epatch "${FILESDIR}"/makefile-fix.patch
22 epatch "${FILESDIR}"/fix-shapelib-test.diff
23 epatch "${FILESDIR}"/stdlib_include_fix.patch
24 sed -i \
25 -e "s:/usr/local/:\$(DESTDIR)/${EPREFIX}/usr/:g" \
26 -e "s:/usr/lib:/usr/$(get_libdir):g" \
27 -e "s:SHPLIB_VERSION=1.2.9:SHPLIB_VERSION=${PV}:g" \
28 -e "s:-g:${CFLAGS}:" \
29 -e "s:-g -O2:${CFLAGS}:g" \
30 -e "s:link gcc :link $(tc-getCC) ${LDFLAGS}:" \
31 Makefile || die "sed failed"
32 }
33
34 src_compile() {
35 emake all
36 emake lib
37 }
38
39 src_install() {
40 dobin shp{create,dump,test,add} dbf{create,dump,add}
41 emake DESTDIR="${D}" lib_install
42 dodoc ChangeLog
43 dohtml *.html
44 use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib*.a
45 }

  ViewVC Help
Powered by ViewVC 1.1.20