diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-libs/libspe2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-libs/libspe2')
-rw-r--r-- | sys-libs/libspe2/Manifest | 8 | ||||
-rw-r--r-- | sys-libs/libspe2/files/spe.rc6 | 38 | ||||
-rw-r--r-- | sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild | 66 | ||||
-rw-r--r-- | sys-libs/libspe2/libspe2-2.3.0_p135.ebuild | 67 | ||||
-rw-r--r-- | sys-libs/libspe2/metadata.xml | 10 |
5 files changed, 189 insertions, 0 deletions
diff --git a/sys-libs/libspe2/Manifest b/sys-libs/libspe2/Manifest new file mode 100644 index 000000000000..1212832d25ef --- /dev/null +++ b/sys-libs/libspe2/Manifest @@ -0,0 +1,8 @@ +AUX spe.rc6 904 SHA256 90e34529decb8755c17cc8659a3b9b23458fbcfe0c14ac80be05beed22eadd01 SHA512 3661fd96629b7c0326308de48b6a48fbead8d24ffe66e31e7a0313936edb39c44c8d5480b2b3d80ea9219690fb454ec5f385cf06ed4d434e67d46ec8e5038d80 WHIRLPOOL ca77ada50476ba83c4bf743c548a4d9f0b40725ee7f91e246a8c121b486a02d0d947356470eaab71e46b998748bcc7efa630e7f7bb27b7cc3ddd4638c5b89f20 +DIST libspe2-2.2.80-95.tar.gz 153122 SHA256 a8160fb41faa83247ffe132a25502fdd2237427a55ed3a22344058f3dc5e2a44 SHA512 8ae0665e37f1ba98972f2906831007dfde2a35bb46b317604aee1327dd19ea8556a01d84c990ec6735004a7ee1e67439c0e0cba34f0df749f4e98766ca26021b WHIRLPOOL f58a31899df6bc99d2239fd6d25cc23b1ce4e9af5d34f51766450e499b67e3ed01e8a32cdbeac4a4ce04931ec1e175316cc1aac166402387fd014d1f8876c888 +DIST libspe2-2.3.0.135.tar.gz 197848 SHA256 35b26c2f478feabce9b94ecca2b28726b462e29578aa49f38fb104f8ecf2d23a SHA512 31f4e9593d76de50ec5ab903aa82450fb5d9dea9300298831aeb408b083297ba88398fddc2110818bfdd5c13850cae95b9eced3b88f6627b732ea5a76e5d7435 WHIRLPOOL eaa641c1cc35afb5058c4e3ef677755317cf482747f7505e890ea5e6c6fe42ce4ef9953413154d5a27aeaeafeea03cf0aa33b6864bacf34723e8413acf12f3d5 +EBUILD libspe2-2.2.80_p95-r1.ebuild 1592 SHA256 7a80082195496277d2e8cce3a9efafeba741a8a332aaa5e867a7f4a6749e9766 SHA512 16a72044aa175d251598046969b16cd84df9a6d8801db062c903b06217b5f9dd6d8f1a71e565840ec4bfb94c00bff903689531d628a7100cb9f1e8abe6317d5e WHIRLPOOL 501559c4efe18a707bee901b0bc8c0c9fe5bbd30ce46c086321c81f4cceae17e2793091cb3c58b3091bbe9f205d5a07bbb1b7b901fd18390b8ff98fa460a09b2 +EBUILD libspe2-2.3.0_p135.ebuild 1608 SHA256 813e24bcbe926dbb3d3d08373195948960ff6bfd10fe730b97c8c6188099a3ee SHA512 3fb2cb26f87a54c12e59e0495c32139d620c02057ccc80bfc86f099fec0029d3e4f7fbce3af74914bc09bf06cc8272c4ed996859c57da6adfa0eb142c864bf7f WHIRLPOOL 7440706aed663c19eddc6059fa32b590b5a8786f1c330cb94e4a64cebd3f03bb9b4939ec80ebadd545702a7aeed053855c027f26230bb7f1414f2c2b2ca46a78 +MISC ChangeLog 2543 SHA256 212dc3af5e539e405179ce692957d8b941f6becca21b552339b91e6339255724 SHA512 7bb13abfe0dbb6a69e90201f0f62f92186dcfda1e6f8b8c7fe016b96fbbccb708d78ee82be708ea612b98000cf7137ac5813308ead4d6f3030e5a5f484abfac8 WHIRLPOOL 119ba2d17f0558a92bb7dda601caf52b9ad77b52084210096455822ee55f04555b774168ec933f12e0b65d447aa8d23bdc50ab2338e659e389ba11b905bc4ec0 +MISC ChangeLog-2015 1178 SHA256 6523cacb51f1649c59cb012c9d5aa747a5e7274f5d96c2a412f17c6d5ee25b75 SHA512 bf3c65475a16e803eadccf09d789c3adc3fbc5dcb067467b170f8698488175634fb94cc72a5ddcd67416b8b02839faf615926449f66756014250dae80265d4ad WHIRLPOOL 58c60c1162d09bc113e64596315659c1dc0ed31e73b7c8cd5e0352bbf04db99168f8e9f2d0521fd2dbdeb8f0fe496cf84c10f960933773c3ed46373ddbae4d2d +MISC metadata.xml 294 SHA256 9009317e3a2291c4f217c7d5d6ab6c1c33e4344ddf989f48cd70ef45608b9370 SHA512 f27b273f7396a60b20a0a8ddbec4a93b8b87730b00a190913a561f3f767248bb0dd0956c24f93ecb6f6423cc9fd3413f20ebe47f6b3cf2b94a900605482ca62e WHIRLPOOL 5b570d026d199a31123d11f0aa4d123cab43d7f883772f615cb56419232149a11babe3c0242fb9d6dce08b94d7ac627a00e67ea0bbd94f1637dbd1d7364b0291 diff --git a/sys-libs/libspe2/files/spe.rc6 b/sys-libs/libspe2/files/spe.rc6 new file mode 100644 index 000000000000..76c1c5cb29d3 --- /dev/null +++ b/sys-libs/libspe2/files/spe.rc6 @@ -0,0 +1,38 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/libspe2/libspe2-2.2.80_p95-r1.ebuild b/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild new file mode 100644 index 000000000000..ea48e49741ca --- /dev/null +++ b/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +inherit eutils + +MY_P=${P/_p/-} + +DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS" +HOMEPAGE="https://sourceforge.net/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-* ]] ; 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 || die +} + +src_install() { + make CROSS="${CTARGET}-" prefix=/usr \ + speinclude=/usr/spu-elf/include \ + SYSROOT="$SYSROOT" \ + DESTDIR="$D" install elfspe-install || die + 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/libspe2-2.3.0_p135.ebuild b/sys-libs/libspe2/libspe2-2.3.0_p135.ebuild new file mode 100644 index 000000000000..ce24d660f808 --- /dev/null +++ b/sys-libs/libspe2/libspe2-2.3.0_p135.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +inherit eutils + +MY_P=${P/_p/.} + +DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS" +HOMEPAGE="https://sourceforge.net/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-* ]] ; 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}" + echo "${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 || die +} + +src_install() { + make CROSS="${CTARGET}-" prefix=/usr \ + speinclude=/usr/spu-elf/include \ + SYSROOT="$SYSROOT" \ + DESTDIR="$D" install elfspe-install || die + 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..118d82b0c46f --- /dev/null +++ b/sys-libs/libspe2/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>lu_zero@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">libspe</remote-id> + </upstream> +</pkgmetadata> |