Added ~amd64 keyword
authorKarol Wojtaszek <sekretarz@gentoo.org>
Tue, 19 Oct 2004 21:38:47 +0000 (21:38 +0000)
committerKarol Wojtaszek <sekretarz@gentoo.org>
Tue, 19 Oct 2004 21:38:47 +0000 (21:38 +0000)
dev-libs/ccmath/ChangeLog
dev-libs/ccmath/Manifest
dev-libs/ccmath/ccmath-2.2.1.ebuild
dev-libs/ccmath/files/ccmath-2.2.1-fPIC.patch [new file with mode: 0644]

index d73b9ffa77b2ed991d3a21e2f458317d053094ec..b18a6820f940a5f7deacc60e815ec64fb45f7ed0 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-libs/ccmath
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/ccmath/ChangeLog,v 1.6 2004/09/30 00:13:05 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/ccmath/ChangeLog,v 1.7 2004/10/19 21:38:47 sekretarz Exp $
+
+  19 Oct 2004; Karol Wojtaszek,,, <sekretarz@gentoo.org>
+  +files/ccmath-2.2.1-fPIC.patch, ccmath-2.2.1.ebuild:
+  Added ~amd64 keyword and fPIC patch
 
   01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> ccmath-2.2.1.ebuild:
   virtual/glibc -> virtual/libc
index b4173f2d68efbb1e710746ccdf2e2ab78c100c28..d5d8f493ff05e5da9520596c6aca360f9b20d42f 100644 (file)
@@ -1,13 +1,4 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 fbb7157d23ab6d18f77ceba3a5ef7b1a ChangeLog 1113
-MD5 cc53c4652310450b853c0e85ccf804a1 ccmath-2.2.1.ebuild 959
+MD5 fe7502af8f12f063a28e80070b5baa3d ccmath-2.2.1.ebuild 1153
+MD5 3a8103629e7d283faa430d3889c13b5a ChangeLog 1265
+MD5 e659e0f4f4aa1423e24d5d5089d0ae61 files/ccmath-2.2.1-fPIC.patch 707
 MD5 1c8ba73673ef00b6ffaf5c195bccb99d files/digest-ccmath-2.2.1 64
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBW0+ZI1lqEGTUzyQRAgvoAKCBBjbMA5SjXj3qMfNQhd81iD6JfgCbBb8x
-zQl8vtwQE6UeUbOZne3Pk1Q=
-=O/LH
------END PGP SIGNATURE-----
index d88f3bec6b2ea8f1e890043b6131fc7010b13cac..758e50e295f51b6ce957953be5de306ddb59a8e9 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/ccmath/ccmath-2.2.1.ebuild,v 1.8 2004/07/02 04:35:12 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/ccmath/ccmath-2.2.1.ebuild,v 1.9 2004/10/19 21:38:47 sekretarz Exp $
+
+inherit eutils
 
 DESCRIPTION="CCMATH is a mathematics library, coded in C, that contains functions for linear algebra, numerical integration,
        geometry and trigonometry, curve fitting, roots and optimization, Fourier analysis, simulation generation, statistics,
@@ -11,14 +13,22 @@ HOMEPAGE="http://freshmeat.net/projects/ccmath/"
 
 SLOT="0"
 LICENSE="LGPL-2.1"
-KEYWORDS="x86 ppc sparc"
+KEYWORDS="x86 ppc sparc ~amd64"
 
 DEPEND="virtual/libc"
 
 IUSE=""
 
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+
+       use amd64 && epatch ${FILESDIR}/${P}-fPIC.patch
+}
+
 src_compile() {
-       yes | ./makelibs.sh
+       # if it is amd64 we doesn't support intels
+       use amd64 && yes n | ./makelibs.sh || yes | ./makelibs.sh
 }
 
 src_install() {
diff --git a/dev-libs/ccmath/files/ccmath-2.2.1-fPIC.patch b/dev-libs/ccmath/files/ccmath-2.2.1-fPIC.patch
new file mode 100644 (file)
index 0000000..c95176f
--- /dev/null
@@ -0,0 +1,31 @@
+diff -Naur ccmath-2.2.1.orig/makelibs.sh ccmath-2.2.1/makelibs.sh
+--- ccmath-2.2.1.orig/makelibs.sh      2001-11-08 16:57:07.000000000 +0100
++++ ccmath-2.2.1/makelibs.sh   2004-10-19 23:33:36.745735608 +0200
+@@ -16,23 +16,23 @@
+   do
+     cd $MDR/$dr
+     echo `pwd`
+-    cc -c -O3 *.c
++    cc -fPIC -c -O3 *.c
+     mv *.o $LSOD
+   done
+ 
+ # Compile corrected svd QR support without optimizing
+ #     The GNU optimizer destroys the fix!
+ cd $MDR/matrix
+-cc -c qrb*.c
++cc -fPIC -c qrb*.c
+ mv *.o $LSOD
+ cd $MDR
+ 
+ if [ $F = "y" ]
+   then cd $MDR/matrix
+-    cc -c -O3 solv.s
++    cc -fPIC -c -O3 solv.s
+     mv *.o $LSOD
+     cd $MDR/simu
+-    cc -c -O3 *.s
++    cc -fPIC -c -O3 *.s
+     mv *.o $LSOD
+ fi
+ cd $LSOD