diff options
author | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-05 00:48:58 +0000 |
---|---|---|
committer | Ciaran McCreesh <ciaranm@gentoo.org> | 2005-03-05 00:48:58 +0000 |
commit | ae372908caa1c178ef043e4f6b013680df92cd37 (patch) | |
tree | 6f2085c3f2e2b2709508740f01ee1097ab4e7877 /media-gfx/tic98 | |
parent | Moved sys-apps/tmpreaper to app-admin/tmpreaper (diff) | |
download | gentoo-2-ae372908caa1c178ef043e4f6b013680df92cd37.tar.gz gentoo-2-ae372908caa1c178ef043e4f6b013680df92cd37.tar.bz2 gentoo-2-ae372908caa1c178ef043e4f6b013680df92cd37.zip |
Moved from sys-apps/tic98 to media-gfx/tic98.
Diffstat (limited to 'media-gfx/tic98')
-rw-r--r-- | media-gfx/tic98/ChangeLog | 21 | ||||
-rw-r--r-- | media-gfx/tic98/Manifest | 18 | ||||
-rw-r--r-- | media-gfx/tic98/files/digest-tic98-1.01 | 1 | ||||
-rw-r--r-- | media-gfx/tic98/files/digest-tic98-1.01-r1 | 1 | ||||
-rw-r--r-- | media-gfx/tic98/files/tic98-1.01-gentoo.diff | 82 | ||||
-rw-r--r-- | media-gfx/tic98/files/tic98.diff | 90 | ||||
-rw-r--r-- | media-gfx/tic98/metadata.xml | 5 | ||||
-rw-r--r-- | media-gfx/tic98/tic98-1.01-r1.ebuild | 31 | ||||
-rw-r--r-- | media-gfx/tic98/tic98-1.01.ebuild | 31 |
9 files changed, 280 insertions, 0 deletions
diff --git a/media-gfx/tic98/ChangeLog b/media-gfx/tic98/ChangeLog new file mode 100644 index 000000000000..59e2ca02df31 --- /dev/null +++ b/media-gfx/tic98/ChangeLog @@ -0,0 +1,21 @@ +# ChangeLog for sys-apps/tic98 +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/tic98/ChangeLog,v 1.1 2005/03/05 00:48:58 ciaranm Exp $ + +*tic98-1.01 (05 Mar 2005) + + 05 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml, + +files/tic98-1.01-gentoo.diff, +files/tic98.diff, +tic98-1.01-r1.ebuild, + +tic98-1.01.ebuild: + Moved from sys-apps/tic98 to media-gfx/tic98. + + 24 Aug 2004; Sven Wegener <swegener@gentoo.org> tic98-1.01-r1.ebuild, + tic98-1.01.ebuild: + use epatch for patching + +*tic98-1.01-r1 (19 Oct 2003) + +*tic98-1.01 (04 Dec 2002) + + 04 Dec 2002; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by mjc. diff --git a/media-gfx/tic98/Manifest b/media-gfx/tic98/Manifest new file mode 100644 index 000000000000..4fc6cc4c23f9 --- /dev/null +++ b/media-gfx/tic98/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 c7739da4572153440acfda4f042cf550 ChangeLog 476 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 50a0a0ba7718311bf42a44fd6b416874 tic98-1.01-r1.ebuild 885 +MD5 35f25cf1cc072cb32876f2bfdc63e8c3 tic98-1.01.ebuild 882 +MD5 b2419a7092da155e7165fec26d606e07 files/digest-tic98-1.01 62 +MD5 b2419a7092da155e7165fec26d606e07 files/digest-tic98-1.01-r1 62 +MD5 c7a34ada9751cb8a4ed07f73959c881a files/tic98-1.01-gentoo.diff 2153 +MD5 2deb186a272185cf5454932fb730c77b files/tic98.diff 2480 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.5 (GNU/Linux) + +iD8DBQFBKrpyI1lqEGTUzyQRAouTAKDPxmcI50Z4t9RGE2u85y6054+hZwCeJe46 +Sm04cjlUx/d11FV1tA7VhKo= +=ZXXD +-----END PGP SIGNATURE----- diff --git a/media-gfx/tic98/files/digest-tic98-1.01 b/media-gfx/tic98/files/digest-tic98-1.01 new file mode 100644 index 000000000000..a6bdd9395d4c --- /dev/null +++ b/media-gfx/tic98/files/digest-tic98-1.01 @@ -0,0 +1 @@ +MD5 f7d7f789d999c09376c880b83164336c tic98-1.01.tar.gz 108287 diff --git a/media-gfx/tic98/files/digest-tic98-1.01-r1 b/media-gfx/tic98/files/digest-tic98-1.01-r1 new file mode 100644 index 000000000000..a6bdd9395d4c --- /dev/null +++ b/media-gfx/tic98/files/digest-tic98-1.01-r1 @@ -0,0 +1 @@ +MD5 f7d7f789d999c09376c880b83164336c tic98-1.01.tar.gz 108287 diff --git a/media-gfx/tic98/files/tic98-1.01-gentoo.diff b/media-gfx/tic98/files/tic98-1.01-gentoo.diff new file mode 100644 index 000000000000..21ab2f3a68cf --- /dev/null +++ b/media-gfx/tic98/files/tic98-1.01-gentoo.diff @@ -0,0 +1,82 @@ +diff -Nru tic98/Makefile tic98.gentoo/Makefile +--- tic98/Makefile 1999-06-22 05:00:58.000000000 -0400 ++++ tic98.gentoo/Makefile 2002-10-19 18:20:55.000000000 -0400 +@@ -1,4 +1,4 @@ +-BIN=/home/singlis/linux/bin ++BIN=/usr/bin + IMAGES=/home/ml/singlis + LIBTIC= + LIBS= -lm #-L/home/singlis/linux/lib -lccmalloc -ldl +@@ -180,4 +180,4 @@ + boundary.o getopt.o windowing.o + $(CC) -o $@ $^ $(LIBS) + +- +\ No newline at end of file ++ +diff -Nru tic98/arithcode.c tic98.gentoo/arithcode.c +--- tic98/arithcode.c 1999-06-21 21:48:40.000000000 -0400 ++++ tic98.gentoo/arithcode.c 2002-10-19 18:19:20.000000000 -0400 +@@ -610,7 +610,7 @@ + bits_to_go = 0; + } + +-#ifdef 0 ++#ifdef none + void + arith_encode( unsigned int lbnd, unsigned int hbnd, unsigned int totl ) + /* Arithmetically encode the range. */ +@@ -645,7 +645,7 @@ + } + + +-#ifdef 0 ++#ifdef none + void arith_decode( unsigned int lbnd, unsigned int hbnd, unsigned int totl ) + /* Arithmetically decode the range. */ + { +@@ -726,7 +726,7 @@ + + + +-#ifdef 0 ++#ifdef none + + void + EncodeGammaSigned (int snum, int *pos, int *neg) +diff -Nru tic98/b_gamma.c tic98.gentoo/b_gamma.c +--- tic98/b_gamma.c 1999-06-21 21:48:41.000000000 -0400 ++++ tic98.gentoo/b_gamma.c 2002-10-19 18:18:43.000000000 -0400 +@@ -187,7 +187,7 @@ + } + } + +-#ifdef 0 ++#ifdef none + void + b_gamma_encode_64(unsigned long num) + { +diff -Nru tic98/docstrum.c tic98.gentoo/docstrum.c +--- tic98/docstrum.c 1999-07-01 15:58:37.000000000 -0400 ++++ tic98.gentoo/docstrum.c 2002-10-19 18:19:39.000000000 -0400 +@@ -672,7 +672,7 @@ + calc_docstrum_spacing(list,neighs,0,&within,&between); + + prune_neighbours_distance(neighs,len, 3*between); +-#ifdef 0 ++#ifdef none + prune_neighbours_angle_distance(neighs,len, 0,30, 6*within/*MIN(6*within,sqrt(2.0)*between)*/); + #endif + +diff -Nru tic98/ppmd_model.c tic98.gentoo/ppmd_model.c +--- tic98/ppmd_model.c 1999-06-21 21:48:42.000000000 -0400 ++++ tic98.gentoo/ppmd_model.c 2002-10-19 18:20:33.000000000 -0400 +@@ -496,7 +496,7 @@ + arithmetic_encode( lbnd, hbnd, totl ); + } + +-#ifdef 0 ++#ifdef none + unsigned int + arith_decode_target (unsigned int totl) + /* Arithmetically decodes the target. */ diff --git a/media-gfx/tic98/files/tic98.diff b/media-gfx/tic98/files/tic98.diff new file mode 100644 index 000000000000..63f76d013df2 --- /dev/null +++ b/media-gfx/tic98/files/tic98.diff @@ -0,0 +1,90 @@ +diff -ru tic98/main_tic.c tic98-new/main_tic.c +--- tic98/main_tic.c Thu Jul 1 21:02:56 1999 ++++ tic98-new/main_tic.c Fri Mar 16 11:43:56 2001 +@@ -11,6 +11,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <errno.h> + + #include "arithcode.h" + #include "globals.h" +@@ -96,8 +97,10 @@ + marklistptr list=NULL,list2=NULL; + marktype copy; + +- if(marktype_readnamed(fn, image)!=0) ++ if(marktype_readnamed(fn, image)!=0) { ++ fprintf(stderr, "imagefn_to_list(): bad input file %s\n", fn); + return NULL; ++ } + + *w=image->w; + *h=image->h; +@@ -495,7 +498,10 @@ + + TimerStart(1); + +- freopen(outfilename[0],"wb",stdout); ++ if (! freopen(outfilename[0],"wb",stdout)) { ++ fprintf(stderr, "failed to open %s for writing: %s\n", ++ outfilename[0], strerror(errno)); ++ } + + tic98_init(&t); + tic98_start_encoding(); +@@ -503,8 +509,11 @@ + for(i=0;i<num_in;i++){ + int w,h,xx,yy,ok=0; + marktype image; +- list=imagefn_to_list(&image,infilename[i], &w, &h); +- ++ if (! (list=imagefn_to_list(&image,infilename[i], &w, &h))) { ++ fprintf(stderr, "cannot read file %s\n", infilename[i]); ++ exit(1); ++ } ++ + tic98_num_encode(&t,NEW_PAGE); + + for(xx=0;xx<image.w;xx++) +@@ -560,7 +569,10 @@ + newoutname=(char*)malloc(sizeof(char)*(strlen(outfilename[0])+10)); + assert(newoutname); + +- freopen(infilename[0],"rb",stdin); ++ if (! freopen(infilename[0],"rb",stdin)) { ++ fprintf(stderr, "failed to open %s for reading: %s\n", ++ infilename[0], strerror(errno)); ++ } + + tic98_init(&t); + tic98_start_decoding(); +diff -ru tic98/marklist.c tic98-new/marklist.c +--- tic98/marklist.c Thu Jul 1 21:56:19 1999 ++++ tic98-new/marklist.c Fri Mar 16 11:44:20 2001 +@@ -94,11 +94,11 @@ + magic = magic_popnamed (fn, &err) >> 16; /* only interested in first 2 bytes */ + + if (err != 0) { +- return 1; /* failure */ + fprintf (stderr, "error - can't open file '%s'\n", fn); +- return 1; ++ return 1; /* failure */ + } + if (!((magic == MAGIC_P1) || (magic == MAGIC_P4))) { ++ fprintf (stderr, "bad magic in file '%s'\n", fn); + return 1; + } + if (fn2) { +diff -ru tic98/utils.c tic98-new/utils.c +--- tic98/utils.c Tue Jun 22 02:48:43 1999 ++++ tic98-new/utils.c Fri Mar 16 11:23:57 2001 +@@ -117,7 +117,7 @@ + } + else{ + *err=1; +-/* error("magic_popnamed","can't open file",fn);*/ ++ error("magic_popnamed","can't open file",fn); + return 0; + } + } diff --git a/media-gfx/tic98/metadata.xml b/media-gfx/tic98/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/media-gfx/tic98/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> diff --git a/media-gfx/tic98/tic98-1.01-r1.ebuild b/media-gfx/tic98/tic98-1.01-r1.ebuild new file mode 100644 index 000000000000..c4fcc9898b44 --- /dev/null +++ b/media-gfx/tic98/tic98-1.01-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/tic98/tic98-1.01-r1.ebuild,v 1.1 2005/03/05 00:48:58 ciaranm Exp $ + +inherit eutils + +DESCRIPTION="tic98 is a compressor for black-and-white images, in particular scanned documents. It gets very good compression, better than AT&T's DjVu system. tic98 also includes ppmd text compression (ppmd) and number compression (b_gamma_enc)" +HOMEPAGE="http://www.cs.waikato.ac.nz/~singlis/" +SRC_URI="http://www.cs.waikato.ac.nz/~singlis/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="" + +DEPEND="" + +S="${WORKDIR}/${PN}" + +src_compile() { + epatch ${FILESDIR}/${P}-gentoo.diff + epatch $FILESDIR/${PN}.diff + emake all || die + emake all2 || die +} + +src_install() { + dodir /usr + dodir /usr/bin + make BIN=${D}usr/bin install || die +} diff --git a/media-gfx/tic98/tic98-1.01.ebuild b/media-gfx/tic98/tic98-1.01.ebuild new file mode 100644 index 000000000000..ffd7c61732e6 --- /dev/null +++ b/media-gfx/tic98/tic98-1.01.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/tic98/tic98-1.01.ebuild,v 1.1 2005/03/05 00:48:58 ciaranm Exp $ + +inherit eutils + +DESCRIPTION="tic98 is a compressor for black-and-white images, in particular scanned documents. It gets very good compression, better than AT&T's DjVu system. tic98 also includes ppmd text compression (ppmd) and number compression (b_gamma_enc)" +HOMEPAGE="http://www.cs.waikato.ac.nz/~singlis/" +SRC_URI="http://www.cs.waikato.ac.nz/~singlis/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="" + +DEPEND="" + +S="${WORKDIR}/${PN}" + +src_compile() { + epatch ${FILESDIR}/${P}-gentoo.diff + epatch $FILESDIR/${PN}.diff + emake all || die + emake all2 || die +} + +src_install() { + dodir /usr + dodir /usr/bin + make BIN=${D}usr/bin install || die +} |