summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Harmon <russ@eatnumber1.com>2009-03-24 16:10:44 -0400
committerRussell Harmon <russ@eatnumber1.com>2009-03-24 16:10:44 -0400
commitba40edac8bb7767f64d9a712931679cb39a2c775 (patch)
tree996e0b75c9dd543dd08908fd8dbb43a6600c50ac /dev-util
parentChanged my email to russ@eatnumber1.com (diff)
downloadeatnumber1-ba40edac8bb7767f64d9a712931679cb39a2c775.tar.gz
eatnumber1-ba40edac8bb7767f64d9a712931679cb39a2c775.tar.bz2
eatnumber1-ba40edac8bb7767f64d9a712931679cb39a2c775.zip
Add arch package.
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/arch/Manifest5
-rw-r--r--dev-util/arch/arch-2.5a.ebuild33
-rw-r--r--dev-util/arch/files/Makefile.am6
-rw-r--r--dev-util/arch/files/configure.ac14
-rw-r--r--dev-util/arch/files/libarch_autotools-gcc.patch51
5 files changed, 109 insertions, 0 deletions
diff --git a/dev-util/arch/Manifest b/dev-util/arch/Manifest
new file mode 100644
index 0000000..e14fd2b
--- /dev/null
+++ b/dev-util/arch/Manifest
@@ -0,0 +1,5 @@
+AUX Makefile.am 812 RMD160 baec1405470e80bd4510be04b19a802e5869e948 SHA1 f5f5ddd76969740c5d03a4c09f7634163d3fdd75 SHA256 082d272f48057ef30012c58bf9e829bb23c0a99200f338e8de79a981140a58cb
+AUX configure.ac 171 RMD160 62bd0941f422903d6413389748c079a1e3d1808a SHA1 d726d910df815848f21436ae4e01869f4a9ede34 SHA256 4f4002803103a31f0fbcf4f97d9cd5dd359bab8e70235add6b894b74bdfe0821
+AUX libarch_autotools-gcc.patch 1599 RMD160 9a23a7db201c8172be7ca12524a2d59fd730ba92 SHA1 4278b2c5327a1ee79895adfe82383b78e1f7af6c SHA256 6f60aef2f23be2a6f92712df89bffbdde447418a490d3a7c791e5e5174737a9e
+DIST arch2-5a.tar.gz 19986 RMD160 be62d70a2808c6ac7f0ac967904060ee61d3010a SHA1 05ba5421771026d508cb3f8bef1ac79bcbf12478 SHA256 21810f9ff76d2020768929a134d5c2dd4fd6f35ac699452ee5d5beef19a23ec5
+EBUILD arch-2.5a.ebuild 559 RMD160 c1aefaf14a044fbdf5c5ff5464134213dcdb8796 SHA1 61759dd698795fc03be63ddee26766035903cd35 SHA256 2b0bfc5cf0c2cd1e85e2a07b2e22081225f5824da9cdfa45f437dabd02754e93
diff --git a/dev-util/arch/arch-2.5a.ebuild b/dev-util/arch/arch-2.5a.ebuild
new file mode 100644
index 0000000..106aa72
--- /dev/null
+++ b/dev-util/arch/arch-2.5a.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils autotools
+
+DESCRIPTION=""
+HOMEPAGE=""
+SRC_URI="http://www.cs.rit.edu/~icsg720/pub/misc/${PN}${PV/./-}.tar.gz"
+
+LICENSE=""
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_prepare() {
+ epatch "${FILESDIR}/libarch_autotools-gcc.patch"
+ cp "${FILESDIR}/Makefile.am" .
+ cp "${FILESDIR}/configure.ac" .
+ rm "Makefile"
+ eautoreconf || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+}
diff --git a/dev-util/arch/files/Makefile.am b/dev-util/arch/files/Makefile.am
new file mode 100644
index 0000000..9080bc4
--- /dev/null
+++ b/dev-util/arch/files/Makefile.am
@@ -0,0 +1,6 @@
+AUTOMAKE_OPTIONS = foreign
+
+lib_LTLIBRARIES = libarch.la
+libarch_la_SOURCES = ArchLibError.C Bus.C BusALU.C COSet.C CPUObject.C Clearable.C Clock.C ClockedObject.C Connector.C Constant.C Counter.C Flow.C FlowSet.C InFlow.C Memory.C OutFlow.C PseudoInput.C PseudoOutput.C ShiftRegister.C StorageObject.C
+#libarch_la_LDFLAGS = -Wl,-soname,@ARCH_SONAME@
+#libarch_la_SOURCES = ArchLibError.C Bus.C BusALU.C BusALU.h COSet.C COSet.h CPUObject.C CPUObject.h Clearable.C Clearable.h Clock.C Clock.h ClockedObject.C ClockedObject.h Connector.C Connector.h Constant.C Constant.h Counter.C Counter.h Flow.C Flow.h FlowSet.C FlowSet.h InFlow.C InFlow.h Memory.C Memory.h OutFlow.C OutFlow.h PseudoInput.C PseudoInput.h PseudoOutput.C PseudoOutput.h ShiftRegister.C ShiftRegister.h StorageObject.C StorageObject.h Version.h
diff --git a/dev-util/arch/files/configure.ac b/dev-util/arch/files/configure.ac
new file mode 100644
index 0000000..2abe4d3
--- /dev/null
+++ b/dev-util/arch/files/configure.ac
@@ -0,0 +1,14 @@
+AC_INIT(libarch,2-5a)
+
+AM_INIT_AUTOMAKE(libarch,2-5a)
+
+AC_PROG_CC
+AC_PROG_CXX
+
+AC_PROG_INSTALL
+
+CFLAGS+=" -Wall "
+CXXFLAGS+=" -Wall "
+
+AM_PROG_LIBTOOL
+AC_OUTPUT(Makefile)
diff --git a/dev-util/arch/files/libarch_autotools-gcc.patch b/dev-util/arch/files/libarch_autotools-gcc.patch
new file mode 100644
index 0000000..4521ec0
--- /dev/null
+++ b/dev-util/arch/files/libarch_autotools-gcc.patch
@@ -0,0 +1,51 @@
+diff -ur a/CPUObject.h b/CPUObject.h
+--- a/CPUObject.h 2003-12-04 12:04:08.000000000 -0500
++++ b/CPUObject.h 2009-03-24 13:22:49.456420184 -0400
+@@ -59,12 +59,12 @@
+ trace_ticks = 16 };
+
+ static int debug;
++ void set_name( const char *id );
+
+ protected:
+ int get_bits() const;
+ unsigned long get_mask() const;
+ void set_mask( unsigned long m );
+- void set_name( const char *id );
+
+ private:
+ char *myName;
+diff -ur a/Clock.C b/Clock.C
+--- a/Clock.C 2003-12-04 12:03:19.000000000 -0500
++++ b/Clock.C 2009-03-24 13:24:12.173373534 -0400
+@@ -54,7 +54,7 @@
+ trace2 = CPUObject::debug & CPUObject::trace_ticks;
+
+ if( trace1 ) {
+- long old = cout.setf( ios::dec, ios::basefield );
++ std::_Ios_Fmtflags old = cout.setf( ios::dec, ios::basefield );
+ cout << " ________\n_____/" << setw(7) << time
+ << " \\_____\n" << flush;
+ (void)cout.flags( old );
+diff -ur a/StorageObject.C b/StorageObject.C
+--- a/StorageObject.C 2003-12-04 12:09:11.000000000 -0500
++++ b/StorageObject.C 2009-03-24 13:24:24.080171368 -0400
+@@ -39,7 +39,7 @@
+
+ if( get_contents() != initVal ) {
+ // switch to hex, but remember old settings
+- long k = cout.setf( ios::hex, ios::basefield );
++ std::_Ios_Fmtflags k = cout.setf( ios::hex, ios::basefield );
+ cout << "StorageObject " << id
+ << ": initial value of " << initVal
+ << " does not fit in " << numBits
+diff -ur a/Version.h b/Version.h
+--- a/Version.h 2003-12-04 12:06:08.000000000 -0500
++++ b/Version.h 2009-03-24 14:30:02.477420295 -0400
+@@ -12,6 +12,4 @@
+
+ using namespace std;
+
+-const char * VERSION = "2.5a";
+-
+ #endif