From 802a21d2a4e5057e2b46e0688fb63d7f080e13d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 14 Jan 2020 17:19:58 +0100 Subject: [PATCH] media-gfx/tic98: Remove last-rited pkg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- media-gfx/tic98/Manifest | 1 - media-gfx/tic98/files/tic98-1.01-gentoo.diff | 205 ------------------ .../tic98/files/tic98-1.01-glibc-2.10.patch | 20 -- media-gfx/tic98/files/tic98-1.01-macos.patch | 26 --- media-gfx/tic98/metadata.xml | 8 - media-gfx/tic98/tic98-1.01-r3.ebuild | 45 ---- profiles/package.mask | 5 - 7 files changed, 310 deletions(-) delete mode 100644 media-gfx/tic98/Manifest delete mode 100644 media-gfx/tic98/files/tic98-1.01-gentoo.diff delete mode 100644 media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch delete mode 100644 media-gfx/tic98/files/tic98-1.01-macos.patch delete mode 100644 media-gfx/tic98/metadata.xml delete mode 100644 media-gfx/tic98/tic98-1.01-r3.ebuild diff --git a/media-gfx/tic98/Manifest b/media-gfx/tic98/Manifest deleted file mode 100644 index 885a175879e06..0000000000000 --- a/media-gfx/tic98/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST tic98-1.01.tar.bz2 99145 BLAKE2B 37abd7f6cc81b1697daa61d19bf08820e1cd13b2cd521f99cc9ad83705e9b048fa28326a2e4e28ed1836c834cd1839d3aaf013d809557c9163f4c933c6ef7ce7 SHA512 3bb6c72f0a9ed199f2eb1ceb53a5552b384510a9f6ecdfabf7f79e815cb0511cf880a00bddf5b88b49ea416fbcf7fed5e84af1ee2fbed7c313b39ee042efa797 diff --git a/media-gfx/tic98/files/tic98-1.01-gentoo.diff b/media-gfx/tic98/files/tic98-1.01-gentoo.diff deleted file mode 100644 index 880dfa059545a..0000000000000 --- a/media-gfx/tic98/files/tic98-1.01-gentoo.diff +++ /dev/null @@ -1,205 +0,0 @@ -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 -Nru tic98.orig/page_features.c tic98/page_features.c ---- tic98.orig/page_features.c 1999-06-22 03:48:42.000000000 +0200 -+++ tic98/page_features.c 2005-08-02 19:47:09.485681960 +0200 -@@ -37,18 +37,17 @@ - void - dump_header() - { -- fprintf(stdout,"@arff 3 --@relation features --@attribute 'Number' real --@attribute 'Area' real --@attribute 'Avg_area' real --@attribute 'Density' real --@attribute 'Aspect' real --@attribute 'Holes' real --@attribute 'Edges' real --@attribute 'class' string range ( {?} ) --@data --"); -+ fprintf(stdout,"@arff 3" -+"@relation features" -+"@attribute 'Number' real" -+"@attribute 'Area' real" -+"@attribute 'Avg_area' real" -+"@attribute 'Density' real" -+"@attribute 'Aspect' real" -+"@attribute 'Holes' real" -+"@attribute 'Edges' real" -+"@attribute 'class' string range ( {?} )" -+"@data"); - - - } -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 - #include - #include -+#include - - #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> 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/files/tic98-1.01-glibc-2.10.patch b/media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch deleted file mode 100644 index 32caf5e434774..0000000000000 --- a/media-gfx/tic98/files/tic98-1.01-glibc-2.10.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- tic98.orig/ppmd_enc.c 2009-07-05 14:15:53.000000000 +0200 -+++ tic98/ppmd_enc.c 2009-07-05 14:18:47.000000000 +0200 -@@ -63,7 +63,7 @@ - } - - int --getline (FILE *fp, char *s, int max) -+tic98_getline (FILE *fp, char *s, int max) - /* Read line from FP into S; return its length (maximum length = MAX). */ - { - int i; -@@ -111,7 +111,7 @@ - ppm_start_encoding (max_order, max_symbol); - - /* Read in the integers */ -- while ((len = getline (fp, line, MAX_LINE)) != EOF) -+ while ((len = tic98_getline (fp, line, MAX_LINE)) != EOF) - { - count++; - if ((debugProgress) && ((count % debugProgress) == 0)) diff --git a/media-gfx/tic98/files/tic98-1.01-macos.patch b/media-gfx/tic98/files/tic98-1.01-macos.patch deleted file mode 100644 index 607e76f9416a4..0000000000000 --- a/media-gfx/tic98/files/tic98-1.01-macos.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- tic98/ppmd_hash.c.orig 2005-11-03 11:09:22.000000000 +0100 -+++ tic98/ppmd_hash.c 2005-11-03 11:09:49.000000000 +0100 -@@ -2,7 +2,9 @@ - #include - #include - #include -+#ifndef __APPLE__ - #include -+#endif - #include "ppmd_hash.h" - - #define HASH_NULL 0 ---- tic98/ppmd_model.c.orig 2005-11-03 11:07:09.000000000 +0100 -+++ tic98/ppmd_model.c 2005-11-03 11:09:04.000000000 +0100 -@@ -1,7 +1,11 @@ - /* PPM* model for arithmetic encoder. */ - #include - #include -+#ifndef __APPLE__ - #include -+#else -+#include -+#endif - #include "arithcode.h" - #include "ppmd_hash.h" - diff --git a/media-gfx/tic98/metadata.xml b/media-gfx/tic98/metadata.xml deleted file mode 100644 index 19bf1be2581ef..0000000000000 --- a/media-gfx/tic98/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - graphics@gentoo.org - Gentoo Graphics Project - - diff --git a/media-gfx/tic98/tic98-1.01-r3.ebuild b/media-gfx/tic98/tic98-1.01-r3.ebuild deleted file mode 100644 index f02741df8cfff..0000000000000 --- a/media-gfx/tic98/tic98-1.01-r3.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=4 - -inherit eutils - -DESCRIPTION="compressor for black-and-white images, in particular scanned documents" -HOMEPAGE="http://membled.com/work/mirror/tic98/" -SRC_URI="http://membled.com/work/mirror/tic98/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="" - -RESTRICT="test" - -S="${WORKDIR}/${PN}" - -src_prepare() { - epatch "${FILESDIR}"/${P}-macos.patch - epatch "${FILESDIR}"/${P}-gentoo.diff - epatch "${FILESDIR}"/${P}-glibc-2.10.patch - - # respect CFLAGS and LDFLAGS - sed -i -e "s:CFLAGS= -O -Wall -Wno-unused:CFLAGS=${CFLAGS}:" \ - -e "s:LIBS= -lm #-L/home/singlis/linux/lib -lccmalloc -ldl:LIBS= -lm ${LDFLAGS}:" \ - -e "s:CC= gcc -pipe :CC=$(tc-getCC):" \ - -e "s:CPP= gcc -pipe:CPP=$(tc-getCPP):" \ - Makefile || die -} - -src_compile() { - emake all - emake all2 -} - -src_install() { - dodir /usr/bin - emake BIN="${ED}"usr/bin install - - # collision with media-gfx/netpbm, see bug #207534 - rm "${ED}"/usr/bin/pbmclean || die -} diff --git a/profiles/package.mask b/profiles/package.mask index 8b2a1f6a9f7e1..37d3edfd69118 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -686,11 +686,6 @@ dev-libs/mps # Removal in 30 days dev-util/cmt -# Aaron Bauman (2019-12-10) -# EAPI=4, dead upstream/srcurl/homepage. cannot find new home -# Compression has come along way. Removal in 30 days -media-gfx/tic98 - # David Seifert (2019-12-08) # Unmaintained, build hangs, tons of other build failures, missing # dependencies. Bug #663794, #666916, #666922, #667062, #678068,