diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-lang/mmix | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-lang/mmix')
-rw-r--r-- | dev-lang/mmix/Manifest | 7 | ||||
-rw-r--r-- | dev-lang/mmix/files/mmix-20110420-makefile.patch | 71 | ||||
-rw-r--r-- | dev-lang/mmix/files/mmix-20131017-format-security.patch | 59 | ||||
-rw-r--r-- | dev-lang/mmix/metadata.xml | 8 | ||||
-rw-r--r-- | dev-lang/mmix/mmix-20131017.ebuild | 47 | ||||
-rw-r--r-- | dev-lang/mmix/mmix-20160804.ebuild | 47 |
6 files changed, 239 insertions, 0 deletions
diff --git a/dev-lang/mmix/Manifest b/dev-lang/mmix/Manifest new file mode 100644 index 000000000000..f820dc9f309e --- /dev/null +++ b/dev-lang/mmix/Manifest @@ -0,0 +1,7 @@ +AUX mmix-20110420-makefile.patch 1636 BLAKE2B f4acfc952dea9671ec5507f4d86a1462131dae835318362b17f341e9575fe1dccda5cd44d257127a27232a197e05f79de5d7a8200d7a2b943161fa38de83937f SHA512 e5cd4944847c00ad7c6b3a87fa6f9a242f7f0b13c31f82e80c49b3b9ec07d7c0106669dce2868705dca073774826c5acc6f8ea1464c1a5c739145f1c2b28eb10 +AUX mmix-20131017-format-security.patch 2256 BLAKE2B 2481c33c024d84af03b289ec9f22c9b98cb27537c32ea9ef020943aa424efac5267d81326241b2d764eb292f373ed51cc30c3ddbdb55f8fa444154cf6cc5fe0d SHA512 e77cdf3d196356cc0cb09f322cc979e4c603592c8f9421764d6830df27fe627958badbd6726021f97bc42a0d9551e4d3b39ca7b1d677b44a543ffcc04028eaea +DIST mmix-20131017.tgz 308016 BLAKE2B 195c4945c61584842af08af891dc2e26672194aef66ff71ba6dfa18bab4e7349de013aa1c3ae195d9d6a69ee4ebc61403acf558a06af86393d5b053920ebad55 SHA512 e816b1ee9205b9f4a2e25ff183c48736ea66e63721a49f0b574850c5872ae85a6e847d802a01b5aa120ac969638d5d05e9b3135512d9362a4d672564f1228922 +DIST mmix-20160804.tgz 308410 BLAKE2B 8bbde51921fe23f016e35bd51346e6445d530815e5e87bff44cf17e081c6b8e55dd6bd24f1ce1621851d2eac309fa44d71aa33d93d3ddfce5213c6643181d38c SHA512 35c518227a4ee40d0aa3be02eda2ab8b2a27696fa789f5007a978419d07b3deebb7f391895e63e3556aeb38dc1ded3bddf2b860125ebf8f7848375e90dc7af75 +EBUILD mmix-20131017.ebuild 965 BLAKE2B 763f9fc6d769748bf3fbb25ea5a5498117e70cb8607f34fb1572086d578a1190ef17fa542059d3c3e61782aeb560060d68c4f787ba5570860d3187b77de618ad SHA512 de03b2b80759be4b10fe1edd06f71178ece2c759d73d3c554d5ce8e0860f4d8e1b7cda2adefecb81514c06fcdcc0b1553afc81151d141d9eae924c21fa0209ac +EBUILD mmix-20160804.ebuild 943 BLAKE2B ad1449d7bbdb88c066e85ac309f10ef37b78fca045a294a28583b9eb708fc18c19cf6083437878f97d35d0de8ba5ba6d6c8ac9fc0e788f95df004e3ece9bc116 SHA512 bd43985e64160e0847643e7731213265aa9d51ac8141b3637ff9373fa58f2f0182436645867f73b7188e20cbc9370b461cdaab11c4f39111316edeabc992a390 +MISC metadata.xml 247 BLAKE2B 9d65f58a46596a4c23d009a2d776c25c5a9dd76ac91ec6f6f548f5f786e43f0be694628bc528dc24d2fcb5efcf7cf95643aea633f12eda3d482d2d03a952d388 SHA512 44f366af35524b7fc87b2eb6c7241918d2afc9b30f1a28289d803ed0125e9099588a2bd99a75e34e3c70fde30765050e62ef5b47975e2a1860dd7a560709459d diff --git a/dev-lang/mmix/files/mmix-20110420-makefile.patch b/dev-lang/mmix/files/mmix-20110420-makefile.patch new file mode 100644 index 000000000000..14107ed915a9 --- /dev/null +++ b/dev-lang/mmix/files/mmix-20110420-makefile.patch @@ -0,0 +1,71 @@ +--- a/Makefile ++++ b/Makefile +@@ -27,23 +27,23 @@ + if test -r $*.ch; then cweave $*.w $*.ch; else cweave $*.w; fi + + .w.o: +- make $*.c +- make $*.o ++ $(MAKE) $*.c ++ $(MAKE) $*.o + + .w: +- make $*.c +- make $* ++ $(MAKE) $*.c ++ $(MAKE) $* + + .w.dvi: +- make $*.tex +- make $*.dvi ++ $(MAKE) $*.tex ++ $(MAKE) $*.dvi + + .w.ps: +- make $*.dvi +- make $*.ps ++ $(MAKE) $*.dvi ++ $(MAKE) $*.ps + + .w.pdf: +- make $*.tex ++ $(MAKE) $*.tex + case "$(PDFTEX)" in \ + dvipdfm ) tex "\let\pdf+ \input $*"; dvipdfm $* ;; \ + pdftex ) pdftex $* ;; \ +@@ -73,27 +73,26 @@ + clean: + rm -f *~ *.o *.c *.h *.tex *.log *.dvi *.toc *.idx *.scn *.ps core + +-mmix-pipe.o: mmix-pipe.c abstime ++abstime.h: abstime + ./abstime > abstime.h ++ ++mmix-pipe.o: mmix-pipe.c abstime abstime.h + $(CC) $(CFLAGS) -c mmix-pipe.c +- rm abstime.h + + mmix-config.o: mmix-pipe.o + + mmmix: mmix-arith.o mmix-pipe.o mmix-config.o mmix-mem.o mmix-io.o mmmix.c +- $(CC) $(CFLAGS) mmmix.c \ ++ $(CC) $(CFLAGS) $(LDFLAGS) mmmix.c \ + mmix-arith.o mmix-pipe.o mmix-config.o mmix-mem.o mmix-io.o -o mmmix + + mmixal: mmix-arith.o mmixal.c +- $(CC) $(CFLAGS) mmixal.c mmix-arith.o -o mmixal ++ $(CC) $(CFLAGS) $(LDFLAGS) mmixal.c mmix-arith.o -o mmixal + +-mmix: mmix-arith.o mmix-io.o mmix-sim.c abstime +- ./abstime > abstime.h +- $(CC) $(CFLAGS) mmix-sim.c mmix-arith.o mmix-io.o -o mmix +- rm abstime.h ++mmix: mmix-arith.o mmix-io.o mmix-sim.c abstime abstime.h ++ $(CC) $(CFLAGS) $(LDFLAGS) mmix-sim.c mmix-arith.o mmix-io.o -o mmix + + mmotype: mmotype.c +- $(CC) $(CFLAGS) mmotype.c -o mmotype ++ $(CC) $(CFLAGS) $(LDFLAGS) mmotype.c -o mmotype + + tarfile: $(ALL) + tar cvf /tmp/mmix.tar $(ALL) diff --git a/dev-lang/mmix/files/mmix-20131017-format-security.patch b/dev-lang/mmix/files/mmix-20131017-format-security.patch new file mode 100644 index 000000000000..3824765317b9 --- /dev/null +++ b/dev-lang/mmix/files/mmix-20131017-format-security.patch @@ -0,0 +1,59 @@ +diff --git a/mmix-pipe.w b/mmix-pipe.w +index b7f4536..a1a9a48 100644 +--- a/mmix-pipe.w ++++ b/mmix-pipe.w +@@ -1883,7 +1883,7 @@ static void print_specnode_id(a) + octa a; + { + if (a.h==sign_bit) { +- if (a.l<32) printf(special_name[a.l]); ++ if (a.l<32) fputs(special_name[a.l], stdout); + else if (a.l<256) printf("g[%d]",a.l); + else printf("l[%d]",a.l-256); + }@+else if (a.h!=(tetra)-1) { +diff --git a/mmix-sim.w b/mmix-sim.w +index cb6995c..176f60c 100644 +--- a/mmix-sim.w ++++ b/mmix-sim.w +@@ -2832,7 +2832,7 @@ void trace_print(o) + case hex: fputc('#',stdout);@+print_hex(o);@+return; + case zhex: printf("%08x%08x",o.h,o.l);@+return; + case floating: print_float(o);@+return; +- case handle:@+if (o.h==0 && o.l<3) printf(stream_name[o.l]); ++ case handle:@+if (o.h==0 && o.l<3) fputs(stream_name[o.l], stdout); + else print_int(o);@+return; + } + } +@@ -2843,9 +2843,9 @@ case ')': fputc(right_paren[round_mode],stdout);@+break; + case 't':@+if (x.l) printf(" Yes, -> #"),print_hex(inst_ptr); + else printf(" No");@+break; + case 'g':@+if (!good) printf(" (bad guess)");@+break; +-case 's': printf(special_name[zz]);@+break; ++case 's': fputs(special_name[zz], stdout);@+break; + case '?': p++;@+if (z.l) printf("%c%d",*p,z.l);@+break; +-case 'l': printf(lhs);@+break; ++case 'l': fputs(lhs, stdout);@+break; + case 'r': p=switchable_string;@+break; + + @ @d rhs &switchable_string[1] +@@ -2984,9 +2984,9 @@ void scan_option(arg,usage) + fprintf(stderr, + "Usage: %s <options> progfile command line-args...\n",myself); + @.Usage: ...@> +- for (k=0;usage_help[k][0];k++) fprintf(stderr,usage_help[k]); ++ for (k=0;usage_help[k][0];k++) fputs(usage_help[k], stderr); + exit(-1); +- }@+else@+ for (k=0;usage_help[k][1]!='b';k++) printf(usage_help[k]); ++ }@+else@+ for (k=0;usage_help[k][1]!='b';k++) fputs(usage_help[k], stdout); + return; + } + } +@@ -3090,7 +3090,7 @@ void catchint(n) + printf("Eh? Sorry, I don't understand `%s'. (Type h for help)\n", + command_buf); + goto interact; +- case 'h':@+ for (k=0;interactive_help[k][0];k++) printf(interactive_help[k]); ++ case 'h':@+ for (k=0;interactive_help[k][0];k++) fputs(interactive_help[k], stdout); + goto interact; + } + check_syntax:@+ if (*p!='\n') { diff --git a/dev-lang/mmix/metadata.xml b/dev-lang/mmix/metadata.xml new file mode 100644 index 000000000000..5f92e9ec0673 --- /dev/null +++ b/dev-lang/mmix/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tamiko@gentoo.org</email> + <name>Matthias Maier</name> + </maintainer> +</pkgmetadata> diff --git a/dev-lang/mmix/mmix-20131017.ebuild b/dev-lang/mmix/mmix-20131017.ebuild new file mode 100644 index 000000000000..0b8bf06064e6 --- /dev/null +++ b/dev-lang/mmix/mmix-20131017.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Donald Knuth's MMIX Assembler and Simulator" +HOMEPAGE="https://www-cs-faculty.stanford.edu/~knuth/mmix.html http://mmix.cs.hm.edu" +SRC_URI="http://mmix.cs.hm.edu/src/${P}.tgz" + +DEPEND="virtual/tex-base + doc? ( || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericrecommended ) )" +RDEPEND="" + +SLOT="0" +LICENSE="${PN}" +KEYWORDS="amd64 x86" +IUSE="doc" + +S="${WORKDIR}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-20110420-makefile.patch + epatch "${FILESDIR}"/${PN}-20131017-format-security.patch +} + +src_compile() { + export VARTEXFONTS=${T}/fonts + emake all \ + CFLAGS="${CFLAGS}" \ + CC="$(tc-getCC)" + + if use doc ; then + emake doc + fi +} + +src_install () { + dobin ${PN} ${PN}al m${PN} mmotype abstime + dodoc README ${PN}.1 + + if use doc ; then + insinto /usr/share/doc/${PF} + doins *.ps + fi +} diff --git a/dev-lang/mmix/mmix-20160804.ebuild b/dev-lang/mmix/mmix-20160804.ebuild new file mode 100644 index 000000000000..b98e3aafec43 --- /dev/null +++ b/dev-lang/mmix/mmix-20160804.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Donald Knuth's MMIX Assembler and Simulator" +HOMEPAGE="https://www-cs-faculty.stanford.edu/~knuth/mmix.html http://mmix.cs.hm.edu" +SRC_URI="http://mmix.cs.hm.edu/src/${P}.tgz" + +DEPEND="virtual/tex-base + doc? ( || ( dev-texlive/texlive-plaingeneric dev-texlive/texlive-genericrecommended ) )" +RDEPEND="" + +SLOT="0" +LICENSE="${PN}" +KEYWORDS="amd64 x86" +IUSE="doc" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}"/${PN}-20110420-makefile.patch + "${FILESDIR}"/${PN}-20131017-format-security.patch +) + +src_compile() { + export VARTEXFONTS=${T}/fonts + emake all \ + CFLAGS="${CFLAGS}" \ + CC="$(tc-getCC)" + + if use doc ; then + emake doc + fi +} + +src_install () { + dobin ${PN} ${PN}al m${PN} mmotype abstime + dodoc README ${PN}.1 + + if use doc ; then + insinto /usr/share/doc/${PF} + doins *.ps + fi +} |