diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-12-25 03:48:16 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-12-25 03:48:16 +0000 |
commit | 351894ecacf0d1c69bce1601a511cbf7ecf1c433 (patch) | |
tree | e998516f50c12643f9b49f96a458cdd55d043631 /sys-libs/libspe | |
download | cell-351894ecacf0d1c69bce1601a511cbf7ecf1c433.tar.gz cell-351894ecacf0d1c69bce1601a511cbf7ecf1c433.tar.bz2 cell-351894ecacf0d1c69bce1601a511cbf7ecf1c433.zip |
Populating the overlay
svn path=/; revision=1
Diffstat (limited to 'sys-libs/libspe')
-rw-r--r-- | sys-libs/libspe/Manifest | 20 | ||||
-rw-r--r-- | sys-libs/libspe/files/digest-libspe-1.1.0 | 3 | ||||
-rw-r--r-- | sys-libs/libspe/files/digest-libspe-1.2.0 | 3 | ||||
-rw-r--r-- | sys-libs/libspe/files/spe.rc6 | 39 | ||||
-rw-r--r-- | sys-libs/libspe/libspe-1.1.0.ebuild | 55 | ||||
-rw-r--r-- | sys-libs/libspe/libspe-1.2.0.ebuild | 55 |
6 files changed, 175 insertions, 0 deletions
diff --git a/sys-libs/libspe/Manifest b/sys-libs/libspe/Manifest new file mode 100644 index 0000000..0d7fe9d --- /dev/null +++ b/sys-libs/libspe/Manifest @@ -0,0 +1,20 @@ +AUX spe.rc6 916 RMD160 2dc581a938e2e720706302f5891dcab84fedd847 SHA1 ea69265526ea1c9943dbeef1966d623d60852f28 SHA256 291dc275e9b1605d07f66503835bd0641798492803958024ceb97df97a27c784 +MD5 4600fa2dcfbf3c0f3567cf22b3a57b89 files/spe.rc6 916 +RMD160 2dc581a938e2e720706302f5891dcab84fedd847 files/spe.rc6 916 +SHA256 291dc275e9b1605d07f66503835bd0641798492803958024ceb97df97a27c784 files/spe.rc6 916 +DIST libspe-1.1.0.tar.gz 70187 RMD160 602f5f03184ff79b3b30731bd491a8758be00442 SHA1 fb47d4071a9653282477d469193d4e392e2cf226 SHA256 06aa9eedc2fd5c7c17eb387b186c9d6ebf83e1ebe136e80fe6ff4d3b11b654b3 +DIST libspe-1.2.0.tar.gz 108209 RMD160 e5e8149fa39d4d46becf1fd86e629fecf6f89fd6 SHA1 45beb112152d2b7c53aae5ed9e872d7603b6e15d SHA256 c2f1222300f7521b61f7f614a027d2b17baefb729083e50b4ffee7d8854b861d +EBUILD libspe-1.1.0.ebuild 1258 RMD160 00baa76287f9f549731d452001e5bad78a87346b SHA1 5f5dc86cf3a7d5fa1bba153500a58f9e02c90fe7 SHA256 3114bc81acd80bfebb3b0d13eeeb18ba5c3772727adae584d46bc596ad0e9e4f +MD5 ef7b5c1c8781a7daba5897c942240192 libspe-1.1.0.ebuild 1258 +RMD160 00baa76287f9f549731d452001e5bad78a87346b libspe-1.1.0.ebuild 1258 +SHA256 3114bc81acd80bfebb3b0d13eeeb18ba5c3772727adae584d46bc596ad0e9e4f libspe-1.1.0.ebuild 1258 +EBUILD libspe-1.2.0.ebuild 1208 RMD160 154d4204f312ef74c06177f530c8498ac97c2128 SHA1 29f5337e7690252822dcd62ec258002701fa84e4 SHA256 b10fceaa6077ca9c3e0c831387c3d712260610296177ba9a24f9a56b85354e41 +MD5 9c43f07447adeffc64f5b1ec9e2de616 libspe-1.2.0.ebuild 1208 +RMD160 154d4204f312ef74c06177f530c8498ac97c2128 libspe-1.2.0.ebuild 1208 +SHA256 b10fceaa6077ca9c3e0c831387c3d712260610296177ba9a24f9a56b85354e41 libspe-1.2.0.ebuild 1208 +MD5 e5327239f6765afa9f2ad1ed8803e760 files/digest-libspe-1.1.0 235 +RMD160 4633f57c4b329fc740f719f4ff56497c5467afd5 files/digest-libspe-1.1.0 235 +SHA256 c465f113503a4c2b64ea5868cb49a56de2d533f38780518d13819c201e2e9d18 files/digest-libspe-1.1.0 235 +MD5 9b38cfbc6dc93590d3a1f2e8e45e0c9b files/digest-libspe-1.2.0 238 +RMD160 1a2e37bf40302d1d9d7e90bc24ded7689feb38a2 files/digest-libspe-1.2.0 238 +SHA256 98363fb7a7684bce68d68ad7510b8724fce155b4eb022365b8f1656b1582bb24 files/digest-libspe-1.2.0 238 diff --git a/sys-libs/libspe/files/digest-libspe-1.1.0 b/sys-libs/libspe/files/digest-libspe-1.1.0 new file mode 100644 index 0000000..b0da9d5 --- /dev/null +++ b/sys-libs/libspe/files/digest-libspe-1.1.0 @@ -0,0 +1,3 @@ +MD5 8e8122e320637123ab780692afef0887 libspe-1.1.0.tar.gz 70187 +RMD160 602f5f03184ff79b3b30731bd491a8758be00442 libspe-1.1.0.tar.gz 70187 +SHA256 06aa9eedc2fd5c7c17eb387b186c9d6ebf83e1ebe136e80fe6ff4d3b11b654b3 libspe-1.1.0.tar.gz 70187 diff --git a/sys-libs/libspe/files/digest-libspe-1.2.0 b/sys-libs/libspe/files/digest-libspe-1.2.0 new file mode 100644 index 0000000..56a2bc9 --- /dev/null +++ b/sys-libs/libspe/files/digest-libspe-1.2.0 @@ -0,0 +1,3 @@ +MD5 904912135ccaddb6e2e751ae11036250 libspe-1.2.0.tar.gz 108209 +RMD160 e5e8149fa39d4d46becf1fd86e629fecf6f89fd6 libspe-1.2.0.tar.gz 108209 +SHA256 c2f1222300f7521b61f7f614a027d2b17baefb729083e50b4ffee7d8854b861d libspe-1.2.0.tar.gz 108209 diff --git a/sys-libs/libspe/files/spe.rc6 b/sys-libs/libspe/files/spe.rc6 new file mode 100644 index 0000000..e84790a --- /dev/null +++ b/sys-libs/libspe/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: $ + +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/elfspe:' >/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/libspe/libspe-1.1.0.ebuild b/sys-libs/libspe/libspe-1.1.0.ebuild new file mode 100644 index 0000000..47d12af --- /dev/null +++ b/sys-libs/libspe/libspe-1.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS" +HOMEPAGE="http://www.bsc.es/projects/deepcomputing/linuxoncell/stable/libspe.html" +SRC_URI="http://www.bsc.es/projects/deepcomputing/linuxoncell/stable/libspe/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~ppc ~ppc64" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +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 +} + +src_compile() { + myconf="" + use debug && myconf="${myconf} DEBUG=1" + make CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" ${myconf} +} + +src_install() { + make CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" \ + DESTDIR="$D" install + cp ${FILESDIR}/spe.rc6 ${T}/elfspe + doinitd ${T}/elfspe +} + + +pkg_postinst() { + einfo "You may want to register elfspe to binfmt using the" + einfo "provided initscript" + einfo "# rc-update add elfspe boot" +} diff --git a/sys-libs/libspe/libspe-1.2.0.ebuild b/sys-libs/libspe/libspe-1.2.0.ebuild new file mode 100644 index 0000000..8d18156 --- /dev/null +++ b/sys-libs/libspe/libspe-1.2.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS" +HOMEPAGE="http://ozlabs.org/pipermail/cbe-oss-dev/" +SRC_URI="http://dev.gentoo.org/~lu_zero/distfiles/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~ppc ~ppc64" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +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 +} + +src_compile() { + myconf="" + use debug && myconf="${myconf} DEBUG=1" + make CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" ${myconf} +} + +src_install() { + make CROSS="${CTARGET}-" prefix=/usr SYSROOT="$SYSROOT" \ + DESTDIR="$D" install +# cp ${FILESDIR}/spe.rc6 ${T}/elfspe +# doinitd ${T}/elfspe +} + + +#pkg_postinst() { +# einfo "You may want to register elfspe to binfmt using the" +# einfo "provided initscript" +# einfo "# rc-update add elfspe boot" +#} |