diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/zgv | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/zgv')
-rw-r--r-- | media-gfx/zgv/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch | 56 | ||||
-rw-r--r-- | media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff | 64 | ||||
-rw-r--r-- | media-gfx/zgv/files/zgv-5.9-libpng15.patch | 22 | ||||
-rw-r--r-- | media-gfx/zgv/metadata.xml | 8 | ||||
-rw-r--r-- | media-gfx/zgv/zgv-5.9.ebuild | 57 |
6 files changed, 208 insertions, 0 deletions
diff --git a/media-gfx/zgv/Manifest b/media-gfx/zgv/Manifest new file mode 100644 index 000000000000..74aeab0c5c94 --- /dev/null +++ b/media-gfx/zgv/Manifest @@ -0,0 +1 @@ +DIST zgv-5.9.tar.gz 395525 RMD160 1d1c47c77adc732c581d9db1189243a94c510586 SHA1 e29b81bb51401376b43397de3857e8ed846a7cad SHA256 92e5d848fb51a77dc0ebb0ab383c1499c23aaff01f5445e9b0d75e067a8a64ba diff --git a/media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch b/media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch new file mode 100644 index 000000000000..e4569547d175 --- /dev/null +++ b/media-gfx/zgv/files/zgv-5.9-Makefile-QA.patch @@ -0,0 +1,56 @@ +diff -NrU5 zgv-5.9.original/src/Makefile zgv-5.9/src/Makefile +--- zgv-5.9.original/src/Makefile 2009-09-28 15:31:29.000000000 -0600 ++++ zgv-5.9/src/Makefile 2009-09-28 15:56:26.000000000 -0600 +@@ -45,11 +45,11 @@ + readbmp.o readtga.o readpng.o readpcx.o \ + readxvpic.o readmrf.o readxbm.o readxpm.o \ + modesel.o readpcd.o readtiff.o readprf.o zgv_io.o + + zgv: $(ZGV_OBJS) +- $(CC) $(CFLAGS) -o zgv $(ZGV_OBJS) $(ZGV_LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o zgv $(ZGV_OBJS) $(ZGV_LIBS) + + bdf2h: bdf2h.o + $(CC) $(CFLAGS) -o bdf2h bdf2h.o + + install-info: install-info.c +@@ -59,28 +59,28 @@ + # installation. Not nice to put this in the install target, + # but it's likely to cause problems if I don't. + # + install: all + @if [ "$(BACKEND)" = SVGALIB ]; then \ +- echo $(RM) /usr/bin/zgv; \ +- $(RM) /usr/bin/zgv; \ +- echo install -m 4755 -o root -g root -s zgv $(BINDIR); \ +- install -m 4755 -o root -g root -s zgv $(BINDIR); \ ++ echo echo /usr/bin/zgv; \ ++ echo /usr/bin/zgv; \ ++ echo install -m 0755 -o root -g root zgv $(BINDIR); \ ++ install -m 0755 -o root -g root zgv $(BINDIR); \ + fi + @if [ "$(BACKEND)" = SDL ]; then \ +- echo $(RM) /usr/bin/zgv-sdl; \ +- $(RM) /usr/bin/zgv-sdl; \ +- echo install -m 755 -s zgv $(BINDIR)/zgv-sdl; \ +- install -m 755 -s zgv $(BINDIR)/zgv-sdl; \ ++ echo echo /usr/bin/zgv-sdl; \ ++ echo /usr/bin/zgv-sdl; \ ++ echo install -m 755 zgv $(BINDIR)/zgv-sdl; \ ++ install -m 755 zgv $(BINDIR)/zgv-sdl; \ + fi + + uninstall: +- $(RM) $(BINDIR)/zgv $(BINDIR)/zgv-sdl ++ echo $(BINDIR)/zgv $(BINDIR)/zgv-sdl + + clean: +- $(RM) *.o *~ zgv bdf2h fontbmps.h install-info +- $(RM) rcfile_opt.h rcfile_var.h rcfile_short.h ++ echo *.o *~ zgv bdf2h fontbmps.h install-info ++ echo rcfile_opt.h rcfile_var.h rcfile_short.h + + # Dependancies + 3deffects.o: 3deffects.c 3deffects.h font.h readnbkey.h zgv.h \ + rc_config.h rcfile.h mousecur.h rbmenu.h + bdf2h.o: bdf2h.c diff --git a/media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff b/media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff new file mode 100644 index 000000000000..e510a4ba9ec2 --- /dev/null +++ b/media-gfx/zgv/files/zgv-5.9-cmyk-yccl-fix.diff @@ -0,0 +1,64 @@ +--- zgv-5.9/src/readjpeg.c Sun Oct 31 14:54:26 2004 ++++ zgv/src/readjpeg.c Wed Sep 21 21:03:22 2005 +@@ -92,11 +92,13 @@ + int *real_width,int *real_height) + { + static FILE *in; ++static int cmyk; + struct my_error_mgr jerr; + int row_stride; /* physical row width in output buffer */ + int tmp,f; +-unsigned char *ptr; ++unsigned char *ptr,*ptr2; + ++cmyk=0; + use_errmsg=0; + theimage=NULL; + howfar=howfarfunc; +@@ -161,6 +163,15 @@ + pal[f]=pal[256+f]=pal[512+f]=f; + } + ++if(cinfo.jpeg_color_space==JCS_CMYK) ++ cmyk=1; ++ ++if(cinfo.jpeg_color_space==JCS_YCCK) ++ { ++ cmyk=1; ++ cinfo.out_color_space=JCS_CMYK; ++ } ++ + width=cinfo.image_width; + height=cinfo.image_height; + +@@ -191,7 +202,7 @@ + } + + if(WH_BAD(width,height) || +- (theimage=(byte *)malloc(pixelsize*width*height))==NULL) ++ (theimage=(byte *)malloc(pixelsize*width*(height+cmyk)))==NULL) + { + jpegerr("Out of memory"); /* XXX misleading if width/height are bad */ + longjmp(jerr.setjmp_buffer,1); +@@ -222,7 +233,20 @@ + while(cinfo.output_scanline<height) + { + jpeg_read_scanlines(&cinfo,&ptr,1); +- for(f=0;f<width;f++) { tmp=*ptr; *ptr=ptr[2]; ptr[2]=tmp; ptr+=3; } ++ if(!cmyk) ++ for(f=0;f<width;f++) { tmp=*ptr; *ptr=ptr[2]; ptr[2]=tmp; ptr+=3; } ++ else ++ { ++ ptr2=ptr; ++ for(f=0;f<width;f++,ptr+=3,ptr2+=4) ++ { ++ tmp=ptr2[3]; ++ ptr[0]=(tmp*ptr2[2])/255; ++ ptr[1]=(tmp*ptr2[1])/255; ++ ptr[2]=(tmp*ptr2[0])/255; ++ } ++ } ++ + if(howfar!=NULL) howfar(cinfo.output_scanline,height); + } + diff --git a/media-gfx/zgv/files/zgv-5.9-libpng15.patch b/media-gfx/zgv/files/zgv-5.9-libpng15.patch new file mode 100644 index 000000000000..2f12532831de --- /dev/null +++ b/media-gfx/zgv/files/zgv-5.9-libpng15.patch @@ -0,0 +1,22 @@ +http://bugs.gentoo.org/389591 + +--- src/readpng.c ++++ src/readpng.c +@@ -63,7 +63,7 @@ + use_errmsg=1; + + /* cleanup is done after jump back, so just do that now... */ +-longjmp(png_ptr->jmpbuf,1); ++longjmp(png_jmpbuf(png_ptr), 1); + } + + +@@ -132,7 +132,7 @@ + return(_PICERR_NOMEM); + } + +-if(setjmp(png_ptr->jmpbuf)) ++if(setjmp(png_jmpbuf(png_ptr))) + { + /* if we get here, there was an error. */ + /* don't use local variables here, they may have been blasted */ diff --git a/media-gfx/zgv/metadata.xml b/media-gfx/zgv/metadata.xml new file mode 100644 index 000000000000..59e2b8f78cb5 --- /dev/null +++ b/media-gfx/zgv/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> + <email>maintainer-needed@gentoo.org</email> + <name>Default assignee for orphaned packages</name> + </maintainer> +</pkgmetadata> diff --git a/media-gfx/zgv/zgv-5.9.ebuild b/media-gfx/zgv/zgv-5.9.ebuild new file mode 100644 index 000000000000..e879822d40ed --- /dev/null +++ b/media-gfx/zgv/zgv-5.9.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs + +DESCRIPTION="A svgalib console image viewer" +HOMEPAGE="http://www.svgalib.org/rus/zgv/" +SRC_URI="http://www.svgalib.org/rus/zgv/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND=">=media-libs/svgalib-1.4.2 + virtual/jpeg + media-libs/libpng + >=media-libs/tiff-3.5.5 + >=sys-libs/zlib-1.1.4 + sys-apps/gawk" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -i -e "/^CFLAGS=/s:=.*:=${CFLAGS}:" config.mk || die + sed -i -e 's:$(RM):echo:' doc/Makefile || die + + epatch \ + "${FILESDIR}"/${P}-Makefile-QA.patch \ + "${FILESDIR}"/${P}-cmyk-yccl-fix.diff \ + "${FILESDIR}"/${P}-libpng15.patch +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + dodir /usr/bin /usr/share/info /usr/share/man/man1 + + emake \ + PREFIX="${D}"/usr \ + INFODIR="${D}"/usr/share/info \ + MANDIR="${D}"/usr/share/man/man1 \ + install + + dodoc AUTHORS ChangeLog INSTALL NEWS README* SECURITY TODO + + # Fix info files + cd "${D}"/usr/share/info + rm dir* + mv zgv zgv.info + for i in 1 2 3 4 ; do + mv zgv-$i zgv.info-$i + done +} |