summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2007-10-25 20:28:57 +0000
committerLuca Barbato <lu_zero@gentoo.org>2007-10-25 20:28:57 +0000
commit18b8f88ea6da8e2c879867784994cfd45cff40f2 (patch)
tree7e922ea3f1221fc630ec4ba09efcab46113c01a4 /sys-libs/libspe2
parentDropped ppc-macos keyword, see you in prefix (diff)
downloadhistorical-18b8f88ea6da8e2c879867784994cfd45cff40f2.tar.gz
historical-18b8f88ea6da8e2c879867784994cfd45cff40f2.tar.bz2
historical-18b8f88ea6da8e2c879867784994cfd45cff40f2.zip
First commit
Package-Manager: portage-2.1.3.15
Diffstat (limited to 'sys-libs/libspe2')
-rw-r--r--sys-libs/libspe2/ChangeLog10
-rw-r--r--sys-libs/libspe2/Manifest20
-rw-r--r--sys-libs/libspe2/files/digest-libspe2-2.2.80_p953
-rw-r--r--sys-libs/libspe2/files/spe.rc639
-rw-r--r--sys-libs/libspe2/libspe2-2.2.80_p95.ebuild68
-rw-r--r--sys-libs/libspe2/metadata.xml8
6 files changed, 148 insertions, 0 deletions
diff --git a/sys-libs/libspe2/ChangeLog b/sys-libs/libspe2/ChangeLog
new file mode 100644
index 000000000000..d3f10b818a7f
--- /dev/null
+++ b/sys-libs/libspe2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-libs/libspe2
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libspe2/ChangeLog,v 1.1 2007/10/25 20:28:57 lu_zero Exp $
+
+*libspe2-2.2.80_p95 (25 Oct 2007)
+
+ 25 Oct 2007; Luca Barbato <lu_zero@gentoo.org> +files/spe.rc6,
+ +libspe2-2.2.80_p95.ebuild:
+ First commit
+
diff --git a/sys-libs/libspe2/Manifest b/sys-libs/libspe2/Manifest
new file mode 100644
index 000000000000..e211ed600431
--- /dev/null
+++ b/sys-libs/libspe2/Manifest
@@ -0,0 +1,20 @@
+AUX spe.rc6 1010 RMD160 ed84e4f0c37fb0040ee89b1bd7566392785c1479 SHA1 5045b677512ab84d35d05d783f0891058613890f SHA256 a576c6358df3addd3b599b3daea31646dbef1c467ed2009c3f40552d8ccaf327
+MD5 96b3ad8630adb3e75a065fc606039906 files/spe.rc6 1010
+RMD160 ed84e4f0c37fb0040ee89b1bd7566392785c1479 files/spe.rc6 1010
+SHA256 a576c6358df3addd3b599b3daea31646dbef1c467ed2009c3f40552d8ccaf327 files/spe.rc6 1010
+DIST libspe2-2.2.80-95.tar.gz 153122 RMD160 eb803eabd4dd07e34b200bc279782272c0d8f7a9 SHA1 746d938b08554daaa240eb2ef9579c04f920df4d SHA256 a8160fb41faa83247ffe132a25502fdd2237427a55ed3a22344058f3dc5e2a44
+EBUILD libspe2-2.2.80_p95.ebuild 1705 RMD160 30e22b0ffa042b3c50baa1e82da1f221eeb25d1d SHA1 7838b06ba5b16a3f0373548ba85b28f7485aaf0f SHA256 1092b90ef010ebd4f532db5805fcdc7f88934de6dda528ee73fa84b391e0a81a
+MD5 b37f038c84444f58b3068ffea6b8b360 libspe2-2.2.80_p95.ebuild 1705
+RMD160 30e22b0ffa042b3c50baa1e82da1f221eeb25d1d libspe2-2.2.80_p95.ebuild 1705
+SHA256 1092b90ef010ebd4f532db5805fcdc7f88934de6dda528ee73fa84b391e0a81a libspe2-2.2.80_p95.ebuild 1705
+MISC ChangeLog 352 RMD160 d8566b50abff9cbf1fa5cf01fc19f837a289f755 SHA1 1cf1d2a57f0b3a5b32380db425831b7c7244103a SHA256 e0d8711bf88f00397699da24f8de3cfed63fd474bf482983060bc9dce5e67ad9
+MD5 839fe306b5199674d65cecb8b23c4d40 ChangeLog 352
+RMD160 d8566b50abff9cbf1fa5cf01fc19f837a289f755 ChangeLog 352
+SHA256 e0d8711bf88f00397699da24f8de3cfed63fd474bf482983060bc9dce5e67ad9 ChangeLog 352
+MISC metadata.xml 222 RMD160 8d98fcaaf7c7de70e19457776c3fae33f50ba8b7 SHA1 f6a00ec35a3cf9fc6135a48521949905242baf89 SHA256 43f6f0590273110b6fa46886158dfe583245c76bb5b27cee47897e81d8decbf2
+MD5 6f636b32783a84bffd31c7be1b60cb40 metadata.xml 222
+RMD160 8d98fcaaf7c7de70e19457776c3fae33f50ba8b7 metadata.xml 222
+SHA256 43f6f0590273110b6fa46886158dfe583245c76bb5b27cee47897e81d8decbf2 metadata.xml 222
+MD5 aafcbcd45645f2970ff47f0ad7428265 files/digest-libspe2-2.2.80_p95 253
+RMD160 ff747f47331b00f455ef95814ef1bcc4b880011f files/digest-libspe2-2.2.80_p95 253
+SHA256 a8589fc1ee6e1223661ce3b2b2cdad2f19f9804ede92464e947ca37e28693d53 files/digest-libspe2-2.2.80_p95 253
diff --git a/sys-libs/libspe2/files/digest-libspe2-2.2.80_p95 b/sys-libs/libspe2/files/digest-libspe2-2.2.80_p95
new file mode 100644
index 000000000000..b6054f9bd10c
--- /dev/null
+++ b/sys-libs/libspe2/files/digest-libspe2-2.2.80_p95
@@ -0,0 +1,3 @@
+MD5 5f5040daf978d2a3c5b7f6519a5c773b libspe2-2.2.80-95.tar.gz 153122
+RMD160 eb803eabd4dd07e34b200bc279782272c0d8f7a9 libspe2-2.2.80-95.tar.gz 153122
+SHA256 a8160fb41faa83247ffe132a25502fdd2237427a55ed3a22344058f3dc5e2a44 libspe2-2.2.80-95.tar.gz 153122
diff --git a/sys-libs/libspe2/files/spe.rc6 b/sys-libs/libspe2/files/spe.rc6
new file mode 100644
index 000000000000..22f9bfe33464
--- /dev/null
+++ b/sys-libs/libspe2/files/spe.rc6
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libspe2/files/spe.rc6,v 1.1 2007/10/25 20:28:57 lu_zero Exp $
+
+depend() {
+ # you need the elfspe bin
+ need localmount
+}
+
+start() {
+ ebegin "Registering elfspe to binfmt"
+
+ if test -f /proc/sys/fs/binfmt_misc/spe
+ then
+ eerror "elfspe already registered"
+ return 1
+ else
+ if test -f /proc/sys/fs/binfmt_misc/register
+ then
+ echo ':spe:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x17::/usr/bin/elfspe2:' >/proc/sys/fs/binfmt_misc/register
+ eend $?
+ else
+ eerror "binfmt not available"
+ return 1
+ fi
+ fi
+}
+
+stop() {
+ if ! test -f /proc/sys/fs/binfmt_misc/spe
+ then
+ eerror "elfspe not present"
+ return 1
+ else
+ echo -1 > /proc/sys/fs/binfmt_misc/spe
+ eend $?
+ fi
+}
diff --git a/sys-libs/libspe2/libspe2-2.2.80_p95.ebuild b/sys-libs/libspe2/libspe2-2.2.80_p95.ebuild
new file mode 100644
index 000000000000..152f60028eef
--- /dev/null
+++ b/sys-libs/libspe2/libspe2-2.2.80_p95.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libspe2/libspe2-2.2.80_p95.ebuild,v 1.1 2007/10/25 20:28:57 lu_zero Exp $
+inherit eutils
+
+MY_P=${P/_p/-}
+
+DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS"
+HOMEPAGE="http://sourceforge/projects/libspe"
+SRC_URI="mirror://sourceforge/libspe/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~ppc64"
+IUSE="debug"
+
+S="${WORKDIR}/${P//_p*}"
+
+DEPEND=""
+# This packages also provides libspe1
+RDEPEND="!sys-libs/libspe"
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ SYSROOT=""
+else
+ SYSROOT="/usr/${CTARGET}"
+fi
+
+src_unpack () {
+ unpack ${A}
+ #just in case something is missing
+ cd "${S}"
+}
+
+src_compile() {
+ myconf=""
+ use debug && myconf="${myconf} DEBUG=1"
+ make all elfspe-all CROSS="${CTARGET}-" \
+ prefix=/usr SYSROOT="$SYSROOT" ${myconf} \
+ speinclude=/usr/spu-elf/include
+}
+
+src_install() {
+ make CROSS="${CTARGET}-" prefix=/usr \
+ speinclude=/usr/spu-elf/include \
+ SYSROOT="$SYSROOT" \
+ DESTDIR="$D" install elfspe-install
+ newinitd "${FILESDIR}/spe.rc6" elfspe
+}
+
+pkg_postinst() {
+ einfo "You may want to register elfspe to binfmt using the"
+ einfo "provided initscript"
+ einfo "# rc-update add elfspe boot"
+ ewarn "make sure your fstab contains the following line"
+ ewarn "none /spu spufs defaults
+ 0 0"
+ ewarn "and that you have spufs support enabled in the kernel"
+}
diff --git a/sys-libs/libspe2/metadata.xml b/sys-libs/libspe2/metadata.xml
new file mode 100644
index 000000000000..d0708491d2d5
--- /dev/null
+++ b/sys-libs/libspe2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>lu_zero@gentoo.org</email>
+</maintainer>
+</pkgmetadata>