summaryrefslogtreecommitdiff
path: root/sys-apps/spu-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/spu-tools
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/spu-tools')
-rw-r--r--sys-apps/spu-tools/Manifest7
-rw-r--r--sys-apps/spu-tools/files/spu-tools-2.3.0.136-buildsystem.patch32
-rw-r--r--sys-apps/spu-tools/files/spu-tools-2.3.0.136-format-security.patch16
-rw-r--r--sys-apps/spu-tools/metadata.xml10
-rw-r--r--sys-apps/spu-tools/spu-tools-2.3.0.136.ebuild37
5 files changed, 102 insertions, 0 deletions
diff --git a/sys-apps/spu-tools/Manifest b/sys-apps/spu-tools/Manifest
new file mode 100644
index 000000000000..caf409514886
--- /dev/null
+++ b/sys-apps/spu-tools/Manifest
@@ -0,0 +1,7 @@
+AUX spu-tools-2.3.0.136-buildsystem.patch 983 SHA256 eb0b57a5355d36411819c2e1abace58b4c3206449855111cbc05c76ddedebfe0 SHA512 093f9c881a8b60d027d24ceb1b120d7f2d475a688dff82df3418b115b613218555e885067cc67e8bd1ebd3b66024d1b6ff6b51d8d2ea73f3244dc2339a5e805f WHIRLPOOL 9e4af644f68fe214c0cac74f71a735362c6a0f7310224d1b607fdd179b9c65b9a4202fb1cf705d583838a1b9b644970b98098b4418085e77b27864897f9880a4
+AUX spu-tools-2.3.0.136-format-security.patch 431 SHA256 f6ee487909a57a95a30bfdf95b6d973bfa0dcb3ca47ab5a15a26ce07e465ea77 SHA512 33ea0520587668e10876e3ce62f14cc0b751e69b1f4816456a0cdd4cfdfd542f9b3896ae80f6ba095eccb087253c10a924fac18cdc66a5f7cb88bb83bffdf488 WHIRLPOOL 8c7444594b9c6eb06b05e8440c08ca8029ef85a92035e20c1d61b616e77eabeb590aeea3357e74a6f379ee0b8ee50271debf53c9eaad1fba6f29304873b6370b
+DIST spu-tools-2.3.0.136.tar.gz 21981 SHA256 3b20bb66d42e77757390c62fe13ba6e57397f64c6c8688ae0dcfc901805642c4 SHA512 d25ef8fda067ee98eb698859c21f497ae1a09a6d791c0c2063957beb022b2f2946f9df7e78907b4d3b2f71021fa3c2f76012db7154faaee5be3285a0224c7612 WHIRLPOOL 6cd2b674d6c5e4c8ae9f1af75cdb46be2688bf8a5b441c93a3e66e4e0500746799a910eef396bec17fefd9453dd6961d23607f84017c7d25e5113ee13dd486c1
+EBUILD spu-tools-2.3.0.136.ebuild 744 SHA256 11436af02ef552a397bb5584fd36d02c421be9eb55d301ad8f5ff7e90019ff31 SHA512 ca89359550b69857cc32cdada73d34a821ab8c6cd1ee5edb874acaa7102ff935fd3d5a38ed02fd0542ff9d144fbc5319665445ff2bbc0352bd32bdd85c55ab2e WHIRLPOOL e87beaf2540b904c138ca9d3cb5eeb07d69247ce741bb3b54cd00c6da906a13fd236e8c08e67f5587c0c372b24a21888a4c520551ca6324e1b8f900d2ee12091
+MISC ChangeLog 3665 SHA256 d59cb821bc1e54c5ac831ef5c50c95c3921be807b4ce0532b784e2d0c40f9b4f SHA512 c4e6691cf599b1f1be0b4455660b5316e2a50a3f3110047b6e036d0d2ac0d8ac41a2f0d4bb7c8924ce3556dea2d5ad210dfa7bc50f006ec3cb0849fe57928249 WHIRLPOOL a9678baf7790e6ae73ecfacf41b68fe7278fb5aadce5772529fe563d831f6e69f8ecff8e2f0bf89b06685c9a99761524fd1fb4e9c3ac3b3e6da08f23669ec471
+MISC ChangeLog-2015 645 SHA256 93d7ee051e40802940f1c2da27206fac920c3900605e5025bd517f4ed9c6f402 SHA512 53b71e17f7b5da35ad43df72d985a9613bdd786e0039a3d446d975bc7a627b33c340fec89bb4607c185f424cd49f5aa95bf2a7e4851172d418f3ee07f29557bf WHIRLPOOL 7cb476ed6c80275ebb5ea025b4bb81d21730c2cd6accc6ce16872674f42c795bacab75512c89a5959b6859d445319a12bd6dcabf36a7e782ea7c794b9159cab9
+MISC metadata.xml 294 SHA256 9009317e3a2291c4f217c7d5d6ab6c1c33e4344ddf989f48cd70ef45608b9370 SHA512 f27b273f7396a60b20a0a8ddbec4a93b8b87730b00a190913a561f3f767248bb0dd0956c24f93ecb6f6423cc9fd3413f20ebe47f6b3cf2b94a900605482ca62e WHIRLPOOL 5b570d026d199a31123d11f0aa4d123cab43d7f883772f615cb56419232149a11babe3c0242fb9d6dce08b94d7ac627a00e67ea0bbd94f1637dbd1d7364b0291
diff --git a/sys-apps/spu-tools/files/spu-tools-2.3.0.136-buildsystem.patch b/sys-apps/spu-tools/files/spu-tools-2.3.0.136-buildsystem.patch
new file mode 100644
index 000000000000..0d1e25ec9659
--- /dev/null
+++ b/sys-apps/spu-tools/files/spu-tools-2.3.0.136-buildsystem.patch
@@ -0,0 +1,32 @@
+ Makefile | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 9c4b69b..cf8958d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,8 +1,9 @@
+ ARCHIV := spu-tools.tar.gz
+
+-CC = gcc
+-CFLAGS = -g -Wall
++CC ?= gcc
++CFLAGS ?= -g -Wall
+ PREFIX = $(DESTDIR)/usr
++LIBS ?= -lncurses
+
+ objs = ctx-info.o spu-info.o proc-info.o general-info.o spu-top.o spu-ps.o
+ target = spu-top spu-ps
+@@ -16,10 +17,10 @@ spu-top.o: spu-top.c spu-tools.h
+ spu-ps.o: spu-ps.c spu-tools.h
+
+ spu-top: ctx-info.o spu-info.o proc-info.o general-info.o spu-top.o
+- $(CC) $(CFLAGS) -lncurses ctx-info.o spu-info.o proc-info.o general-info.o spu-top.o -o spu-top
++ $(CC) $(CFLAGS) $(LDFLAGS) ctx-info.o spu-info.o proc-info.o general-info.o spu-top.o -o spu-top $(LIBS)
+
+ spu-ps: ctx-info.o spu-ps.o
+- $(CC) $(CFLAGS) ctx-info.o spu-ps.o -o spu-ps
++ $(CC) $(CFLAGS) $(LDFLAGS) ctx-info.o spu-ps.o -o spu-ps
+
+ clean:
+ @rm -Rf *.o *~ $(objs) $(target) spu-top.1 spu-ps.1
diff --git a/sys-apps/spu-tools/files/spu-tools-2.3.0.136-format-security.patch b/sys-apps/spu-tools/files/spu-tools-2.3.0.136-format-security.patch
new file mode 100644
index 000000000000..c039e2674e78
--- /dev/null
+++ b/sys-apps/spu-tools/files/spu-tools-2.3.0.136-format-security.patch
@@ -0,0 +1,16 @@
+ spu-ps.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/spu-ps.c b/spu-ps.c
+index 8e0d667..e4e6ac0 100644
+--- a/spu-ps.c
++++ b/spu-ps.c
+@@ -59,7 +59,7 @@ static void dump_ctxs_or_spus(void **ctxs_or_spus, struct field *fields)
+ chars += print_ctx_field((struct ctx *)ctxs_or_spus[i],
+ buf+chars, fields[j].id, fields[j].format);
+ }
+- printf(buf);
++ printf("%s", buf);
+ printf("\n");
+ i++;
+ }
diff --git a/sys-apps/spu-tools/metadata.xml b/sys-apps/spu-tools/metadata.xml
new file mode 100644
index 000000000000..118d82b0c46f
--- /dev/null
+++ b/sys-apps/spu-tools/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>
diff --git a/sys-apps/spu-tools/spu-tools-2.3.0.136.ebuild b/sys-apps/spu-tools/spu-tools-2.3.0.136.ebuild
new file mode 100644
index 000000000000..63f188280172
--- /dev/null
+++ b/sys-apps/spu-tools/spu-tools-2.3.0.136.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P=${P/_p/-}
+
+DESCRIPTION="CELL spu ps and top alike utilities"
+HOMEPAGE="https://sourceforge.net/projects/libspe"
+SRC_URI="mirror://sourceforge/libspe/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="ppc ppc64"
+
+RDEPEND="
+ sys-libs/ncurses:0=
+"
+DEPEND="
+ ${RDEPEND}
+ sys-apps/help2man
+"
+
+S="${WORKDIR}/${PN}/src"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-buildsystem.patch \
+ "${FILESDIR}"/${P}-format-security.patch
+ tc-export CC
+ append-cppflags -std=gnu89
+ export CFLAGS="${CFLAGS}"
+ export LDFLAGS="${LDFLAGS}"
+ export LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
+}