diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-12-15 20:05:07 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-12-15 20:05:07 +0000 |
commit | 0ec56ddaf770891c066e04f56ce2fc85297c404e (patch) | |
tree | d93d22b1e6a272af14f9faabc903649a142e8678 | |
parent | ps3 misc utilities (diff) | |
download | lu_zero-0ec56ddaf770891c066e04f56ce2fc85297c404e.tar.gz lu_zero-0ec56ddaf770891c066e04f56ce2fc85297c404e.tar.bz2 lu_zero-0ec56ddaf770891c066e04f56ce2fc85297c404e.zip |
Tentative ebuild
svn path=/; revision=65
-rw-r--r-- | sys-libs/libspe2/Manifest | 20 | ||||
-rw-r--r-- | sys-libs/libspe2/files/spe.rc6 | 38 | ||||
-rw-r--r-- | sys-libs/libspe2/libspe2-2.0.1.ebuild | 55 |
3 files changed, 113 insertions, 0 deletions
diff --git a/sys-libs/libspe2/Manifest b/sys-libs/libspe2/Manifest new file mode 100644 index 0000000..1d1a542 --- /dev/null +++ b/sys-libs/libspe2/Manifest @@ -0,0 +1,20 @@ +AUX spe.rc6 903 RMD160 916add4554b5428c38db255004f6b35ad3db8a37 SHA1 9fdae1283e57de2a33efda319478a614c5d90f31 SHA256 5b36c26f47dc30ca824a36021f0f2110f942148ad369022cd09e00b045b2a6a5 +MD5 b77709b478c9fa2e7847c1ddd9419a48 files/spe.rc6 903 +RMD160 916add4554b5428c38db255004f6b35ad3db8a37 files/spe.rc6 903 +SHA256 5b36c26f47dc30ca824a36021f0f2110f942148ad369022cd09e00b045b2a6a5 files/spe.rc6 903 +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 1201 RMD160 7c40b8bd9d2396f6a407780200b71d8e5ae8e023 SHA1 61d240935e2fbe611d80f01fafcaf112f999cb2a SHA256 9f1f38a5e585f583bd3edb465b62253b80a85082c1d52d0d42965da8fd819a95 +MD5 447b3a7394e4d98e895a958dcd0f5829 libspe-1.2.0.ebuild 1201 +RMD160 7c40b8bd9d2396f6a407780200b71d8e5ae8e023 libspe-1.2.0.ebuild 1201 +SHA256 9f1f38a5e585f583bd3edb465b62253b80a85082c1d52d0d42965da8fd819a95 libspe-1.2.0.ebuild 1201 +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/libspe2/files/spe.rc6 b/sys-libs/libspe2/files/spe.rc6 new file mode 100644 index 0000000..0776e88 --- /dev/null +++ b/sys-libs/libspe2/files/spe.rc6 @@ -0,0 +1,38 @@ +#!/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 + 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/libspe2/libspe2-2.0.1.ebuild b/sys-libs/libspe2/libspe2-2.0.1.ebuild new file mode 100644 index 0000000..b0ce544 --- /dev/null +++ b/sys-libs/libspe2/libspe2-2.0.1.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" +} |