diff options
Diffstat (limited to 'dev-lang/pasm')
-rw-r--r-- | dev-lang/pasm/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/pasm/files/pasm-1.7-ppc.patch | 29 | ||||
-rw-r--r-- | dev-lang/pasm/metadata.xml | 15 | ||||
-rw-r--r-- | dev-lang/pasm/pasm-1.7.ebuild | 29 |
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-lang/pasm/Manifest b/dev-lang/pasm/Manifest new file mode 100644 index 000000000000..f592b1c9bc4c --- /dev/null +++ b/dev-lang/pasm/Manifest @@ -0,0 +1 @@ +DIST pasm.tar.gz 82136 SHA256 c8e11cccdf70e02f6bcb2edd76606bd6b745904a0858350ab739a8ea372adacd SHA512 313e4ad694704ad59619c46353c53ef9bd5529b6c9faee5cc6124dd0175f7b5a87268d2c26045f0639a0002311828b227915f30e697f8adedcd4256774674283 WHIRLPOOL 01631ddbf1c4c34487ee0558b149b5fee8b7c179ca23a764a0d6cda091d116d9488aa94e54f8d6992c78545da93972576c4611f60a7f87aa32d26a25a0d9cddd 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..4dbb423b7039 --- /dev/null +++ b/dev-lang/pasm/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <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..3bebe34a91e9 --- /dev/null +++ b/dev-lang/pasm/pasm-1.7.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" +} |