diff options
4 files changed, 35 insertions, 2 deletions
diff --git a/games-simulation/corewars/Manifest b/games-simulation/corewars/Manifest index 9119962..b1adafa 100644 --- a/games-simulation/corewars/Manifest +++ b/games-simulation/corewars/Manifest @@ -1,6 +1,7 @@ AUX 0.9.13-corewars-lm.patch 505 SHA256 64efb9a0fa42e8b0b3083f1ab7089ba0ac4bde286a94c99a031b4cc7a9598990 SHA512 52cc803c940f527b200f745d9bacde707a64a071758d1a72b94a86201e76972452c54d1400e9ca867dbffb47750f5e75d8b7e86b1cd2d93c8749226365000bf8 WHIRLPOOL 5993285be9f3420dce9a3ac8382bbfd3a70bc2f98e2628a0360c5e795503dd29306ab88d18744219f5bfe3eb73eb6aa37d7fc15325be09a5d2409f6fa20ed85d +AUX 0.9.13-fix-get_current_dir_name-prototype.patch 415 SHA256 b0b1b79d1288df824e08051b490632d00f6fb164c9528f4eddc98f7e9faeb17d SHA512 f0d2da073cb2cbf8453a7d0c8c4dc3543cbb8a8abdb5fc41d26a8d500ed895eb1d824c7afd447a547a8108d47d7460586bf70147769974f021f5cd8f20b27287 WHIRLPOOL 494c1503b7f7dac5de964bbfc2542c35ed19d8ae9e6c3c121ae3820d2e26bc2951ff500438fa2da7cae9e01e16f92dc780b05f24db917d479cbf5031e5f43227 AUX reroute.cw 517 SHA256 b4a17d0179f9bf9be995c24c895cf48bb82c4ee26c741c6e88b64a903b0ace67 SHA512 c06d5130c05b76c53e4eb4c99be6f03fc60f814f809f6f18cc7e7a27ce6593cd476eb607239fe05a25d30a73b837814fa79e255cc26ea97f6e498b1525401255 WHIRLPOOL f5401b64f3107f158f55b6c02d2e9abc2024ff3b0fc545a5492885fb2b876e82899e01ef08f9393c63d6a99aea6e91bc20619bdce472aa739e981ba433a07d2e DIST corewars-0.9.13.tar.gz 203874 SHA256 23957e620e3bbee265c3eb878752caf5d4186428e361af79a3373a698010f6e2 SHA512 fe4194ac5efa7612a06d80c1218740de17a6dae6228f5e603074ab296f4a195adc68c0d8db5bbc9588947a536a9cfc208b411b024163adfe1cda072d05dd6a71 WHIRLPOOL 54ec2c2efe9e5684528bfa9f7c56343ea2c4644426156b5571127b5e64a5e618e51f367a913c836127a89007acd641e844aafc5571627cee07efd6c4ccb724c1 DIST corewars-gtk2.patch.gz 91741 SHA256 9d269752344ef9c913e57f04c9c5d47f788c585755dbe3050abab50d05738b30 SHA512 e70329bf19a958b53d4bea607d1bb2b7fd8ad423168aef6d92ced42ca73872bb1eb3aa59afaaab185996b41a2b6716096a7a87a6b81df156a0879906e6d45411 WHIRLPOOL 9208a30c72b6c21bfbfdffe63783ff7c792dc3427dc6fc664106492abf41cfe507e2966cffa36351c0bdab36f7bdec7806cc69f27ba990892d6e9bc2372fdb30 -EBUILD corewars-0.9.13-r1.ebuild 982 SHA256 67c9c47020b7fb542702a2ed5e4225976d8e6a3d00094860b045bdfefed02a01 SHA512 fa654145ae564ef0f14dd2f0019e55b2f77ff9235df841392d3bd1f3e16d08491a0cf10ee436d8a6a6a0f4540ad52fc2f47ec01659457fcb0b665e228b7905e3 WHIRLPOOL cb157888eb1888b9e8736bd9e94ab0d1bbf6af70b7a21bc5a3aed204f8f9966ee861448f9d22cb4c2baaa69de577a58e190e7b79482244f1812c0a3b62bb74ac +EBUILD corewars-0.9.13-r1.ebuild 1123 SHA256 681e0ab5e20f40f9fd13047b3a0789022c7043ce443c779f305e46fba9ee3fa2 SHA512 2176f85c51cd8137c8e9e4d4a5e16116b3688ef22ed16eafaff4773e7d238f266ef6b63d1ae92976a1018bbd6705eed9989bd26ff8d8723cf7eaaa536c3b4311 WHIRLPOOL 3adb343ee8b4f0f59aa7040adb95d33a1d8b8a8a2b23dc22ec0bace6de5495e0818a7ff5ce3f7e5755d240b9290fa8b9d9632e9265d2411e8e40fe0311f85197 MISC metadata.xml 585 SHA256 53f76cd0bc11057c80057a1d2c8106a21c1f116f20a7d486ee8a515d74ce4e05 SHA512 990f2dc41460ab05393f2af4725a8bafb957d6745a42bdc467d5c96e72d4c8b0a8a4fdcd511d9dca69afb549100b18fe0868a2def77b23be8da4aaa5c03bb099 WHIRLPOOL 332f85a42274019925fc50bf510689d387926317396d2966d0e48d6f03283d92dae2e765fe879fe193fa9887a762adc1a91e5fef38bef032fd53f696f66ebe14 diff --git a/games-simulation/corewars/corewars-0.9.13-r1.ebuild b/games-simulation/corewars/corewars-0.9.13-r1.ebuild index 552d250..a369dfd 100644 --- a/games-simulation/corewars/corewars-0.9.13-r1.ebuild +++ b/games-simulation/corewars/corewars-0.9.13-r1.ebuild @@ -22,16 +22,20 @@ DEPEND="${RDEPEND}" src_prepare() { epatch "${DISTDIR}"/${PN}-gtk2.patch.gz epatch "${FILESDIR}"/${PV}-corewars-lm.patch + epatch "${FILESDIR}"/${PV}-fix-get_current_dir_name-prototype.patch eautoreconf } + src_configure() { - econf $(use_enable debug gcc-debug) + egamesconf $(use_enable debug gcc-debug) } src_install() { make DESTDIR="${D}" install || die "make install failed" + insinto "${GAMES_DATADIR}"/${PN} + doins "${FILESDIR}/reroute.cw" dodoc ChangeLog README doc/{TODO,DIFFERENCES,INTERESTING-COMBINATIONS} prepgamesdirs } diff --git a/games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch b/games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch new file mode 100644 index 0000000..d5d9cd7 --- /dev/null +++ b/games-simulation/corewars/files/0.9.13-fix-get_current_dir_name-prototype.patch @@ -0,0 +1,11 @@ +diff -Npur corewars-0.9.13.orig/src/main-gui.c corewars-0.9.13/src/main-gui.c +--- corewars-0.9.13.orig/src/main-gui.c 2014-10-14 23:08:11.461410224 +0200 ++++ corewars-0.9.13/src/main-gui.c 2014-10-14 23:09:38.931417792 +0200 +@@ -15,6 +15,7 @@ + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#define _GNU_SOURCE + #include <stdlib.h> + #include <gtk/gtk.h> + #include <string.h> diff --git a/games-simulation/corewars/files/reroute.cw b/games-simulation/corewars/files/reroute.cw new file mode 100644 index 0000000..1c15271 --- /dev/null +++ b/games-simulation/corewars/files/reroute.cw @@ -0,0 +1,17 @@ +# Reroute other processes to execute my code + + Title "Reroute" + Author "Jonathan Enders <kannibalenfleisch@web.de>" +DIA: data &DIA #DestinationIndexA for Jump-Instruction +DIB: data &DIB #DestinationIndexB for Jump-Coordinates + +S: add -2038,DIA + add -2038,DIB #Move Jump-Instruction to more + move INST,[DIA] #or less random location + move DIS,[DIB] + +E: jump S #Repeat + + +INST: jump [DIS] #Instruction to be copied to Destination +DIS: data &S #Address where other processes should jump to |