summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2012-04-15 10:49:42 +0000
committerPacho Ramos <pacho@gentoo.org>2012-04-15 10:49:42 +0000
commitf7dfba150bbb20af28acc834a3424bec3e8f7d1a (patch)
tree021942877f91c2a0b9b7cedfdf6f4cc02faa9f1b /media-gfx/swftools
parentFix libsoup dependency (bug #411961, thanks to Balint SZENTE). (diff)
downloadgentoo-2-f7dfba150bbb20af28acc834a3424bec3e8f7d1a.tar.gz
gentoo-2-f7dfba150bbb20af28acc834a3424bec3e8f7d1a.tar.bz2
gentoo-2-f7dfba150bbb20af28acc834a3424bec3e8f7d1a.zip
Reintroduce media-gfx/swftools as people demanded it, upstream released a new version and now is proxy maintained. Thanks a lot to László Szalma (bug #411265).
(Portage version: 2.1.10.56/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/swftools')
-rw-r--r--media-gfx/swftools/ChangeLog13
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_general.patch28
-rw-r--r--media-gfx/swftools/files/swftools-0.9.2_nopdf.patch40
-rw-r--r--media-gfx/swftools/metadata.xml12
-rw-r--r--media-gfx/swftools/swftools-0.9.2.ebuild44
5 files changed, 137 insertions, 0 deletions
diff --git a/media-gfx/swftools/ChangeLog b/media-gfx/swftools/ChangeLog
new file mode 100644
index 000000000000..d094ddb0be80
--- /dev/null
+++ b/media-gfx/swftools/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for media-gfx/swftools
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/swftools/ChangeLog,v 1.40 2012/04/15 10:49:42 pacho Exp $
+
+*swftools-0.9.2 (15 Apr 2012)
+
+ 15 Apr 2012; Pacho Ramos <pacho@gentoo.org>
+ +files/swftools-0.9.2_general.patch, +files/swftools-0.9.2_nopdf.patch,
+ +metadata.xml, +swftools-0.9.2.ebuild:
+ Reintroduce media-gfx/swftools as people demanded it, upstream released a new
+ version and now is proxy maintained. Thanks a lot to László Szalma (bug
+ #411265).
+
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..a77d563cb6de
--- /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
++ $(LN_S) -r $(pkgdatadir)/swfs/simple_viewer.swf $(pkgdatadir)/swfs/default_viewer.swf
++ $(LN_S) -r $(pkgdatadir)/swfs/tessel_loader.swf $(pkgdatadir)/swfs/default_loader.swf
+
+ uninstall:
+ $(UNINSTALL_DATA) $(pkgdatadir)/swfs/simple_viewer.swf
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..9e2a81725056
--- /dev/null
+++ b/media-gfx/swftools/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<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..ef1a6ba3925c
--- /dev/null
+++ b/media-gfx/swftools/swftools-0.9.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/swftools/swftools-0.9.2.ebuild,v 1.1 2012/04/15 10:49:42 pacho Exp $
+
+EAPI=4
+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=">=media-libs/t1lib-1.3.1
+ app-text/poppler
+ media-libs/freetype
+ virtual/jpeg"
+DEPEND="${RDEPEND}
+ >=sys-apps/coreutils-8.16
+ !<media-libs/ming-0.4.0_rc2"
+
+src_prepare() {
+ epatch "${FILESDIR}"/swftools-0.9.2_nopdf.patch
+ epatch "${FILESDIR}"/swftools-0.9.2_general.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 INCLUDES="-I/usr/include/poppler" \
+ FLAGS="${CFLAGS}"
+}
+
+src_install() {
+ einstall
+ dodoc AUTHORS ChangeLog
+}