summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2013-01-04 17:54:11 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2013-01-04 17:54:11 +0000
commit7af6f98e71f4f1ce7f3ebfb78747ad47e1c52237 (patch)
tree978a2a0661f5932cab3c0d2df3f626b7d763f25e /sci-libs
parentStable for HPPA (bug #443080). (diff)
downloadhistorical-7af6f98e71f4f1ce7f3ebfb78747ad47e1c52237.tar.gz
historical-7af6f98e71f4f1ce7f3ebfb78747ad47e1c52237.tar.bz2
historical-7af6f98e71f4f1ce7f3ebfb78747ad47e1c52237.zip
Fix building on PPC wrt #450188 by Agostino Sarubbo <ago@gentoo.org> and Vicente Olivert Riera <peratu@carrosses.com>
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x895192F9
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/hdf/ChangeLog7
-rw-r--r--sci-libs/hdf/Manifest25
-rw-r--r--sci-libs/hdf/files/hdf-ppc.patch214
-rw-r--r--sci-libs/hdf/hdf-4.2.8.ebuild5
4 files changed, 226 insertions, 25 deletions
diff --git a/sci-libs/hdf/ChangeLog b/sci-libs/hdf/ChangeLog
index 18bc2f91fe21..8e92a9477cb4 100644
--- a/sci-libs/hdf/ChangeLog
+++ b/sci-libs/hdf/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/hdf
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v 1.32 2013/01/04 17:16:54 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v 1.33 2013/01/04 17:54:07 xarthisius Exp $
+
+ 04 Jan 2013; Kacper Kowalik <xarthisius@gentoo.org> +files/hdf-ppc.patch,
+ hdf-4.2.8.ebuild:
+ Fix building on PPC wrt #450188 by Agostino Sarubbo <ago@gentoo.org> and
+ Vicente Olivert Riera <peratu@carrosses.com>
04 Jan 2013; Kacper Kowalik <xarthisius@gentoo.org> hdf-4.2.8.ebuild:
Add missing FORTRAN_DEPEND. Thanks to Vicente Olivert Riera
diff --git a/sci-libs/hdf/Manifest b/sci-libs/hdf/Manifest
index aedde214e57a..7179a512202e 100644
--- a/sci-libs/hdf/Manifest
+++ b/sci-libs/hdf/Manifest
@@ -1,29 +1,10 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
AUX 4.2.6-autotools.patch 4178 SHA256 75474d558d62214167b4690fa6a0d1f9826a64332e81e1bdd4fbe4788facad3b SHA512 456ef76f86a16f399443a3ba4b080f02fa8ec734aa602fc273f8bde7befc2a9e13caf2275f32e87d94df11169f80aa2aa8e1b0f2f503ab73964be265794fb353 WHIRLPOOL 834581f8cf04056c9320a36c1fc7816ad527f5a6675d0a968dafdc9bec3ae2c9d79036b619d24ee11d514dc8b31b0c58574b05f48d62e081879b2d0f3abf1048
AUX 4.2.7_p1-autotools.patch 3908 SHA256 1cbe8655274b7c5f5616c80e6b212e59d06205b70e328fae640f0c8b13d10ef5 SHA512 ba33a5a2e182feca790069f730dcc2a67d1ac22985a4e4b484e28b8cff7fe55da9675d8c2c60a2a0c733035b76df9325642e7e71a38d2ba7cc4c5378cc9a133c WHIRLPOOL e29d8ea043b93cee99044cff041c2dd8287acbf8c6f21d98ee1d49963f0e3c0e47eed7554332676eb2f82efe09a6deb3d9bcb90b4ee10e7f60f64563acc271c9
+AUX hdf-ppc.patch 10374 SHA256 2702189b0a7436a260b9ffa51ae4a68d598b5b2cd36845f1c7feea70bacbde8f SHA512 ac88c595e369709dc907b5f009429654c59ae1ac31869aace2656511687d0a7093d41af218768cc825181f623d0018991d1e49e0c48329766c01f608873d2ddb WHIRLPOOL 81462bfcf6b11b924a591060fbe0b5f914ab0b69614ba1ce3e39fa768426c79852bc226c21a3ff0c49c23bbab2ecf2702c5d7464423364999e589fda13db05ef
DIST HDF4.2r4.tar.gz 3914118 SHA256 39695c85e15c391e589cfdcb98ecc9a72fbb7447f0575bff4d030d53a62e689d
DIST hdf-4.2.8.tar.bz2 3027253 SHA256 e8a94ae2c838007ccdd55bb3cd9684adba3ded367c09803ffc84a2704f83c00f SHA512 d033007eff74d957572db8433f66e9df6fec44f67b28ddbad6e9a2d832b5504a29e9ecc5565d861b8308bab8d0dbfce19ae1e2ade0dd758d370a333819364c8e WHIRLPOOL 89ac6a092024fe2fac61bff918c14bf90e80db0b77f48e2ffe7cbf05610a3687e214c684f49e909b985c09b6baacf3dc730a15141fb44a3d59c191777c538299
DIST hdf-4.2_p4-patches.tar.bz2 6914 SHA256 e04ece17fab9739f145099ee78e926ca790177033bfa102f12b328b66bbac390
-EBUILD hdf-4.2.8.ebuild 1409 SHA256 83c359907cf51b68feec852673d3266934c2bce87ed4f70d149bba3256110b16 SHA512 99b038266e3f54018be94b110417daa81c616fb916ca9681813a252481127d273e70ef58f7cffb977887bbd32c5a5557d5dc1e9afe8a59483d7637f2a5fad674 WHIRLPOOL ef185ac8f36eb849e6ffa50d81551d56e07d51ec0bad2b0df4312c6cc5586dbaf798807a6600db1e34d1597708c69152d95c3a1c2b373b898783aeac7caab208
+EBUILD hdf-4.2.8.ebuild 1443 SHA256 07204c66dd90a3fa6703679024b762dbaa2543c60a7f983fbdb1cc80d41357e3 SHA512 2e104336a5b762f3068412f236abcb61b61571ebe685afcb977476f1cac48cbe7125e4e2b03a2373f8b8e23c1e18bfc6aaf9aa843a14140aa58d5c1c08c81038 WHIRLPOOL 6a9babf9b196bed00fc143951ae489008e8f7db8650974efc90ccb663b60b3babc35764b9403130cdd745034bf5e063f4f257c6682c867c7964a4b01193d285a
EBUILD hdf-4.2_p4.ebuild 2178 SHA256 11ca458f55c398fe562f79cba2e4f5c85250a6173b62805bf33f0814759a9780 SHA512 d4e61a96854d77a4827ea337e2d2df5ab45334ee091f294c50e774d8dcbea9b1e4172839782579b225d89c293599aee1750417a7b743254be4de2e9e31a33c73 WHIRLPOOL 120a8702c231c5cc18a3a657bf34fb97cbcd897f13c463790513096b080f026a871c47a5364d5d01f11085ec2338c259b2048cbf9a5c650c5dc3040fc735cbfe
-MISC ChangeLog 6246 SHA256 22355de0cad23d9f171c21a1ed6cdcdcec62a3a4a34c83dd138ee618f2855686 SHA512 a07d8d56564199cd68f5aab880974c02163257c75e2a3fdc3cb6fb65cdc8334cf7f9125ffc4d3e658581c9370429acd28a813bdba8973b572d87ac38e7fa5018 WHIRLPOOL fa256dbc3e38005bd7ee9a7929764b011b337f1c2518d6aa93e90f1bf6f844494bbcbee447371157a855b9ada0cb4c811f45025ca5597ca7843b711efc809793
+MISC ChangeLog 6465 SHA256 80372cc64d7ca1ae05f234ebee972c4e1298ecc668e14509ff677aebc14f07f2 SHA512 9ab79fc6d44d275e0c1b71c68461d8be9573bddc3140e52e9939ddb6bc867203172e23d8b0cb2d428aaec530e0c68133f031e6acb09089c40ab31c5b52ce8c3f WHIRLPOOL 00ec8e831223600347af12d1afce3c7340a3c90326fe7850c35495303cdd8c15530e3a9902277e33f6e3f1ad675fb1456292a2b18e0a7b2d7c2ec11b6da555cc
MISC metadata.xml 762 SHA256 2a3f47728f208bb059411efc4c8ea5fcba18dc6504b79ca5bb4155c2dfe87eab SHA512 23961dc14add2e7375da79e39caec4a61f20e16314cd88a278c3c887dec828a354ad48f49694ba9b699d80398d40d71b396b6017f0d4c01682b318f3157b845e WHIRLPOOL 9e797341edaea73c417221b812670a6092d6057f4934fbd624e27a12dcf864884bdd2ec61279e5bcd11f3507568ab2a65c98cbfea340130591b31834ee764213
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQIbBAEBCAAGBQJQ5w6LAAoJEF0huFKJUZL5vAkP9jhIim+UL63Jy9tyJzHYQfTE
-lHmlL7mvGl/nFgDnYXqms5fuAnjL2xGZ+uDY6jhU/lBB2nMBAvJQkcghMYTk1E0z
-nlUbCqKDdyCZg/S99EwVRN8kf3ZOTqabBKLu6/nzBbxv1+LguA2o1EWR0ZWiGhh3
-X5TJYWChZpC3+lJMEaZkkEOjVG6xVY3rmQM8x/xjkwGvsXiADo+xBgIghuQ0j3BT
-b1oeyWCtrbMbH/mZW5fJtSNTEIYSxalV7sQ5dw9W7k6RDcnxtjX1rXtsSZ5KDhvW
-xVor4Kt/cSVrIfLvNf+sLp5vHD6QMW7eu/ANV3ybntvsLtfv3XLTj08lCh1QrT7i
-WPm3KJc8/IqdWeAkymNqL0TV3UzT6WzHIifCAdlFPH831yBZ6U/WlqOUwVUbj4Jt
-YYMTYrSCJMphGOb7Ykoxkphdt0e4wJUyeM7DmejcENmkywsZmoQecLS5m4kGV2UO
-EqXqIqOhaOYFDxmPgnMa7/rPs4M8Z4OYpF1PbhCtDPNMyhCQeX1OnMZYfQYrjGBt
-Nk9FQvl7Z42aW2u1uEamxq0woMSK9bV5t6spnDIggkBMtALlDRX4b/hovK8wCoEB
-yWves2/pnBFP1KUglll3fEBJ/icqp4ufURtSjRpHSRG2LqTmroHU5aTe8+bZSc7f
-8xtiNJspdyyOOlHxRJE=
-=oeN3
------END PGP SIGNATURE-----
diff --git a/sci-libs/hdf/files/hdf-ppc.patch b/sci-libs/hdf/files/hdf-ppc.patch
new file mode 100644
index 000000000000..3cf62d09371d
--- /dev/null
+++ b/sci-libs/hdf/files/hdf-ppc.patch
@@ -0,0 +1,214 @@
+Fix FTBS on ppc
+
+https://bugs.gentoo.org/show_bug.cgi?id=450188
+
+Source: http://pkgs.fedoraproject.org/cgit/hdf.git
+--- a/hdf/src/hdfi.h
++++ b/hdf/src/hdfi.h
+@@ -76,6 +76,7 @@
+ #define DFMT_IA64 0x4441
+ #define DFMT_LINUX64 0x4441
+ #define DFMT_POWERPC64 0x1111
++#define DFMT_LINUXPPC 0x1111
+
+ /* I/O library constants */
+ #define UNIXUNBUFIO 1
+@@ -1289,6 +1290,57 @@ typedef long hdf_pint_t;
+
+ #endif /*Linux 64 */
+
++/* Linux PPC */
++#if defined __powerpc__ && !defined __powerpc64__
++
++#ifdef GOT_MACHINE
++If you get an error on this line more than one machine type has been defined.
++Please check your Makefile.
++#endif
++#define GOT_MACHINE
++
++#include <sys/file.h> /* for unbuffered i/o stuff */
++#include <sys/stat.h>
++#define DF_MT DFMT_LINUXPPC
++typedef void VOID;
++typedef void *VOIDP;
++typedef char *_fcd;
++typedef char char8;
++typedef unsigned char uchar8;
++typedef char int8;
++typedef unsigned char uint8;
++typedef short int int16;
++typedef unsigned short int uint16;
++typedef int int32;
++typedef unsigned int uint32;
++typedef int intn;
++typedef unsigned int uintn;
++typedef int intf; /* size of INTEGERs in Fortran compiler */
++typedef float float32;
++typedef double float64;
++typedef long hdf_pint_t; /* an integer the same size as a pointer */
++#define FNAME_POST_UNDERSCORE
++#define _fcdtocp(desc) (desc)
++#ifdef HAVE_FMPOOL
++#define FILELIB PAGEBUFIO /* enable page buffering */
++#else
++#define FILELIB UNIXBUFIO
++#endif
++
++/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
++
++/* Determine the memory manager we are going to use. Valid values are: */
++/* MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS. See the JPEG docs for details on */
++/* what each does */
++#define JMEMSYS MEM_ANSI
++
++#ifdef __GNUC__
++#define HAVE_STDC
++#define INCLUDES_ARE_ANSI
++#endif
++
++#endif /*Linux PPC */
++
+ /*-----------------------------------------------------*/
+ /* 64-bit Free BSD */
+
+--- a/mfhdf/fortran/config/jackets-linux.c
++++ b/mfhdf/fortran/config/jackets-linux.c
+@@ -34,7 +34,7 @@
+
+ struct ncfils { /* This will be a common block from Fortran */
+ double dd;
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ int ll;
+ #else
+ long ll;
+@@ -65,7 +65,7 @@ struct ncfils { /* This will be a comm
+
+ struct ncfils { /* This will be a common block from Fortran */
+ double dd;
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ int ll;
+ #else
+ long ll;
+@@ -430,7 +430,7 @@ stoig(shorts, ints, dims, basis, ndims)
+ }
+ #endif /* FORTRAN_HAS_NO_SHORT */
+
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ /*
+ * Convert multi-dimensional array of NCLONGs stored in ints to packed
+ * array of longs, in malloc'ed space. Returns pointer to longs or NULL
+@@ -916,7 +916,7 @@ nncvpt1(cdfid, varid, indices, value, rc
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long longs = *(int *)value;
+@@ -1030,7 +1030,7 @@ nncvpt(cdfid, varid, start, count, value
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long *longs = itol (value, ncount, ndims);
+@@ -1141,7 +1141,7 @@ nncvptg(cdfid, varid, start, count, stri
+ tmpbasis = nctypelen(NC_LONG);
+ else
+ #endif
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ if (datatype == NC_LONG)
+ tmpbasis = sizeof(int);
+ else
+@@ -1198,7 +1198,7 @@ nncvptg(cdfid, varid, start, count, stri
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long *longs = itolg (value, ncount, nbasis, ndims);
+@@ -1334,7 +1334,7 @@ nncvgt1(cdfid, varid, indices, value, rc
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long longs;
+@@ -1476,7 +1476,7 @@ nncvgt(cdfid, varid, start, count, value
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long iocount = dimprod (ncount, ndims); /* product of dimensions */
+@@ -1614,7 +1614,7 @@ nncvgtg(cdfid, varid, start, count, stri
+ tmpbasis = nctypelen(NC_LONG);
+ else
+ #endif
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ if (datatype == NC_LONG)
+ tmpbasis = sizeof(int);
+ else
+@@ -1685,7 +1685,7 @@ nncvgtg(cdfid, varid, start, count, stri
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long iocount = dimprod (ncount, ndims); /* product of dimensions */
+@@ -1851,7 +1851,7 @@ nncapt(cdfid, varid, attname, datatype,
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) *datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ long *longs = itol (value, attlen, 1);
+@@ -2016,7 +2016,7 @@ nncagt(cdfid, varid, attname, value, rco
+ return;
+ } /* else */
+ #endif /* FORTRAN_HAS_NO_SHORT */
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ #ifdef HDF
+ if ((nc_type) datatype == NC_LONG && handle->file_type!=HDF_FILE) {
+ /* EIP We need to use int buffer to read data in on the platforms where long is 8 bytes
+--- a/mfhdf/libsrc/netcdf.h.in
++++ b/mfhdf/libsrc/netcdf.h.in
+@@ -295,7 +295,7 @@ typedef double ncdouble;
+ */
+ #if defined _CRAYMPP
+ typedef short nclong;
+-#elif defined __alpha || (_MIPS_SZLONG == 64) || defined IA64 || (defined __sun__ && defined _LP64) || defined AIX5L64
++#elif defined __alpha || (_MIPS_SZLONG == 64) || defined IA64 || (defined __sun__ && defined _LP64) || defined AIX5L64 || defined __powerpc64__
+ typedef int nclong;
+ #else
+ typedef long nclong; /* default, compatible type */
+--- a/mfhdf/ncgen/ncgen.l
++++ b/mfhdf/ncgen/ncgen.l
+@@ -134,7 +134,7 @@ FloatInf|Infinity|Inf { /* float miss
+ yyerror(errstr);
+ }
+
+-#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || __powerpc64__
++#if defined __alpha || (_MIPS_SZLONG == 64) || defined __ia64 || (defined __sun && defined _LP64) || defined AIX5L64 || defined __x86_64__ || defined __powerpc64__
+ if (dd < INT_MIN || dd > INT_MAX)
+ #else
+ #if defined (_CRAYMPP)
diff --git a/sci-libs/hdf/hdf-4.2.8.ebuild b/sci-libs/hdf/hdf-4.2.8.ebuild
index 68504b15fdbb..328fdc43e842 100644
--- a/sci-libs/hdf/hdf-4.2.8.ebuild
+++ b/sci-libs/hdf/hdf-4.2.8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/hdf-4.2.8.ebuild,v 1.4 2013/01/04 17:16:54 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/hdf-4.2.8.ebuild,v 1.5 2013/01/04 17:54:07 xarthisius Exp $
EAPI=4
@@ -28,7 +28,8 @@ DEPEND="${RDEPEND}"
S=${WORKDIR}/${MYP}
src_prepare() {
- epatch "${FILESDIR}"/4.2.7_p1-autotools.patch
+ epatch "${FILESDIR}"/4.2.7_p1-autotools.patch \
+ "${FILESDIR}"/${PN}-ppc.patch
sed -i -e 's/-R/-L/g' config/commence.am || die #rpath
eautoreconf
[[ $(tc-getFC) = *gfortran ]] && append-fflags -fno-range-check