================================ pstoedit:source=3.50-1 cvc rdiff pstoedit -1 /weasel.rpath.org@wgl:3-devel/3.50-1 ================================ 3.50-1 Filip Brcic (brcha@xxxxxxxxxxxx) Thu Jun 10 20:21:16 2010 pstoedit 3.50 pstoedit-3.50.tar.gz: new pstoedit-3.50-parallel.patch: new --- /dev/null +++ pstoedit-3.50-parallel.patch @@ -0,0 +47 @@ +diff --git a/src/Makefile.am b/src/Makefile.am +index d6178df..66f377b 100755 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -86,6 +86,7 @@ libp2edrvstd_la_SOURCES= \ + $(sample_drivers_src) + libp2edrvstd_la_LIBADD=-L. libpstoedit.la + libp2edrvstd_la_LDFLAGS=-no-undefined -module ++libp2edrvstd_la_DEPENDENCIES = libpstoedit.la + + #libp2edrvplugins_la_SOURCES=drvmif.cpp drvcgm.cpp drvrtf.cpp drvwwmf.cpp + #libp2edrvplugins_la_LIBADD= +@@ -95,15 +96,18 @@ libp2edrvstd_la_LDFLAGS=-no-undefined -module + libp2edrvlplot_la_SOURCES=drvlplot.cpp drvlplot.h initlibrary.cpp + libp2edrvlplot_la_LIBADD=$(LIBPLOTTER_LDFLAGS) -L. libpstoedit.la + libp2edrvlplot_la_LDFLAGS=-no-undefined -module ++libp2edrvlplot_la_DEPENDENCIES = libpstoedit.la + + libp2edrvswf_la_SOURCES=drvswf.cpp drvswf.h initlibrary.cpp + libp2edrvswf_la_LIBADD=$(LIBMING_LDFLAGS) -L. libpstoedit.la + libp2edrvswf_la_LDFLAGS=-no-undefined -module ++libp2edrvswf_la_DEPENDENCIES = libpstoedit.la + + # note the __ stand for ++ - automake treats all no alphanums chars as _ + libp2edrvmagick___la_SOURCES=drvmagick++.cpp drvmagick++.h initlibrary.cpp + libp2edrvmagick___la_LIBADD=-L. libpstoedit.la + libp2edrvmagick___la_LDFLAGS=-no-undefined ${LIBMAGICK_LDFLAGS} -module ++libp2edrvmagick___la_DEPENDENCIES = libpstoedit.la + # moved to configure.ac because needed only for g++ libp2edrvmagick___la_CPPFLAGS=$(LIBMAGICK_CFLAGS) $(AM_CPPFLAGS) -Wno-long-long + + if USE_EMFBYSOURCE +@@ -113,6 +117,7 @@ else + libp2edrvwmf_la_SOURCES=drvwmf.cpp drvwmf.h initlibrary.cpp + libp2edrvwmf_la_LDFLAGS=-no-undefined $(LIBEMF_LDFLAGS) -L. libpstoedit.la -module + endif ++libp2edrvwmf_la_DEPENDENCIES = libpstoedit.la + + libpstoedit_la_SOURCES = \ + dynload.cpp dynload.h \ +@@ -135,6 +140,7 @@ libpstoedit_la_LDFLAGS = -no-undefined + + pstoedit_SOURCES = cmdmain.cpp + pstoedit_LDFLAGS = -no-undefined -L. libpstoedit.la ${LIBLD_LDFLAGS} ++pstoedit_DEPENDENCIES = libpstoedit.la + + pkginclude_HEADERS = \ + pstoedit.h \ pstoedit-3.50-plugin-close.patch: new --- /dev/null +++ pstoedit-3.50-plugin-close.patch @@ -0,0 +14 @@ +http://bugzilla.redhat.com/507035 + +diff --git a/src/dynload.cpp b/src/dynload.cpp +index c0db355..7c073ef 100644 +--- a/src/dynload.cpp ++++ b/src/dynload.cpp +@@ -147,7 +147,6 @@ void DynLoader::close() + + DynLoader::~DynLoader() + { +- close(); + libname=0; + } + pstoedit.recipe: new --- /dev/null +++ pstoedit.recipe @@ -0,0 +55 @@ +# +# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)] +# Distributed under the terms of the GNU General Public License v3 +# + +class Pstoedit(AutoPackageRecipe): + name = 'pstoedit' + version = '3.50' + + buildRequires = [ + 'libpng:devel', 'gd:devel', 'libemf:devel', 'plotutils:devel', + 'pkg-config:devel', 'autoconf-wrapper:runtime', + 'autoconf25:runtime', 'automake-wrapper:runtime', + 'automake19:runtime', 'libstdc++:devel', 'libtool:runtime', + 'libtool:devel', 'perl:devellib', 'm4:runtime', + 'gcc-c++:runtime', + ] + + runtimeRequires = [ + 'ghostscript:runtime', 'plotutils:runtime', + ] + buildRequires.extend(runtimeRequires) + + shortDesc = 'Translate PostScript and PDF graphics into other vector formats' + url = 'http://www.pstoedit.net/pstoedit' + licenses = [ 'GPL-2' ] + categories = [ 'Media/Graphics' ] + + def unpack(r): + r.addArchive('mirror://sourceforge/%(name)s/') + + r.Replace(('-pedantic ', ''), + ('CXXFLAGS="-g"', ''), + 'configure.ac') + + r.addPatch('pstoedit-3.50-parallel.patch') + r.addPatch('pstoedit-3.50-plugin-close.patch') + + r.Autoreconf() + + def configure(r): + r.Configure( + ' --with-emf' + ' --without-magick' # TODO: reenable with imagemagick + ' --with-libplot' + ' --without-swf' + ) + + def policy(r): + r.Doc('doc/readme.txt') + r.Doc('doc/*.htm', dir='html') + r.Install('doc/pstoedit.1', '%(mandir)s/man1/') + + for req in r.runtimeRequires: + r.Requires(req, '%(bindir)s/') Committed by: brcha