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

Contents of /sci-libs/shapelib/shapelib-1.3.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Aug 2 23:24:26 2012 UTC (8 years, 3 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
added a patch to respect user flags, fixed bad installation, define tests

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

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.3.0.ebuild,v 1.1 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://download.osgeo.org/${PN}/${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 sed -i \
22 -e "s:/usr/local:\$(DESTDIR)/${EPREFIX}/usr:g" \
23 -e "s:/usr/lib:/usr/$(get_libdir):g" \
24 -e "s:SHPLIB_VERSION=1.2.9:SHPLIB_VERSION=${PV}:g" \
25 -e "s:-g:${CFLAGS}:" \
26 -e "s:-g -O2:${CFLAGS}:g" \
27 -e 's:$(LINKOPT):$(LDFLAGS):' \
28 -e "s:link gcc :link $(tc-getCC) ${LDFLAGS}:" \
29 Makefile || die "sed failed"
30 }
31
32 src_compile() {
33 emake all
34 emake lib
35 }
36
37 src_install() {
38 dobin shp{create,dump,test,add} dbf{create,dump,add}
39 emake DESTDIR="${D}" lib_install
40 dodoc ChangeLog README*
41 use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib*.a
42 }

  ViewVC Help
Powered by ViewVC 1.1.20