summaryrefslogtreecommitdiffstats
path: root/dev-util/decuda
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /dev-util/decuda
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'dev-util/decuda')
-rw-r--r--dev-util/decuda/Manifest3
-rw-r--r--dev-util/decuda/decuda-0.4.2.ebuild28
-rw-r--r--dev-util/decuda/files/decuda-ds-setup.patch74
3 files changed, 105 insertions, 0 deletions
diff --git a/dev-util/decuda/Manifest b/dev-util/decuda/Manifest
new file mode 100644
index 0000000..2b354a8
--- /dev/null
+++ b/dev-util/decuda/Manifest
@@ -0,0 +1,3 @@
+AUX decuda-ds-setup.patch 2640 RMD160 cd1391e1bf63ae32f310322abcb4a6f7c3ba841b SHA1 6d1e361107e8cf938c9d142ddca48cfb52318832 SHA256 39887d4299a86fb1d6fb03f269a992bc0fa5542b1774031c8a29937c978fc1ef
+DIST decuda-0.4.2.tar.gz 143178 RMD160 8c063341cf56b4e39020be0704e8a2fcbdabaff5 SHA1 8163b8d99c3e43c93b1fddf8a3361e003d8eb664 SHA256 23be8f37fb98e5df47b9c4e29f01ed06646edd764a661de98cc3e0e851bb7183
+EBUILD decuda-0.4.2.ebuild 730 RMD160 0556af6701c50161d518dacae5b703ce230d8d67 SHA1 339f8977552e8e687ee905bdab75f26f6cea5a59 SHA256 7a4c3a76390528133710f38603668592962af49b89ed4915e272013e1f633f0f
diff --git a/dev-util/decuda/decuda-0.4.2.ebuild b/dev-util/decuda/decuda-0.4.2.ebuild
new file mode 100644
index 0000000..91bc3bb
--- /dev/null
+++ b/dev-util/decuda/decuda-0.4.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpscorrelate/gpscorrelate-1.5.6.ebuild,v 1.3 2008/08/23 18:13:05 maekke Exp $
+
+inherit eutils
+
+MY_PV=${PV/_/-}
+
+DESCRIPTION="Assembler/Disassembler for NVIDIA CUDA binary (.cubin) format"
+HOMEPAGE="http://www.cs.rug.nl/~wladimir/decuda/"
+SRC_URI="http://www.cs.rug.nl/~wladimir/decuda/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+DEPEND="dev-lang/python"
+
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-ds-setup.patch || die
+}
+
+src_install() {
+ python setup.py install --root="${D}" --no-compile
+ dobin cudasm decuda decudaraw
+}
diff --git a/dev-util/decuda/files/decuda-ds-setup.patch b/dev-util/decuda/files/decuda-ds-setup.patch
new file mode 100644
index 0000000..622bf5e
--- /dev/null
+++ b/dev-util/decuda/files/decuda-ds-setup.patch
@@ -0,0 +1,74 @@
+diff -dPNur decuda-0.4.2/decuda decuda-0.4.2-ds/decuda
+--- decuda-0.4.2/decuda 2007-12-02 18:57:04.000000000 +0100
++++ decuda-0.4.2-ds/decuda 2008-11-27 18:18:35.000000000 +0100
+@@ -3,11 +3,12 @@
+ # sm1_1 (G80) disassembler (decuda)
+ # Wladimir J. van der Laan <laanwj@gmail.com>, 2007
+
+-from CubinFile import *
++from Decuda.CubinFile import *
++from Decuda.Formatter import AnsiFormatter
+ from sys import stdout, stderr
+ import sys, getopt
+
+-from version import VERSION
++from Decuda.version import VERSION
+
+ def usage():
+ stdout.write("Decuda .cubin disassembler version %s\n" % VERSION)
+diff -dPNur decuda-0.4.2/decudaraw decuda-0.4.2-ds/decudaraw
+--- decuda-0.4.2/decudaraw 2007-12-02 14:22:57.000000000 +0100
++++ decuda-0.4.2-ds/decudaraw 2008-11-27 18:19:07.000000000 +0100
+@@ -2,8 +2,8 @@
+ # sm1_1 (G80) disassembler (decuda)
+ # Wladimir J. van der Laan <laanwj@gmail.com>, 2007
+
+-from Disass import *
+-from CubinFile import *
++from Decuda.Disass import *
++from Decuda.CubinFile import *
+ from sys import stdout, stderr
+ import sys, getopt
+ from array import array
+Files decuda-0.4.2/Util.pyc and decuda-0.4.2-ds/Util.pyc differ
+Files decuda-0.4.2/version.pyc and decuda-0.4.2-ds/version.pyc differ
+diff -dPNur decuda-0.4.2/setup.py decuda-0.4.2-ds/setup.py
+--- decuda-0.4.2/setup.py 1970-01-01 01:00:00.000000000 +0100
++++ decuda-0.4.2-ds/setup.py 2008-11-27 18:17:20.000000000 +0100
+@@ -0,0 +1,11 @@
++from distutils.core import setup
++
++setup (name='Decuda',
++ version='0.4.2',
++ description='Assembler and disassembler for the NVIDIA CUDA binary (.cubin) format',
++ author='Wladimir J. van der Laan',
++ author_email='laanwj@gmail.com',
++ url='http://www.cs.rug.nl/~wladimir/decuda/',
++ packages=['Decuda'],
++ package_dir={'Decuda': '.'},
++)
+diff -dPNur decuda-0.4.2/cudasm decuda-0.4.2-ds/cudasm
+--- decuda-0.4.2/cudasm 2007-12-02 18:57:04.000000000 +0100
++++ decuda-0.4.2-ds/cudasm 2008-11-27 18:19:37.000000000 +0100
+@@ -3,12 +3,12 @@
+ # sm1_1 (G80) disassembler (decuda)
+ # Wladimir J. van der Laan <laanwj@gmail.com>, 2007
+
+-from Assembler import *
+-from CubinFile import *
++from Decuda.Assembler import *
++from Decuda.CubinFile import *
+ from sys import stdout, stderr
+ import sys, getopt
+
+-from version import VERSION
++from Decuda.version import VERSION
+
+ def usage():
+ stdout.write("Cudasm .cubin assembler version %s\n" % VERSION)
+diff -dPNur decuda-0.4.2/__init__.py decuda-0.4.2-ds/__init__.py
+--- decuda-0.4.2/__init__.py 1970-01-01 01:00:00.000000000 +0100
++++ decuda-0.4.2-ds/__init__.py 2008-11-27 22:20:05.000000000 +0100
+@@ -0,0 +1 @@
++
+\ No newline at end of file