diff options
Diffstat (limited to 'games-puzzle/tint')
-rw-r--r-- | games-puzzle/tint/Manifest | 6 | ||||
-rw-r--r-- | games-puzzle/tint/files/tint-0.03b-ovflfix.patch | 33 | ||||
-rw-r--r-- | games-puzzle/tint/metadata.xml | 8 | ||||
-rw-r--r-- | games-puzzle/tint/tint-0.03b.ebuild | 40 |
4 files changed, 87 insertions, 0 deletions
diff --git a/games-puzzle/tint/Manifest b/games-puzzle/tint/Manifest new file mode 100644 index 000000000000..02390394ba15 --- /dev/null +++ b/games-puzzle/tint/Manifest @@ -0,0 +1,6 @@ +AUX tint-0.03b-ovflfix.patch 1021 SHA256 1eba68c1f76105f2ef7ec6eb43729df7800242501868b06b1f713f6796a5b19e SHA512 da4d5871b46c57ee5e37f0a4b6e779c33bf7b5c45dcba281b84ccad308195d9b2498489ee22f105e6eef00274cf60757855ab9aa91a146f19159713971b828bf WHIRLPOOL c45dc9a14c1c9fb9e2c1676b3ce3cfe11d20a02fc008ff4cb2b4f0d7e2afe8097397717bbf68fbf135e70bc48325d43aa045b58a4d36acc2b630d4d654daf922 +DIST tint_0.03b.tar.gz 16909 SHA256 f43fc82c5d16954a85ef532b0771599902cea86d8d9eea044e5b7454db91419c SHA512 f442122248987a4f2843e0abe3ed4b3fcecbb6024aad2b486087468c84d80f94310dcf4a37a3d93a647d0abe9aaf10e7d957c88ec6314c25a9fd90d4dfc16ec1 WHIRLPOOL 0828a78940d54070d7d5199d49a13dd61132c06e2ed54645a9d278cc9bc78ef7cbcfe26d0a700ebd500d3828ea6376b4170fb63593fca2b8c537d603127d18eb +EBUILD tint-0.03b.ebuild 826 SHA256 cefdc15672d9deeb45a7e362581c3ad9eb10e915af14c623fcb6cfa913804590 SHA512 579d89cd830dc8d1ae15ddef46d39f9014f71f85290a39a1d024a1423b8f96e64e697563f0e696e10b8f80670245676a3a6a2dc935f88f1728e4ca35867cbb1e WHIRLPOOL ab9935572c1421c4008cddfac92328908bd31494c9868815e26779507ae85a3089d5e559dba70f4068c7b9e8a0a44ae4017e159a61842f055d592b36a6e28914 +MISC ChangeLog 2595 SHA256 6c89ad6e32b42a64bdefab806d876e24fdf1d2815e3c61eecf24853767ec1830 SHA512 d83b2280fc94864134e8a9654cb0445d0e2f46147a6ecd3c1e9a1e1014cc0460bbea007f3fd44814408f78288ee38986f1bc65083fb07911e60881341d92c3bb WHIRLPOOL a22535bca4b3ba2999bf475f86599dda415be5fc51f90e6b1980a5415e07e402000623c018193787f0d3d6f362bc5a9f40710b3ddd3c3f6657549dce6f41db2f +MISC ChangeLog-2015 2117 SHA256 9a928cbd6f494efaaa59fa9d3934b6e64cf0ea2a45615c4334bf51563bc4103d SHA512 2e28a01871276681d2529c6a31f031045016a7c089697d9c531150b712e6d2c8b71ff67e98a0e7754203042b28f4258734a52f9c02c2bed37e3e2b6226d6cf69 WHIRLPOOL d61cae28d33db7f9eb2e381dcddc0b4050a63720cd40e0314a32be78a6b5c70bf19a30acdb2b8477e201599535c8e81c0883f94841ab7cfaa3333cc199e79ed1 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-puzzle/tint/files/tint-0.03b-ovflfix.patch b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch new file mode 100644 index 000000000000..341f027999ce --- /dev/null +++ b/games-puzzle/tint/files/tint-0.03b-ovflfix.patch @@ -0,0 +1,33 @@ +diff -ru tint-0.03b.orig/io.c tint-0.03b/io.c +--- tint-0.03b.orig/io.c 2001-12-07 10:48:20.000000000 -0500 ++++ tint-0.03b/io.c 2010-11-08 13:40:16.786841434 -0500 +@@ -39,7 +39,7 @@ + #define NUM_COLORS 8 + + /* Number of attributes defined in io.h */ +-#define NUM_ATTRS 7 ++#define NUM_ATTRS 9 + + /* Cursor definitions */ + #define CURSOR_INVISIBLE 0 +diff -ru tint-0.03b.orig/tint.c tint-0.03b/tint.c +--- tint-0.03b.orig/tint.c 2005-07-17 07:26:43.000000000 -0400 ++++ tint-0.03b/tint.c 2010-11-08 13:40:04.225203170 -0500 +@@ -365,7 +365,7 @@ + FILE *handle; + int i,j; + score_t scores[NUMSCORES]; +- char header[strlen (SCORE_HEADER)]; ++ char header[strlen(SCORE_HEADER) + 1]; + if (score == 0) return; /* No need saving this */ + for (i = 1; i < NUMSCORES; i++) + { +@@ -418,7 +418,7 @@ + FILE *handle; + int i,j,ch; + score_t scores[NUMSCORES]; +- char header[strlen (SCORE_HEADER)]; ++ char header[strlen(SCORE_HEADER) + 1]; + time_t tmp = 0; + if ((handle = fopen (scorefile,"r")) == NULL) + { diff --git a/games-puzzle/tint/metadata.xml b/games-puzzle/tint/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-puzzle/tint/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="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-puzzle/tint/tint-0.03b.ebuild b/games-puzzle/tint/tint-0.03b.ebuild new file mode 100644 index 000000000000..779ef88c96d3 --- /dev/null +++ b/games-puzzle/tint/tint-0.03b.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +MY_P=${P/-/_} +DESCRIPTION="Tint Is Not Tetris, a ncurses based clone of the original Tetris(tm) game" +HOMEPAGE="http://oasis.frogfoot.net/code/tint/" +SRC_URI="http://oasis.frogfoot.net/code/tint/download/${PV}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=sys-libs/ncurses-5.4-r1:0" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ovflfix.patch +} + +src_compile() { + emake \ + STRIP=true \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + localstatedir="${GAMES_STATEDIR}" +} + +src_install() { + dogamesbin tint + doman tint.6 + dodoc CREDITS NOTES + insopts -m 0664 + insinto "${GAMES_STATEDIR}" + doins tint.scores + prepgamesdirs +} |