summaryrefslogtreecommitdiff
path: root/dev-lang/pasm
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 /dev-lang/pasm
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-lang/pasm')
-rw-r--r--dev-lang/pasm/Manifest6
-rw-r--r--dev-lang/pasm/files/pasm-1.7-ppc.patch29
-rw-r--r--dev-lang/pasm/metadata.xml13
-rw-r--r--dev-lang/pasm/pasm-1.7.ebuild28
4 files changed, 76 insertions, 0 deletions
diff --git a/dev-lang/pasm/Manifest b/dev-lang/pasm/Manifest
new file mode 100644
index 000000000000..735df6d3160f
--- /dev/null
+++ b/dev-lang/pasm/Manifest
@@ -0,0 +1,6 @@
+AUX pasm-1.7-ppc.patch 901 SHA256 a1899ef32fde4b2750c9818a4cc827b5adb79751e794169234e88aca5197f9c7 SHA512 685af1b74e3c3136aab30292ce6dd8fa412a1f214da23426e7ecb7fef728faf50f9dda58cadda97004b386f1244d47cde094dd09ad97c0e68de8484667c73457 WHIRLPOOL 72cacc1993ac4c4474d994a630744dd09a5a93b333a05147d071e54e4141dd4d8467163bb77435cde4586522beb2cfc9e06678013f2d538bae9461dde033a3f7
+DIST pasm.tar.gz 82136 SHA256 c8e11cccdf70e02f6bcb2edd76606bd6b745904a0858350ab739a8ea372adacd SHA512 313e4ad694704ad59619c46353c53ef9bd5529b6c9faee5cc6124dd0175f7b5a87268d2c26045f0639a0002311828b227915f30e697f8adedcd4256774674283 WHIRLPOOL 01631ddbf1c4c34487ee0558b149b5fee8b7c179ca23a764a0d6cda091d116d9488aa94e54f8d6992c78545da93972576c4611f60a7f87aa32d26a25a0d9cddd
+EBUILD pasm-1.7.ebuild 654 SHA256 403b389ab8099348d9e9399220372e67d6cf0d8c0eca8faa152175a574f9ad4a SHA512 f9c3ea8966ca341959aae88695dfdcd687227b636d0d6e40aaa0a36578e057145afc9ac4ce8f6381f4f735909967d24c871f75d269442f0f21521b6624b9fa97 WHIRLPOOL e0a48294053e3b7275cffe389a330b8e49727afe7c0a7662f9d6396a9aea1cdc7870c8eff8d101f37b8374eb461fc7981b4ef7e2c101408145680e71b091c9b6
+MISC ChangeLog 2536 SHA256 f6f1be7a9db09ff5aed8ac8cf4799d19d1e8ea944819077657dc01bbd9d9c1bc SHA512 28d320af198ee3ccfc0fcb10cbab96fed9af7112bf501bf81fcc5f48223d815634a0e3599e9081e9bb13172087e49c1ca6b06fa2357fedb9fbdddb2960f6edc8 WHIRLPOOL 9544153d9ef962bce447ec48a4ba2505ed8a30fe195e8f499217b7ee1302772aa90255e83560a8ebcf9cd9b3d7f32c1203e35aa1d7b86671b38e7245164b5a49
+MISC ChangeLog-2015 1089 SHA256 e8794a1a2b95e0943f2de8b8da4f346daf097cb45d94b82f40d58bcc5b29e4af SHA512 c4d3f109861b15c29620f9b7dbe14ae3b78114ff7141b53109ea254a5a43be0ac4629985f3cf5d1c812625c3a1a7ca6f49110e2585db371001a12e74960e5a50 WHIRLPOOL 6c817e42ebe7e7b41b7617debeae7bbbfada5dd43b7c0ed8aee8ac7ff073790d72138fcce8f0b83c7511b1d309d30017bde28c19ecef29d8e75a9d04146451d4
+MISC metadata.xml 614 SHA256 c0328c24316642afd1a98320c2a9fddf7f0400fa9bf856f2758ca770fb3c5d3d SHA512 fd8449a228746b428cddb71477efdc421fba98b60ef72e1459c790a2df9f5898163a7e4fee2e9950d176f6dbe65525d41fb676e66a004d0427886dec878095e0 WHIRLPOOL 9d1e33776fc3fd58ccd9136dc38fb49923fe38313d30f3dae65b79759bce6dee0b843d331420ca4f1df32cc4ac7572fd8d38639cb12faf53692336b6a96d423e
diff --git a/dev-lang/pasm/files/pasm-1.7-ppc.patch b/dev-lang/pasm/files/pasm-1.7-ppc.patch
new file mode 100644
index 000000000000..24ff8056b937
--- /dev/null
+++ b/dev-lang/pasm/files/pasm-1.7-ppc.patch
@@ -0,0 +1,29 @@
+diff -Naur pasm-1.6c.orig/Makefile pasm-1.6c/Makefile
+--- pasm-1.6c.orig/Makefile 2001-05-14 18:06:01.000000000 +0200
++++ pasm-1.6c/Makefile 2004-02-28 16:19:21.000000000 +0100
+@@ -14,9 +14,9 @@
+
+ # Unix
+ CC = gcc
+-COPTS = -O2 -fomit-frame-pointer -DIrix53 -DOFMT_DEFAULT=OFMT_ELF
++COPTS = $(CFLAGS) -DLinuxPPC -DOFMT_DEFAULT=OFMT_ELF
+ CLIBS = -lm
+-DIR = Irix5.3
++DIR = LinuxPPC
+
+
+ PPCobj = $(DIR)/main.o $(DIR)/support.o $(DIR)/pass.o $(DIR)/eval.o \
+diff -Naur pasm-1.6c.orig/ppcasm.h pasm-1.6c/ppcasm.h
+--- pasm-1.6c.orig/ppcasm.h 2003-11-01 13:49:29.000000000 +0100
++++ pasm-1.6c/ppcasm.h 2004-02-28 16:16:38.000000000 +0100
+@@ -162,6 +162,10 @@
+ #define MACHINE "Linux/Alpha"
+ #define LITTLEENDIAN
+ #define TYPES64BIT
++#elif defined (LinuxPPC)
++#define MACHINE "Linux/PPC"
++#define BIGENDIAN
++#define STDTYPES
+ #elif defined (Wintel) /* jab */
+ #define MACHINE "Wintel"
+ #define LITTLEENDIAN
diff --git a/dev-lang/pasm/metadata.xml b/dev-lang/pasm/metadata.xml
new file mode 100644
index 000000000000..da6813c4e7fc
--- /dev/null
+++ b/dev-lang/pasm/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ pasm is a portable assembler for processors of the PowerPC family,
+ written completely in ANSI-C. All PPC standard instructions, AltiVec
+ instructions, all 32-bit extended mnemonics and most of the 64-bit
+ extended mnemonics are supported. pasm knows about nearly 50 directives.
+ Among them are directives for macros, conditional assembly,
+ include files, base-relative addressing (small data), etc..
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-lang/pasm/pasm-1.7.ebuild b/dev-lang/pasm/pasm-1.7.ebuild
new file mode 100644
index 000000000000..f5ccf5f9f865
--- /dev/null
+++ b/dev-lang/pasm/pasm-1.7.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="A portable assembler for processors of the PowerPC family"
+SRC_URI="http://devnull.owl.de/~frank/${PN}.tar.gz"
+HOMEPAGE="http://sun.hasenbraten.de/~frank/projects/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+KEYWORDS="~ppc ~ppc-macos"
+
+src_unpack() {
+ mkdir -p "${S}"/LinuxPPC
+ cd "${S}"
+ unpack ${A}
+ epatch "${FILESDIR}/${P}-ppc.patch"
+}
+
+src_compile() {
+ emake || die "Compilation failed"
+}
+
+src_install () {
+ dobin pasm || die "Failed to install pasm binary"
+ dodoc pasm.doc || die "Failed to install pasm documentation"
+}