summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2009-01-04 14:40:35 +0000
committerChristoph Mende <angelos@gentoo.org>2009-01-04 14:40:35 +0000
commit826e75247f1f856e23363f44b56fdb9ed4587990 (patch)
tree3fe3728d83f4b9c9551b119fb5353521f4ebb2fa /app-emulation
parentStable on sparc, bug #252432 (diff)
downloadhistorical-826e75247f1f856e23363f44b56fdb9ed4587990.tar.gz
historical-826e75247f1f856e23363f44b56fdb9ed4587990.tar.bz2
historical-826e75247f1f856e23363f44b56fdb9ed4587990.zip
QA: Define IUSE, use edos2unix, respect CC, respect CFLAGS, fix compilation with --as-needed (bug 246890)
Package-Manager: portage-2.2_rc20/cvs/Linux 2.6.28 x86_64
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/simh/ChangeLog9
-rw-r--r--app-emulation/simh/Manifest15
-rw-r--r--app-emulation/simh/files/simh-3.7.0-asneeded.patch168
-rw-r--r--app-emulation/simh/simh-3.7.0.ebuild17
4 files changed, 199 insertions, 10 deletions
diff --git a/app-emulation/simh/ChangeLog b/app-emulation/simh/ChangeLog
index 6f64323ce563..157df2c639db 100644
--- a/app-emulation/simh/ChangeLog
+++ b/app-emulation/simh/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-emulation/simh
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/ChangeLog,v 1.8 2008/02/05 21:30:34 grobian Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/ChangeLog,v 1.9 2009/01/04 14:40:35 angelos Exp $
+
+ 04 Jan 2009; Christoph Mende <angelos@gentoo.org>
+ +files/simh-3.7.0-asneeded.patch, simh-3.7.0.ebuild:
+ QA: Define IUSE, use edos2unix, respect CC, respect CFLAGS, fix
+ compilation with --as-needed (bug 246890)
05 Feb 2008; Fabian Groffen <grobian@gentoo.org> simh-3.5.2.ebuild,
simh-3.7.0.ebuild:
diff --git a/app-emulation/simh/Manifest b/app-emulation/simh/Manifest
index 93baba1e19d1..306c843409b3 100644
--- a/app-emulation/simh/Manifest
+++ b/app-emulation/simh/Manifest
@@ -1,9 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX makefile.patch 383 RMD160 90fc07b498c797a5b69bacfc0cb5c73b9ef2465b SHA1 d9e815a9610c8ddf8ada2826df3716a353e2d5c1 SHA256 89004ead180b37dc02a5e1121e61fd88b1c8cb9dbcc4b7ed13b72a3d1a69eb65
+AUX simh-3.7.0-asneeded.patch 5223 RMD160 666b01a2f94fa0c4251706d2659ce4d06e65da63 SHA1 ed53b47f742a762060c2cb5c73d5c649ef96c76f SHA256 53194d19c5a6eaded5262e903b85a01551c6a5d7f05f1dc61c1c29e63daae485
DIST simhv33-0.zip 2153444 RMD160 778cc7836b4558b57f1b9ca54427f3d2e8da94a4 SHA1 99a021afe2fd8dfb32bb479e383347e2b883e0f9 SHA256 28fcdc8443f6e2460193eb6ed8d41be95d75226490926219a0dfd5028eaf051c
DIST simhv35-2.zip 2259795 RMD160 27d3a95689aed7f0781137dbf158ba87716d04b3 SHA1 f0a3926ee0a4d0f275df3fa092f9982bd4521479 SHA256 12c6e6290b599b7f131027a533ee12add8d68735128805e012309db46f2ab9fb
DIST simhv37-0.zip 2362666 RMD160 7ecd3177d17c871a4b33fae13111fa0a19678511 SHA1 e24a777d98026dcb745c0a06203e9a96f4d0fc30 SHA256 23ae538b7607d231d9e64c170b7a4cc7b7c9d0c1c8bbd662c565ac0a56d15069
EBUILD simh-3.3.0.ebuild 1113 RMD160 b074564a005039434a04bf2d2cb702b8773f9f0b SHA1 da3776b4d48ae999b081634e3426e1bf71151278 SHA256 1f86ed3ace478ad1850c161a66a3590b3d6fc30f50cb0c4845030f1b77e6baaf
EBUILD simh-3.5.2.ebuild 1117 RMD160 6a489694541577042b09c2fdf5613104c367f84c SHA1 52195637bb51cf156d1d6f89866b626135e8e457 SHA256 bcd4137c676671a78747b67bceec611e861240b4eadc4e0061a9549b1dd4aea5
-EBUILD simh-3.7.0.ebuild 1117 RMD160 5d777f5ac2c80ee9af23c55ccafe21989fa7ad8f SHA1 bfaaa485603d2e785ba1e7541e931079c15011d5 SHA256 47afcae292ef19ed1441a2cee2bc81a9857d0e959b1733c64770d8b14185c293
-MISC ChangeLog 1223 RMD160 846163727d64494190be5c02d0ebcae4517a55b2 SHA1 74d336357d761f3e989ae2480d39d527b17cfaaa SHA256 d5492593db54f2e8972e3948daf55df4f1df1884400e1464a29be38e7cf43aa2
+EBUILD simh-3.7.0.ebuild 1259 RMD160 effeb5f864c8f751d0439a292090ab8a75697842 SHA1 db8b41c307d379e4b3f11646fc360f7155cc6853 SHA256 0baa35655027be8a05312d69c529970bbb62054672523d72434e1ac4c775a205
+MISC ChangeLog 1441 RMD160 2bf9d0ab350da4a0dca3de2df3b1c381f837063c SHA1 a3a67081670ab10702d2c838fc9a648acf4e207b SHA256 9b3d83566dde7c9447c2e65e8314fb7bcfcab062584e6c60e4597362bc2a24d3
MISC metadata.xml 314 RMD160 25181cde297628576a9545bea3a76601485bfaf3 SHA1 ac16b621acf5a22b64859e3323d466fb556fc4c8 SHA256 736baab77aea9c4da199c01e3cd6877c271bd02357ff9b41b537a2232c6e96d7
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAklgyrQACgkQKhnDs22gwa+O0ACg/moGpKiq3wsUPouZeGnmUont
+IioAnRakKKg6cGxiEz6Ny6Nw4IvDI+GA
+=Lehv
+-----END PGP SIGNATURE-----
diff --git a/app-emulation/simh/files/simh-3.7.0-asneeded.patch b/app-emulation/simh/files/simh-3.7.0-asneeded.patch
new file mode 100644
index 000000000000..fd64bbbfdff5
--- /dev/null
+++ b/app-emulation/simh/files/simh-3.7.0-asneeded.patch
@@ -0,0 +1,168 @@
+--- makefile.orig 2009-01-04 15:20:55.353840670 +0100
++++ makefile 2009-01-04 15:22:32.340991641 +0100
+@@ -10,7 +10,8 @@
+ else
+ OS_CCDEFS = -D_GNU_SOURCE
+ endif
+-CC = x86_64-pc-linux-gnu-gcc -std=c99 -march=native -Os -pipe -U__STRICT_ANSI__ -lm -lrt $(OS_CCDEFS) -I .
++CC = x86_64-pc-linux-gnu-gcc -std=c99 -march=native -Os -pipe -U__STRICT_ANSI__ $(OS_CCDEFS) -I .
++LIBS = -lm -lrt
+ ifeq ($(USE_NETWORK),)
+ else
+ NETWORK_OPT = -DUSE_NETWORK -DNEED_PCAP_SENDPACKET -lpcap
+@@ -256,129 +257,129 @@
+ pdp1 : ${BIN}pdp1${EXE}
+
+ ${BIN}pdp1${EXE} : ${PDP1} ${SIM}
+- ${CC} ${PDP1} ${SIM} ${PDP1_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP1} ${SIM} ${PDP1_OPT} -o $@ $(LIBS)
+
+ pdp4 : ${BIN}pdp4${EXE}
+
+ ${BIN}pdp4${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP4_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP4_OPT} -o $@ $(LIBS)
+
+ pdp7 : ${BIN}pdp7${EXE}
+
+ ${BIN}pdp7${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP7_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP7_OPT} -o $@ $(LIBS)
+
+ pdp8 : ${BIN}pdp8${EXE}
+
+ ${BIN}pdp8${EXE} : ${PDP8} ${SIM}
+- ${CC} ${PDP8} ${SIM} ${PDP8_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP8} ${SIM} ${PDP8_OPT} -o $@ $(LIBS)
+
+ pdp9 : ${BIN}pdp9${EXE}
+
+ ${BIN}pdp9${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP9_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP9_OPT} -o $@ $(LIBS)
+
+ pdp15 : ${BIN}pdp15${EXE}
+
+ ${BIN}pdp15${EXE} : ${PDP18B} ${SIM}
+- ${CC} ${PDP18B} ${SIM} ${PDP15_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP18B} ${SIM} ${PDP15_OPT} -o $@ $(LIBS)
+
+ pdp10 : ${BIN}pdp10${EXE}
+
+ ${BIN}pdp10${EXE} : ${PDP10} ${SIM}
+- ${CC} ${PDP10} ${SIM} ${PDP10_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP10} ${SIM} ${PDP10_OPT} -o $@ $(LIBS)
+
+ pdp11 : ${BIN}pdp11${EXE}
+
+ ${BIN}pdp11${EXE} : ${PDP11} ${SIM}
+- ${CC} ${PDP11} ${SIM} ${PDP11_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${PDP11} ${SIM} ${PDP11_OPT} -o $@ $(LIBS)
+
+ vax : ${BIN}vax${EXE}
+
+ ${BIN}vax${EXE} : ${VAX} ${SIM}
+- ${CC} ${VAX} ${SIM} ${VAX_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${VAX} ${SIM} ${VAX_OPT} -o $@ $(LIBS)
+
+ vax780 : ${BIN}vax780${EXE}
+
+ ${BIN}vax780${EXE} : ${VAX780} ${SIM}
+- ${CC} ${VAX780} ${SIM} ${VAX780_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${VAX780} ${SIM} ${VAX780_OPT} -o $@ $(LIBS)
+
+ nova : ${BIN}nova${EXE}
+
+ ${BIN}nova${EXE} : ${NOVA} ${SIM}
+- ${CC} ${NOVA} ${SIM} ${NOVA_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${NOVA} ${SIM} ${NOVA_OPT} -o $@ $(LIBS)
+
+ eclipse : ${BIN}eclipse${EXE}
+
+ ${BIN}eclipse${EXE} : ${ECLIPSE} ${SIM}
+- ${CC} ${ECLIPSE} ${SIM} ${ECLIPSE_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ECLIPSE} ${SIM} ${ECLIPSE_OPT} -o $@ $(LIBS)
+
+ h316 : ${BIN}h316${EXE}
+
+ ${BIN}h316${EXE} : ${H316} ${SIM}
+- ${CC} ${H316} ${SIM} ${H316_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${H316} ${SIM} ${H316_OPT} -o $@ $(LIBS)
+
+ hp2100 : ${BIN}hp2100${EXE}
+
+ ${BIN}hp2100${EXE} : ${HP2100} ${SIM}
+- ${CC} ${HP2100} ${SIM} ${HP2100_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${HP2100} ${SIM} ${HP2100_OPT} -o $@ $(LIBS)
+
+ i1401 : ${BIN}i1401${EXE}
+
+ ${BIN}i1401${EXE} : ${I1401} ${SIM}
+- ${CC} ${I1401} ${SIM} ${I1401_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${I1401} ${SIM} ${I1401_OPT} -o $@ $(LIBS)
+
+ i1620 : ${BIN}i1620${EXE}
+
+ ${BIN}i1620${EXE} : ${I1620} ${SIM}
+- ${CC} ${I1620} ${SIM} ${I1620_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${I1620} ${SIM} ${I1620_OPT} -o $@ $(LIBS)
+
+ i7094 : ${BIN}i7094${EXE}
+
+ ${BIN}i7094${EXE} : ${I7094} ${SIM}
+- ${CC} ${I7094} ${SIM} ${I7094_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${I7094} ${SIM} ${I7094_OPT} -o $@ $(LIBS)
+
+ ibm1130 : ${BIN}ibm1130${EXE}
+
+ ${BIN}ibm1130${EXE} : ${IBM1130}
+- ${CC} ${IBM1130} ${SIM} ${IBM1130_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${IBM1130} ${SIM} ${IBM1130_OPT} -o $@ $(LIBS)
+
+ s3 : ${BIN}s3${EXE}
+
+ ${BIN}s3${EXE} : ${S3} ${SIM}
+- ${CC} ${S3} ${SIM} ${S3_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${S3} ${SIM} ${S3_OPT} -o $@ $(LIBS)
+
+ altair : ${BIN}altair${EXE}
+
+ ${BIN}altair${EXE} : ${ALTAIR} ${SIM}
+- ${CC} ${ALTAIR} ${SIM} ${ALTAIR_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ALTAIR} ${SIM} ${ALTAIR_OPT} -o $@ $(LIBS)
+
+ altairz80 : ${BIN}altairz80${EXE}
+
+ ${BIN}altairz80${EXE} : ${ALTAIRZ80} ${SIM}
+- ${CC} ${ALTAIRZ80} ${SIM} ${ALTAIRZ80_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ALTAIRZ80} ${SIM} ${ALTAIRZ80_OPT} -o $@ $(LIBS)
+
+ gri : ${BIN}gri${EXE}
+
+ ${BIN}gri${EXE} : ${GRI} ${SIM}
+- ${CC} ${GRI} ${SIM} ${GRI_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${GRI} ${SIM} ${GRI_OPT} -o $@ $(LIBS)
+
+ lgp : ${BIN}lgp${EXE}
+
+ ${BIN}lgp${EXE} : ${LGP} ${SIM}
+- ${CC} ${LGP} ${SIM} ${LGP_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${LGP} ${SIM} ${LGP_OPT} -o $@ $(LIBS)
+
+ id16 : ${BIN}id16${EXE}
+
+ ${BIN}id16${EXE} : ${ID16} ${SIM}
+- ${CC} ${ID16} ${SIM} ${ID16_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ID16} ${SIM} ${ID16_OPT} -o $@ $(LIBS)
+
+ id32 : ${BIN}id32${EXE}
+
+ ${BIN}id32${EXE} : ${ID32} ${SIM}
+- ${CC} ${ID32} ${SIM} ${ID32_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${ID32} ${SIM} ${ID32_OPT} -o $@ $(LIBS)
+
+ sds : ${BIN}sds${EXE}
+
+ ${BIN}sds${EXE} : ${SDS} ${SIM}
+- ${CC} ${SDS} ${SIM} ${SDS_OPT} -o $@ ${LDFLAGS}
++ ${CC} $(LDFLAGS) ${SDS} ${SIM} ${SDS_OPT} -o $@ $(LIBS)
diff --git a/app-emulation/simh/simh-3.7.0.ebuild b/app-emulation/simh/simh-3.7.0.ebuild
index 943692011019..22ec46d115d4 100644
--- a/app-emulation/simh/simh-3.7.0.ebuild
+++ b/app-emulation/simh/simh-3.7.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/simh-3.7.0.ebuild,v 1.3 2008/02/05 21:30:34 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/simh/simh-3.7.0.ebuild,v 1.4 2009/01/04 14:40:35 angelos Exp $
-inherit eutils versionator
+inherit eutils toolchain-funcs versionator
MY_P="${PN}v$(get_version_component_range 1)$(get_version_component_range 2)-$(get_version_component_range 3)"
DESCRIPTION="a simulator for historical computers such as Vax, PDP-11 etc.)"
@@ -12,6 +12,7 @@ SRC_URI="http://simh.trailing-edge.com/sources/${MY_P}.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+IUSE=""
RDEPEND="net-libs/libpcap"
DEPEND="${RDEPEND}
@@ -26,9 +27,13 @@ src_unpack() {
unpack ${A}
# convert makefile from dos format to unix format
- sed -i 's/.$//' makefile
+ edos2unix makefile
- epatch "${FILESDIR}/makefile.patch"
+ sed -i -e "s:gcc:$(tc-getCC):" \
+ -e "s: -g::" \
+ -e "s:-O2:${CFLAGS}:" makefile
+ epatch "${FILESDIR}/makefile.patch" \
+ "${FILESDIR}"/${P}-asneeded.patch
}
src_compile() {
@@ -41,7 +46,7 @@ src_install() {
newbin ${BINFILE} "simh-${BINFILE}"
done
- cd ${S}
+ cd "${S}"
dodir /usr/share/simh
insinto /usr/share/simh
doins VAX/*.bin