summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerm@gentoo.org>2006-12-11 10:48:02 +0000
committerZaheer Abbas Merali <zaheerm@gentoo.org>2006-12-11 10:48:02 +0000
commit502ca7e723d771a734b49a824cb2b2155a52b8be (patch)
tree82a5ce05ec2e257312f2aed0a24638a2b51d7718 /dev-libs/liboil
parentVersion bump, see bug #155700. (diff)
downloadgentoo-2-502ca7e723d771a734b49a824cb2b2155a52b8be.tar.gz
gentoo-2-502ca7e723d771a734b49a824cb2b2155a52b8be.tar.bz2
gentoo-2-502ca7e723d771a734b49a824cb2b2155a52b8be.zip
fix sse2 check and use flag-o-matic
(Portage version: 2.1.1_pre3-r5)
Diffstat (limited to 'dev-libs/liboil')
-rw-r--r--dev-libs/liboil/ChangeLog8
-rw-r--r--dev-libs/liboil/files/digest-liboil-0.3.10-r13
-rw-r--r--dev-libs/liboil/files/liboil-0.3.10-sse2revert.diff21
-rw-r--r--dev-libs/liboil/liboil-0.3.10-r1.ebuild38
4 files changed, 69 insertions, 1 deletions
diff --git a/dev-libs/liboil/ChangeLog b/dev-libs/liboil/ChangeLog
index b9d2c53dd24a..04f87c35ea07 100644
--- a/dev-libs/liboil/ChangeLog
+++ b/dev-libs/liboil/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/liboil
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/liboil/ChangeLog,v 1.34 2006/12/05 14:03:04 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/liboil/ChangeLog,v 1.35 2006/12/11 10:48:02 zaheerm Exp $
+
+*liboil-0.3.10-r1 (11 Dec 2006)
+
+ 11 Dec 2006; Zaheer Abbas Merali <zaheerm@gentoo.org>
+ +files/liboil-0.3.10-sse2revert.diff, +liboil-0.3.10-r1.ebuild:
+ fix sse2 check and use flag-o-matic
*liboil-0.3.10 (05 Dec 2006)
diff --git a/dev-libs/liboil/files/digest-liboil-0.3.10-r1 b/dev-libs/liboil/files/digest-liboil-0.3.10-r1
new file mode 100644
index 000000000000..2f7b3a112a45
--- /dev/null
+++ b/dev-libs/liboil/files/digest-liboil-0.3.10-r1
@@ -0,0 +1,3 @@
+MD5 770f656bca8166dab33b322d5886a4bf liboil-0.3.10.tar.gz 860303
+RMD160 585413d5955b08b24cec18f588927ac071a44098 liboil-0.3.10.tar.gz 860303
+SHA256 4587753a023550a066abe59a7e467c1af35b9f5e81bfb40a12463ad2df8f088c liboil-0.3.10.tar.gz 860303
diff --git a/dev-libs/liboil/files/liboil-0.3.10-sse2revert.diff b/dev-libs/liboil/files/liboil-0.3.10-sse2revert.diff
new file mode 100644
index 000000000000..be4c95f3520e
--- /dev/null
+++ b/dev-libs/liboil/files/liboil-0.3.10-sse2revert.diff
@@ -0,0 +1,21 @@
+--- m4/as-intrinsics.m4-3.10 2006-05-19 22:13:26.000000000 +0200
++++ m4/as-intrinsics.m4 2006-02-15 22:02:15.000000000 +0100
+@@ -4,7 +4,7 @@
+
+ dnl David Schleef <ds@schleef.org>
+
+-dnl $Id: liboil-0.3.10-sse2revert.diff,v 1.1 2006/12/11 10:48:02 zaheerm Exp $
++dnl $Id: liboil-0.3.10-sse2revert.diff,v 1.1 2006/12/11 10:48:02 zaheerm Exp $
+
+ dnl AS_MMX_INTRINSICS(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED])
+ dnl Tries to compile with the given CFLAGS.
+@@ -69,7 +69,7 @@
+
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -msse2"
+- AC_TRY_COMPILE([#include <emmintrin.h>], [__m128i a; a = _mm_setzero_si128(); a = _mm_srli_epi16(a,8)], [flag_ok=yes], [flag_ok=no])
++ AC_TRY_COMPILE([#include <emmintrin.h>], [__m128d a; a = _mm_setzero_pd(); a = _mm_srli_epi16(a,8)], [flag_ok=yes], [flag_ok=no])
+ CFLAGS="$save_CFLAGS"
+
+ $1="-msse2"
+
diff --git a/dev-libs/liboil/liboil-0.3.10-r1.ebuild b/dev-libs/liboil/liboil-0.3.10-r1.ebuild
new file mode 100644
index 000000000000..1c3c21e6e835
--- /dev/null
+++ b/dev-libs/liboil/liboil-0.3.10-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/liboil/liboil-0.3.10-r1.ebuild,v 1.1 2006/12/11 10:48:02 zaheerm Exp $
+
+inherit flag-o-matic
+inherit autotools
+
+DESCRIPTION="library of simple functions that are optimized for various CPUs"
+HOMEPAGE="http://www.schleef.org/liboil/"
+SRC_URI="http://www.schleef.org/${PN}/download/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0.3"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh -sparc ~x86 ~x86-fbsd"
+IUSE="doc"
+
+RDEPEND="=dev-libs/glib-2*"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/liboil-0.3.10-sse2revert.diff
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_compile() {
+ strip-flags
+ filter-flags -O?
+ append-flags -O2
+ econf $(use_enable doc gtk-doc) || die "econf failed"
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}