summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2004-05-05 08:11:30 +0000
committerJoshua Kinard <kumba@gentoo.org>2004-05-05 08:11:30 +0000
commitd7e61cfcf110c5887bfe0c6da71dd6918feea6d4 (patch)
tree4a9f12aebafeaf260c948be17107ed571b6a4ea0 /sys-devel/mips32
parentadded metadata (Manifest recommit) (diff)
downloadgentoo-2-d7e61cfcf110c5887bfe0c6da71dd6918feea6d4.tar.gz
gentoo-2-d7e61cfcf110c5887bfe0c6da71dd6918feea6d4.tar.bz2
gentoo-2-d7e61cfcf110c5887bfe0c6da71dd6918feea6d4.zip
Initial import of mips32, a derivative of the sparc32 utility for mips64 systems.
Diffstat (limited to 'sys-devel/mips32')
-rw-r--r--sys-devel/mips32/ChangeLog11
-rw-r--r--sys-devel/mips32/Manifest5
-rw-r--r--sys-devel/mips32/files/digest-mips32-1.01
-rw-r--r--sys-devel/mips32/files/mips32-1.0-no-kern-headers.patch22
-rw-r--r--sys-devel/mips32/metadata.xml14
-rw-r--r--sys-devel/mips32/mips32-1.0.ebuild33
6 files changed, 86 insertions, 0 deletions
diff --git a/sys-devel/mips32/ChangeLog b/sys-devel/mips32/ChangeLog
new file mode 100644
index 000000000000..728c50709bb4
--- /dev/null
+++ b/sys-devel/mips32/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-devel/mips32
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/mips32/ChangeLog,v 1.1 2004/05/05 08:11:30 kumba Exp $
+
+*mips32-1.0 (05 May 2004)
+
+ 05 May 2004; Joshua Kinard <kumba@gentoo.org> +metadata.xml,
+ +files/mips32-1.0-no-kern-headers.patch, +mips32-1.0.ebuild:
+ Initial import of mips32, a derivative of the sparc32 utility for mips64
+ systems.
+
diff --git a/sys-devel/mips32/Manifest b/sys-devel/mips32/Manifest
new file mode 100644
index 000000000000..9f27971b64bf
--- /dev/null
+++ b/sys-devel/mips32/Manifest
@@ -0,0 +1,5 @@
+MD5 4826e2b8c0e9daba29345b97411414d5 metadata.xml 416
+MD5 c26b8ffdaea93ddf943224ff8324696e mips32-1.0.ebuild 545
+MD5 4cc78b0b4d850b59d98e31654456730d ChangeLog 365
+MD5 1f8a13f362cfb02255037057e5d7abab files/mips32-1.0-no-kern-headers.patch 579
+MD5 fdeb67748be855f61d2434ade029d86c files/digest-mips32-1.0 60
diff --git a/sys-devel/mips32/files/digest-mips32-1.0 b/sys-devel/mips32/files/digest-mips32-1.0
new file mode 100644
index 000000000000..8eeeff27b24c
--- /dev/null
+++ b/sys-devel/mips32/files/digest-mips32-1.0
@@ -0,0 +1 @@
+MD5 93c773ad294cf6b420ec50fb205f0d96 mips32-1.0.tar.gz 1681
diff --git a/sys-devel/mips32/files/mips32-1.0-no-kern-headers.patch b/sys-devel/mips32/files/mips32-1.0-no-kern-headers.patch
new file mode 100644
index 000000000000..66c3f57f8960
--- /dev/null
+++ b/sys-devel/mips32/files/mips32-1.0-no-kern-headers.patch
@@ -0,0 +1,22 @@
+diff -Naurp mips32-1.0.orig/mips32.c mips32-1.0/mips32.c
+--- mips32-1.0.orig/mips32.c 2000-09-06 08:42:30.000000000 -0400
++++ mips32-1.0/mips32.c 2004-05-05 03:34:49.000000000 -0400
+@@ -3,8 +3,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <sys/utsname.h>
+-#include <linux/personality.h>
+-#include <linux/unistd.h>
++#include <sys/personality.h>
+
+ #ifndef PER_LINUX32
+ #define PER_LINUX32 8
+@@ -13,8 +12,6 @@
+ #define PER_LINUX_32BIT 0x0800000
+ #endif
+
+-_syscall1(int, personality, long, pers);
+-
+ int main(int argc, char **argv)
+ {
+ char *p = strrchr(argv[0], '/');
diff --git a/sys-devel/mips32/metadata.xml b/sys-devel/mips32/metadata.xml
new file mode 100644
index 000000000000..224d32cd0c31
--- /dev/null
+++ b/sys-devel/mips32/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>mips</herd>
+ <maintainer>
+ <email>mips@gentoo.org</email>
+ <name>Mips Team</name>
+ </maintainer>
+
+ <longdescription>
+ Small utility derived from sparc32 that makes uname output report a 32bit environment (uname -m returns mips instead of mips64)
+ </longdescription>
+</pkgmetadata>
+
diff --git a/sys-devel/mips32/mips32-1.0.ebuild b/sys-devel/mips32/mips32-1.0.ebuild
new file mode 100644
index 000000000000..579376fd4631
--- /dev/null
+++ b/sys-devel/mips32/mips32-1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/mips32/mips32-1.0.ebuild,v 1.1 2004/05/05 08:11:30 kumba Exp $
+
+inherit eutils
+
+DESCRIPTION="A MIPS32 compilation environment."
+HOMEPAGE=""
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* mips"
+IUSE=""
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-no-kern-headers.patch
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install () {
+ dobin mips32
+ dosym mips32 /usr/bin/mips64
+ doman mips32.8
+ doman mips64.8
+}