summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2009-09-16 04:58:05 +0000
committerSteve Arnold <nerdboy@gentoo.org>2009-09-16 04:58:05 +0000
commitfdd04b890f837a17d4b9c255659cd44b25b4e978 (patch)
treeb0bcd8f2c0cb979c1fe9460c2a8bfd8df6864ace /sci-libs/shapelib
parentDISTUTILS_GLOBAL_OPTIONS should be an array. (diff)
downloadhistorical-fdd04b890f837a17d4b9c255659cd44b25b4e978.tar.gz
historical-fdd04b890f837a17d4b9c255659cd44b25b4e978.tar.bz2
historical-fdd04b890f837a17d4b9c255659cd44b25b4e978.zip
Updated with test and QA fixes, closes bug 283747.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/shapelib')
-rw-r--r--sci-libs/shapelib/ChangeLog9
-rw-r--r--sci-libs/shapelib/Manifest6
-rw-r--r--sci-libs/shapelib/files/fix-shapelib-test.diff30
-rw-r--r--sci-libs/shapelib/files/stdlib_include_fix.patch30
-rw-r--r--sci-libs/shapelib/shapelib-1.2.10-r1.ebuild9
5 files changed, 77 insertions, 7 deletions
diff --git a/sci-libs/shapelib/ChangeLog b/sci-libs/shapelib/ChangeLog
index ced1d9baec0f..73d5769b20cf 100644
--- a/sci-libs/shapelib/ChangeLog
+++ b/sci-libs/shapelib/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/shapelib
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/shapelib/ChangeLog,v 1.9 2008/01/04 17:47:08 bicatali Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/shapelib/ChangeLog,v 1.10 2009/09/16 04:58:05 nerdboy Exp $
+
+ 16 Sep 2009; Steve Arnold <nerdboy@gentoo.org> shapelib-1.2.10-r1.ebuild,
+ +files/fix-shapelib-test.diff, +files/stdlib_include_fix.patch:
+ Updated with test fix (patch provided by Thomas Beierlein) and QA fix
+ for missing include file.
04 Jan 2008; SĂ©bastien Fabbro <bicatali@gentoo.org>
shapelib-1.2.10-r1.ebuild:
diff --git a/sci-libs/shapelib/Manifest b/sci-libs/shapelib/Manifest
index cda472db770b..37fd0192f640 100644
--- a/sci-libs/shapelib/Manifest
+++ b/sci-libs/shapelib/Manifest
@@ -1,4 +1,6 @@
+AUX fix-shapelib-test.diff 1033 RMD160 fbcd5f30862573a707101c6f92a689b4fa989026 SHA1 bd1103be20f38ac60c2d0eec9d903149143ae3ea SHA256 839075511961b514171e5a1b84f6151724e04fbbde1f3b3c6a48baf817219ad2
+AUX stdlib_include_fix.patch 838 RMD160 e28e8e35017fa61f6bba305c0f4b0014fc3ced8d SHA1 0ec87da346fd94404260261a885fa367506ae60e SHA256 a6fa734cfb0642de3e2e95455194ccf56ab4cd7053914575197a026f5dd74d0b
DIST shapelib-1.2.10.tar.gz 167219 RMD160 9dcd90d5197aa7d6063a703a369a530f6aa1f1c3 SHA1 436b09b6a90f403e4568460d67560d5730725651 SHA256 afa54d60369e49a3d2ebcd1ffca75104bdc85d7f539b81aec8a6e2d311ca6b78
-EBUILD shapelib-1.2.10-r1.ebuild 1014 RMD160 90fb4d5bd3afed7ece675eaf067456f6a8d8abb9 SHA1 0c259c8723189f4b7f84e8b3733b363da9b84e8e SHA256 d83b0ab58b708fbc005db517a5b08c26108057c93ed52269f5f99051e35233c0
-MISC ChangeLog 1591 RMD160 e33b6e62f4f515561de1e8da1a3628ef64cc52d7 SHA1 5179dad4c373cd0d8c39ffeff7ea39d277d7ecf7 SHA256 ed18781086b77a10cb5b3738167b1a996210f2a4a643a664facdac9ee096dd15
+EBUILD shapelib-1.2.10-r1.ebuild 1122 RMD160 87dabe52b45215471891d5c1047b139c4b8e2118 SHA1 f9d78422c37122b4b5bfa40ca0a4f6bda4c4797b SHA256 e5252cb1bc223665cc17b34b64d20047879a3aa4fdcc1170264fba436ff67e48
+MISC ChangeLog 1835 RMD160 95e7cc5e00475d8bf002268589a67d47863ce761 SHA1 cac78d70dc17be822a66f263c995c115f9417d71 SHA256 dc0d646f75ef2ff01887c63b093a8908ee41805771bf62ee1976d4de49a66cc4
MISC metadata.xml 441 RMD160 c987199410f870735080ba1b5f8a8286fbce17b4 SHA1 f7bc2b8c7bebdfdc301b0672a76a67d6e26521fc SHA256 aa5df660dea112b2e216bef74e49bc4c648933135f6772038ed5aa5e0de5e0ac
diff --git a/sci-libs/shapelib/files/fix-shapelib-test.diff b/sci-libs/shapelib/files/fix-shapelib-test.diff
new file mode 100644
index 000000000000..859a5838047b
--- /dev/null
+++ b/sci-libs/shapelib/files/fix-shapelib-test.diff
@@ -0,0 +1,30 @@
+--- makeshape.sh.orig 2003-04-07 15:03:22.000000000 +0200
++++ makeshape.sh 2009-09-06 11:31:37.000000000 +0200
+@@ -5,17 +5,17 @@
+ # should display in ARCView II.
+ #
+
+-shpcreate test polygon
+-dbfcreate test.dbf -s Description 30 -n TestInt 6 0 -n TestDouble 16 5
++./shpcreate test polygon
++./dbfcreate test.dbf -s Description 30 -n TestInt 6 0 -n TestDouble 16 5
+
+-shpadd test 0 0 100 0 100 100 0 100 0 0 + 20 20 20 30 30 30 20 20
+-dbfadd test.dbf "Square with triangle missing" 1.5 2.5
++./shpadd test 0 0 100 0 100 100 0 100 0 0 + 20 20 20 30 30 30 20 20
++./dbfadd test.dbf "Square with triangle missing" 1.5 2.5
+
+-shpadd test 150 150 160 150 180 170 150 150
+-dbfadd test.dbf "Smaller triangle" 100 1000.25
++./shpadd test 150 150 160 150 180 170 150 150
++./dbfadd test.dbf "Smaller triangle" 100 1000.25
+
+-shpadd test 150 150 160 150 180 170 150 150
+-dbfadd test.dbf "" "" ""
++./shpadd test 150 150 160 150 180 170 150 150
++./dbfadd test.dbf "" "" ""
+
+-shpdump test.shp
+-dbfdump test.dbf
++./shpdump test.shp
++./dbfdump test.dbf
diff --git a/sci-libs/shapelib/files/stdlib_include_fix.patch b/sci-libs/shapelib/files/stdlib_include_fix.patch
new file mode 100644
index 000000000000..82b07699544d
--- /dev/null
+++ b/sci-libs/shapelib/files/stdlib_include_fix.patch
@@ -0,0 +1,30 @@
+--- shpcreate.c.orig 2009-09-15 20:09:39.641422056 -0700
++++ shpcreate.c 2009-09-15 20:20:31.310673754 -0700
+@@ -51,6 +51,7 @@
+ static char rcsid[] =
+ "$Id: stdlib_include_fix.patch,v 1.1 2009/09/16 04:58:04 nerdboy Exp $";
+
++#include <stdlib.h>
+ #include "shapefil.h"
+
+ int main( int argc, char ** argv )
+--- shpdump.c.orig 2009-09-15 20:09:47.615421028 -0700
++++ shpdump.c 2009-09-15 20:20:29.654673421 -0700
+@@ -67,6 +67,7 @@
+ static char rcsid[] =
+ "$Id: stdlib_include_fix.patch,v 1.1 2009/09/16 04:58:04 nerdboy Exp $";
+
++#include <stdlib.h>
+ #include "shapefil.h"
+
+ int main( int argc, char ** argv )
+--- shprewind.c.orig 2009-09-15 20:09:58.193422322 -0700
++++ shprewind.c 2009-09-15 20:20:26.954542660 -0700
+@@ -43,6 +43,7 @@
+ *
+ */
+
++#include <stdlib.h>
+ #include "shapefil.h"
+
+ int main( int argc, char ** argv )
diff --git a/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild b/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild
index dd4af6d8e417..3eddad9839d2 100644
--- a/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild
+++ b/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild,v 1.2 2008/01/04 17:47:08 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/shapelib/shapelib-1.2.10-r1.ebuild,v 1.3 2009/09/16 04:58:05 nerdboy Exp $
inherit eutils toolchain-funcs
@@ -17,12 +17,15 @@ DEPEND=""
src_unpack() {
unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/fix-shapelib-test.diff
+ epatch "${FILESDIR}"/stdlib_include_fix.patch
sed -i \
-e 's:/usr/local/:${DESTDIR}/usr/:g' \
-e "s:/usr/lib:/usr/$(get_libdir):g" \
-e 's:SHPLIB_VERSION=1.2.9:SHPLIB_VERSION=1.2.10:g' \
-e "s:-g:${CFLAGS}:g" \
- "${S}"/Makefile || die
+ Makefile || die "sed failed"
}
src_compile() {