diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-engines/frotz |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-engines/frotz')
-rw-r--r-- | games-engines/frotz/Manifest | 8 | ||||
-rw-r--r-- | games-engines/frotz/files/frotz-2.43-glibc2.10.patch | 29 | ||||
-rw-r--r-- | games-engines/frotz/files/frotz-2.43-ldflags.patch | 20 | ||||
-rw-r--r-- | games-engines/frotz/frotz-2.43-r1.ebuild | 52 | ||||
-rw-r--r-- | games-engines/frotz/frotz-2.43.ebuild | 50 | ||||
-rw-r--r-- | games-engines/frotz/metadata.xml | 11 |
6 files changed, 170 insertions, 0 deletions
diff --git a/games-engines/frotz/Manifest b/games-engines/frotz/Manifest new file mode 100644 index 000000000000..827f93b0f158 --- /dev/null +++ b/games-engines/frotz/Manifest @@ -0,0 +1,8 @@ +AUX frotz-2.43-glibc2.10.patch 859 SHA256 1c8c487a4b4492adabab6551941ba621b2880cf8173aeef3002b20ae1c96db3b SHA512 467477b2740667b1f8356845f7ec30a8318120313dc2bbfa2bcbde2c9cde77269349b6e7076397a7c837d9a1e72aa8fe59007fd73bd0de14b6c8244514fb81d2 WHIRLPOOL b5960ec6f44187964329155f2c61f5dcb64b7e65a820570cbfa328796ad883017254b548926d6144b11a796e781339bb0355b05879a44637cd58cd649abddca5 +AUX frotz-2.43-ldflags.patch 665 SHA256 af72e5c23a41714e8f1a5a1c14e429c01aa49ab90b06a490fd1a9a7db32ba373 SHA512 9d750679169daa67fcd6580edd5dd53f80ab490e2637d524be9525f99764b5203242a9f9e93262d9c1abcc6d62b994f7d943040931b30ab2ce1ac9a6b772e107 WHIRLPOOL 1bf83d6f6333eb75e6da3e1dc507c5c8b261c5c6fc99e94251d65f2d95626f6c773cadb2fa7982d6239d1e6384256b57e10bce11bc0c8b170d295dfaff748dbf +DIST frotz-2.43.tar.gz 160771 SHA256 f831eae9182e4a1407a34cb1098a4f5ad5ad6c6632e34eed734b9601a06a764b SHA512 654f2ca2d1a625df8f88b5629e09a873668cea42688acdf154636b066b94fc9d70b7f45acb33a71d234c19b59c394c63aee38d6224245b3b329210e6b4a58409 WHIRLPOOL af75842ed8693895d564cbaa4fa3d7b095a4470101728179a7d8659876e1043d98274330d2f7efbe0fd1443ea68ad2fcb49efe4b3e6a6dede6f3e9f4e574de5c +EBUILD frotz-2.43-r1.ebuild 1075 SHA256 f46ef6ba88890ad3957f545a75b6045962e20402bd0b9e787692f45e67830d95 SHA512 00953652ed45fe80f9332758e5399afbbb479d2ef74f1e4e50e7eddda4566e57b4aaf2d51649f792f91abc75a580b8e3ccd677a3fc9bf1af5f07f2c710ad7e16 WHIRLPOOL aab4b98a71b3ebb786a51877f40adc05b72347b29fb26962efffdb7a3c25ba910f30959c5848fca5bf596e20c2ab730313107a983b8d2c7710246a5f31a1bc9d +EBUILD frotz-2.43.ebuild 1140 SHA256 1c6f50bbeb85e64111fc5c22fcd0f0a49779c0fc08131e5d8c26c2b2ce9e86bf SHA512 303517a1b49ad434885169a76a8326ed1fbc44bd8237c8328efc09e420dd03dc00975e91ae3a546a0f71aaa88509c6fbadc00c10c3d118dcba6dedac2130343d WHIRLPOOL 7a25c98e868e07317a469b44604c5aa2fb2c88909961ccddaacaef060f66191d79d150357578ac3992ae46c3638a3aaf1b05e115e338b3d6cc21579ef9255324 +MISC ChangeLog 3502 SHA256 1aee9449d57afe65088a80bdbb1684c4024aef29050e338d38f5832da6a63748 SHA512 b8b551ead611c67e0af1f415c64b5563872d02063c6da714f722e3dd4555d12e5ac49cebe384c8be43b9b96f442fa22276037a4dde875a8ac31569997806f9e9 WHIRLPOOL 58ad4231252dcc0559195337cec7fd2d343e3ad5fb0fef0df69b2c34d4e74715be2fa70e11dc786ab6216af40c6f6e8bc42b3ea44813503446e246ce91406e14 +MISC ChangeLog-2015 2665 SHA256 9bdd16e732f5182f3d36aac132b95b5bcd2ab6dfbcb9fd6c688d71834a18f284 SHA512 c1e47290e4db029c074a90288360af95afc8deca08f12024d78d8e290f4ecd7bdae3c1f91ec786205ceb1015d10183878d76f14607f3f4bc974bac16688f354a WHIRLPOOL 4ab95a72f7ef5e16366dc54a092784e2572228c294d792c1a3a376ec0175560e9d30c4c9900eaf63b728bbc0ccafaf37590c9f29ff3ea86faf96524f7206e387 +MISC metadata.xml 328 SHA256 5909fede921421cda889a61c578ac47a0126135b24336833e5d900cbf3fdce4d SHA512 37fcc943d9d2700b5d88e71666af1a3ebe5baf905095d864066ebe20ac7edd54bfcafacc31684ae1eeed5197096cecbfec57c01ff5be1b567af1cc21c7294d6a WHIRLPOOL 251535805a826ec2e64b8d6d0811d532799dfdd265389939a372ee8e8a171d8af11f03be90ca561015a335d4e2f72188f82a39aceb1d72f920ed121af6d7cff5 diff --git a/games-engines/frotz/files/frotz-2.43-glibc2.10.patch b/games-engines/frotz/files/frotz-2.43-glibc2.10.patch new file mode 100644 index 000000000000..3f2639ec47d0 --- /dev/null +++ b/games-engines/frotz/files/frotz-2.43-glibc2.10.patch @@ -0,0 +1,29 @@ +--- a/src/dumb/dumb_input.c ++++ b/src/dumb/dumb_input.c +@@ -79,7 +79,7 @@ + /* Read one line, including the newline, into s. Safely avoids buffer + * overruns (but that's kind of pointless because there are several + * other places where I'm not so careful). */ +-static void getline(char *s) ++static void get_line(char *s) + { + int c; + char *p = s; +@@ -203,7 +203,7 @@ + fputs(prompt, stdout); + else + dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]); +- getline(s); ++ get_line(s); + if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) { + /* Is not a command line. */ + translate_special_chars(s); +@@ -265,7 +265,7 @@ + if (!*current_page) + break; + printf("HELP: Type <return> for more, or q <return> to stop: "); +- getline(s); ++ get_line(s); + if (!strcmp(s, "q\n")) + break; + } diff --git a/games-engines/frotz/files/frotz-2.43-ldflags.patch b/games-engines/frotz/files/frotz-2.43-ldflags.patch new file mode 100644 index 000000000000..c8b4e35eee20 --- /dev/null +++ b/games-engines/frotz/files/frotz-2.43-ldflags.patch @@ -0,0 +1,20 @@ +--- a/Makefile 2010-10-04 14:13:37.000000000 +0200 ++++ b/Makefile 2010-10-04 14:14:06.000000000 +0200 +@@ -162,7 +162,7 @@ + $(NAME): $(NAME)-curses + + $(NAME)-curses: soundcard.h $(COMMON_TARGET) $(CURSES_TARGET) +- $(CC) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \ ++ $(CC) $(LDFLAGS) -o $(BINNAME)$(EXTENSION) $(TARGETS) $(LIB) $(CURSES) \ + $(SOUND_LIB) + + all: $(NAME) d$(NAME) +@@ -170,7 +170,7 @@ + dumb: $(NAME)-dumb + d$(NAME): $(NAME)-dumb + $(NAME)-dumb: $(COMMON_TARGET) $(DUMB_TARGET) +- $(CC) -o d$(BINNAME)$(EXTENSION) $(COMMON_TARGET) \ ++ $(CC) $(LDFLAGS) -o d$(BINNAME)$(EXTENSION) $(COMMON_TARGET) \ + $(DUMB_TARGET) $(LIB) + + .SUFFIXES: diff --git a/games-engines/frotz/frotz-2.43-r1.ebuild b/games-engines/frotz/frotz-2.43-r1.ebuild new file mode 100644 index 000000000000..08d19d78526c --- /dev/null +++ b/games-engines/frotz/frotz-2.43-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="Curses based interpreter for Z-code based text games" +HOMEPAGE="http://frotz.sourceforge.net/" +SRC_URI="http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa oss" + +DEPEND="sys-libs/ncurses:0 + alsa? ( oss? ( media-libs/alsa-oss ) )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-glibc2.10.patch + "${FILESDIR}"/${P}-ldflags.patch +) + +src_prepare() { + default + + sed -i \ + -e '/^CC /d' \ + Makefile \ + || die +} + +src_compile() { + local OPTS="CONFIG_DIR=/etc" + use oss && OPTS="${OPTS} SOUND_DEFS=-DOSS_SOUND SOUND_DEV=/dev/dsp" + emake ${OPTS} all +} + +src_install () { + dobin {d,}frotz + doman doc/*.6 + dodoc AUTHORS BUGS ChangeLog HOW_TO_PLAY README TODO \ + doc/{frotz.conf-big,frotz.conf-small} +} + +pkg_postinst() { + echo + elog "Global config file can be installed in /etc/frotz.conf" + elog "Sample config files are in /usr/share/doc/${PF}" + echo +} diff --git a/games-engines/frotz/frotz-2.43.ebuild b/games-engines/frotz/frotz-2.43.ebuild new file mode 100644 index 000000000000..3ad31ea944a1 --- /dev/null +++ b/games-engines/frotz/frotz-2.43.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Curses based interpreter for Z-code based text games" +HOMEPAGE="http://frotz.sourceforge.net/" +SRC_URI="http://www.ifarchive.org/if-archive/infocom/interpreters/frotz/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="alsa oss" + +DEPEND="sys-libs/ncurses:0 + alsa? ( oss? ( media-libs/alsa-oss ) )" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e '/^CC /d' \ + Makefile \ + || die + epatch \ + "${FILESDIR}"/${P}-glibc2.10.patch \ + "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + local OPTS="CONFIG_DIR=${GAMES_SYSCONFDIR}" + use oss && OPTS="${OPTS} SOUND_DEFS=-DOSS_SOUND SOUND_DEV=/dev/dsp" + emake ${OPTS} all +} + +src_install () { + dogamesbin {d,}frotz + doman doc/*.6 + dodoc AUTHORS BUGS ChangeLog HOW_TO_PLAY README TODO \ + doc/{frotz.conf-big,frotz.conf-small} + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "Global config file can be installed in ${GAMES_SYSCONFDIR}/frotz.conf" + elog "Sample config files are in /usr/share/doc/${PF}" + echo +} diff --git a/games-engines/frotz/metadata.xml b/games-engines/frotz/metadata.xml new file mode 100644 index 000000000000..051541926fbb --- /dev/null +++ b/games-engines/frotz/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">frotz</remote-id> + </upstream> +</pkgmetadata> |