summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Harmon <russ@eatnumber1.com>2009-03-24 16:56:06 -0400
committerRussell Harmon <russ@eatnumber1.com>2009-03-24 16:56:06 -0400
commita5c4aa039746f24296797fc14b21456293bdda21 (patch)
treeccbff55f16d453fd359b0d6fa86953cc5f9fc427 /dev-libs
parentAdd ebuilds needed to compile chromium (diff)
downloadeatnumber1-a5c4aa039746f24296797fc14b21456293bdda21.tar.gz
eatnumber1-a5c4aa039746f24296797fc14b21456293bdda21.tar.bz2
eatnumber1-a5c4aa039746f24296797fc14b21456293bdda21.zip
Fix stuff
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/arch/Manifest6
-rw-r--r--dev-libs/arch/arch-2.5a.ebuild34
-rw-r--r--dev-libs/arch/files/Makefile.am8
-rw-r--r--dev-libs/arch/files/arch.pc.in4
-rw-r--r--dev-libs/arch/files/configure.ac15
-rw-r--r--dev-libs/arch/files/libarch_autotools-gcc.patch51
6 files changed, 118 insertions, 0 deletions
diff --git a/dev-libs/arch/Manifest b/dev-libs/arch/Manifest
new file mode 100644
index 0000000..f0c5ec2
--- /dev/null
+++ b/dev-libs/arch/Manifest
@@ -0,0 +1,6 @@
+AUX Makefile.am 607 RMD160 2f5fe06e5061db1d1d3c3f0d9bc5d8f49302c71d SHA1 50b4731d8ca33e3f6d2235a81a9809a85a554e9c SHA256 e6cbd3d979d858983e7d299fbc1fdd7083736c72e61e18a3a662d339c48c5140
+AUX arch.pc.in 104 RMD160 b7bf13d42d0b017f887a3ad91b2a3ab9988c5232 SHA1 d45e091509408f1e1a5231972b5123b7a65f58e8 SHA256 a5803bf0b5576ee5e8d28ff9ee913e9f3dcfe1ddf0c57526abe9805690a709e8
+AUX configure.ac 184 RMD160 c414dca1010b62b790a547dcd168a92dbda8d1d6 SHA1 d89de810d13c848efac77f533344124dc4d22aae SHA256 966b2e2ad361aa87a181ee4403c12fbd4c8d7e80c4772d54f86196f8b64ec662
+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 637 RMD160 4cff6f7be7afe181b5834dc6f86c5fa11807e97b SHA1 d326fd4b76916a0aed1cb394da29cfd0b80512cb SHA256 27d153bf0e034674fba1abb61dc1833e7aeeda9fdda5651bafcd1d37d75d6a90
diff --git a/dev-libs/arch/arch-2.5a.ebuild b/dev-libs/arch/arch-2.5a.ebuild
new file mode 100644
index 0000000..05e7a6c
--- /dev/null
+++ b/dev-libs/arch/arch-2.5a.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils autotools
+
+DESCRIPTION="RIT's computer architecture simulation library."
+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" .
+ cp "${FILESDIR}/arch.pc.in" .
+ rm "Makefile"
+ eautoreconf || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+}
diff --git a/dev-libs/arch/files/Makefile.am b/dev-libs/arch/files/Makefile.am
new file mode 100644
index 0000000..ac5e8f7
--- /dev/null
+++ b/dev-libs/arch/files/Makefile.am
@@ -0,0 +1,8 @@
+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
+include_HEADERS = ArchLibError.h Bus.h BusALU.h COSet.h CPUObject.h Clearable.h Clock.h ClockedObject.h Connector.h Constant.h Counter.h Flow.h FlowSet.h InFlow.h Memory.h OutFlow.h PseudoInput.h PseudoOutput.h ShiftRegister.h StorageObject.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = arch.pc
diff --git a/dev-libs/arch/files/arch.pc.in b/dev-libs/arch/files/arch.pc.in
new file mode 100644
index 0000000..4ebc081
--- /dev/null
+++ b/dev-libs/arch/files/arch.pc.in
@@ -0,0 +1,4 @@
+Name: arch
+Description: RIT's computer architecture simulation library.
+Version: @VERSION@
+Libs: -larch
diff --git a/dev-libs/arch/files/configure.ac b/dev-libs/arch/files/configure.ac
new file mode 100644
index 0000000..c1c88e4
--- /dev/null
+++ b/dev-libs/arch/files/configure.ac
@@ -0,0 +1,15 @@
+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 \
+ arch.pc )
diff --git a/dev-libs/arch/files/libarch_autotools-gcc.patch b/dev-libs/arch/files/libarch_autotools-gcc.patch
new file mode 100644
index 0000000..4521ec0
--- /dev/null
+++ b/dev-libs/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