summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/swftools
downloadgentoo-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/swftools')
-rw-r--r--media-gfx/swftools/Manifest1
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_general.patch28
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_giflib.patch89
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_nopdf.patch40
-rw-r--r--media-gfx/swftools/metadata.xml13
-rw-r--r--media-gfx/swftools/swftools-0.9.2.ebuild46
6 files changed, 217 insertions, 0 deletions
diff --git a/media-gfx/swftools/Manifest b/media-gfx/swftools/Manifest
new file mode 100644
index 000000000000..41291ee7dc67
--- /dev/null
+++ b/media-gfx/swftools/Manifest
@@ -0,0 +1 @@
+DIST swftools-0.9.2.tar.gz 2675939 SHA256 bf6891bfc6bf535a1a99a485478f7896ebacbe3bbf545ba551298080a26f01f1 SHA512 91bbd48914f9a8a1cdf85532b371721b01982c5f88648b908fbe99fbf4e17e9893ce575e4fd699927e9bc1c79d846f6bcd4f1d868578fb17403467cc1e28259b WHIRLPOOL a0c4699db82f488e464ad2246840de616595025e0f5f35880db2972b438deb503a5a702f911dd997e85e3ccc61e90515391090b5ec7289d1370f35bf00e36bf3
diff --git a/media-gfx/swftools/files/swftools-0.9.2_general.patch b/media-gfx/swftools/files/swftools-0.9.2_general.patch
new file mode 100644
index 000000000000..f49fcb0d2f64
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_general.patch
@@ -0,0 +1,28 @@
+diff -urB swftools-0.9.2.old/src/png2swf.c swftools-0.9.2.jo/src/png2swf.c
+--- swftools-0.9.2.old/src/png2swf.c 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/src/png2swf.c 2012-04-11 23:29:08.569700175 +0200
+@@ -777,7 +777,7 @@
+ printf("-q , --quiet Omit normal log messages, only log errors\n");
+ printf("-C , --cgi For use as CGI- prepend http header, write to stdout\n");
+ printf("-V , --version Print version information and exit\n");
+- printf("-s , --scale <percent> Scale image to <percent>% size.\n");
++ printf("-s , --scale <percent> Scale image to <percent>%% size.\n");
+ printf("\n");
+ }
+
+diff -urB swftools-0.9.2.old/swfs/Makefile.in swftools-0.9.2.jo/swfs/Makefile.in
+--- swftools-0.9.2.old/swfs/Makefile.in 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/swfs/Makefile.in 2012-04-11 23:29:08.573699972 +0200
+@@ -41,10 +41,8 @@
+ $(INSTALL_DATA) ./PreLoaderTemplate.swf $(pkgdatadir)/swfs/PreLoaderTemplate.swf
+ $(INSTALL_DATA) ./tessel_loader.swf $(pkgdatadir)/swfs/tessel_loader.swf
+ $(INSTALL_DATA) ./swft_loader.swf $(pkgdatadir)/swfs/swft_loader.swf
+- rm -f $(pkgdatadir)/swfs/default_viewer.swf -o -L $(pkgdatadir)/swfs/default_viewer.swf
+- $(LN_S) $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
+- rm -f $(pkgdatadir)/swfs/default_loader.swf -o -L $(pkgdatadir)/swfs/default_loader.swf
+- $(LN_S) $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
++ cd $(pkgdatadir)/swfs; ${LN_S} simple_viewer.swf default_viewer.swf
++ cd $(pkgdatadir)/swfs; ${LN_S} tessel_loader.swf default_loader.swf
+
+ uninstall:
+ $(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
diff --git a/media-gfx/swftools/files/swftools-0.9.2_giflib.patch b/media-gfx/swftools/files/swftools-0.9.2_giflib.patch
new file mode 100644
index 000000000000..913b5e3b08d1
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_giflib.patch
@@ -0,0 +1,89 @@
+From 05c1df6a6da28734533722dc0ac99ea5b206a492 Mon Sep 17 00:00:00 2001
+From: Matthias Kramm <kramm@quiss.org>
+Date: Sat, 6 Jul 2013 12:09:53 -0700
+Subject: [PATCH] applied giflib patch from Jan Engelhardt
+
+---
+ src/gif2swf.c | 28 ++++++++++++++++++++++++----
+ 1 file changed, 24 insertions(+), 4 deletions(-)
+
+diff --git a/src/gif2swf.c b/src/gif2swf.c
+index 2359da5..5e52ea8 100644
+--- a/src/gif2swf.c
++++ b/src/gif2swf.c
+@@ -222,6 +222,7 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id, int imgidx)
+
+ GifFileType *gft;
+ FILE *fi;
++ int ret;
+
+ if ((fi = fopen(sname, "rb")) == NULL) {
+ if (VERBOSE(1))
+@@ -230,13 +231,24 @@ TAG *MovieAddFrame(SWF * swf, TAG * t, char *sname, int id, int imgidx)
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(sname)) == NULL) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ gft = DGifOpenFileName(sname, NULL);
++#else
++ gft = DGifOpenFileName(sname);
++#endif
++ if (gft == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", sname);
+ return t;
+ }
+
+- if (DGifSlurp(gft) != GIF_OK) {
++ if ((ret = DGifSlurp(gft)) != GIF_OK) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString());
++#elif defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString(ret));
++#else
+ PrintGifError();
++#endif
+ return t;
+ }
+
+@@ -465,6 +475,7 @@ int CheckInputFile(char *fname, char **realname)
+ FILE *fi;
+ char *s = malloc(strlen(fname) + 5);
+ GifFileType *gft;
++ int ret;
+
+ if (!s)
+ exit(2);
+@@ -488,7 +499,12 @@ int CheckInputFile(char *fname, char **realname)
+ }
+ fclose(fi);
+
+- if ((gft = DGifOpenFileName(s)) == NULL) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ gft = DGifOpenFileName(s, NULL);
++#else
++ gft = DGifOpenFileName(s);
++#endif
++ if (gft == NULL) {
+ fprintf(stderr, "%s is not a GIF file!\n", fname);
+ return -1;
+ }
+@@ -498,8 +514,14 @@ int CheckInputFile(char *fname, char **realname)
+ if (global.max_image_height < gft->SHeight)
+ global.max_image_height = gft->SHeight;
+
+- if (DGifSlurp(gft) != GIF_OK) {
++ if ((ret = DGifSlurp(gft)) != GIF_OK) {
++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR == 4 && GIFLIB_MINOR >= 2
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString());
++#elif defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5
++ fprintf(stderr, "GIF-LIB: %s\n", GifErrorString(ret));
++#else
+ PrintGifError();
++#endif
+ return -1;
+ }
+ // After DGifSlurp() call, gft->ImageCount become available
+--
+1.8.4
+
diff --git a/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch b/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch
new file mode 100644
index 000000000000..9dc6c2ac2560
--- /dev/null
+++ b/media-gfx/swftools/files/swftools-0.9.2_nopdf.patch
@@ -0,0 +1,40 @@
+diff -urB swftools-0.9.2.old/lib/Makefile.in swftools-0.9.2.jo/lib/Makefile.in
+--- swftools-0.9.2.old/lib/Makefile.in 2011-10-07 05:35:18.000000000 +0200
++++ swftools-0.9.2.jo/lib/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -3,7 +3,8 @@
+ top_srcdir = @top_srcdir@
+ include ../Makefile.common
+
+-all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
++#all: librfxswf$(A) libgfxpdf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
++all: librfxswf$(A) libbase$(A) libgfx$(A) libgfxswf$(A) libocr$(A)
+
+ lame_objects = lame/psymodel.$(O) lame/fft.$(O) lame/newmdct.$(O) lame/quantize.$(O) lame/takehiro.$(O) lame/reservoir.$(O) lame/quantize_pvt.$(O) lame/vbrquantize.$(O) lame/encoder.$(O) lame/id3tag.$(O) lame/version.$(O) lame/tables.$(O) lame/util.$(O) lame/bitstream.$(O) lame/set_get.$(O) lame/VbrTag.$(O) lame/lame.$(O)
+ lame_in_source = @lame_in_source@
+diff -urB swftools-0.9.2.old/Makefile.in swftools-0.9.2.jo/Makefile.in
+--- swftools-0.9.2.old/Makefile.in 2012-04-08 19:25:26.000000000 +0200
++++ swftools-0.9.2.jo/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -8,8 +8,8 @@
+ cd m4;$(MAKE) $@
+ @echo making $@ in lib...
+ cd lib;$(MAKE) $@
+- @echo making $@ in lib/pdf...
+- cd lib/pdf;$(MAKE) $@
++# @echo making $@ in lib/pdf...
++# cd lib/pdf;$(MAKE) $@
+ @echo making $@ in lib...
+ cd lib;$(MAKE) $@
+ @echo making $@ in lib/python...
+diff -urB swftools-0.9.2.old/src/Makefile.in swftools-0.9.2.jo/src/Makefile.in
+--- swftools-0.9.2.old/src/Makefile.in 2011-10-07 05:20:17.000000000 +0200
++++ swftools-0.9.2.jo/src/Makefile.in 2012-04-11 23:33:53.299308801 +0200
+@@ -3,7 +3,8 @@
+ top_srcdir = @top_srcdir@
+ include ../Makefile.common
+
+-install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
++#install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2SWF@ @PDF2PDF@
++install_programs = wav2swf$(E) @PNG2SWF@ swfcombine$(E) swfstrings$(E) swfextract$(E) swfdump$(E) swfc$(E) @JPEG2SWF@ @GIF2SWF@ swfbbox$(E) font2swf$(E) swfrender$(E) as3compile$(E) @PDF2PDF@
+ programs = $(install_programs) swfbytes$(E) ttftool$(E)
+
+ all: $(programs)
diff --git a/media-gfx/swftools/metadata.xml b/media-gfx/swftools/metadata.xml
new file mode 100644
index 000000000000..58236c941bbb
--- /dev/null
+++ b/media-gfx/swftools/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>dblaci@dblaci.hu</email>
+ <description>Please assign bugs</description>
+</maintainer>
+<maintainer>
+ <email>pacho@gentoo.org</email>
+ <description>proxy-maintainer, please CC on bugs</description>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/swftools/swftools-0.9.2.ebuild b/media-gfx/swftools/swftools-0.9.2.ebuild
new file mode 100644
index 000000000000..8f0cd433c7d0
--- /dev/null
+++ b/media-gfx/swftools/swftools-0.9.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="SWF Tools is a collection of SWF manipulation and generation utilities"
+HOMEPAGE="http://www.swftools.org/"
+SRC_URI="http://www.swftools.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+ app-text/poppler
+ >=media-libs/t1lib-1.3.1
+ media-libs/freetype
+ virtual/jpeg
+"
+DEPEND="${RDEPEND}
+ !<media-libs/ming-0.4.0_rc2
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}_nopdf.patch
+ epatch "${FILESDIR}"/${P}_general.patch
+ epatch "${FILESDIR}"/${P}_giflib.patch
+}
+
+src_configure() {
+ econf --enable-poppler
+ # disable the python interface; there's no configure switch; bug 118242
+ echo "all install uninstall clean:" > lib/python/Makefile
+}
+
+src_compile() {
+ emake FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ einstall
+ dodoc AUTHORS ChangeLog
+}