================================ foomatic-db-engine:source=3.0.20060720-1 cvc rdiff foomatic-db-engine -1 /weasel.rpath.org@wgl:3-devel/3.0.20060720-1 ================================ 3.0.20060720-1 Filip Brcic (brcha@xxxxxxxxxxxx) Mon Jun 21 11:57:45 2010 foomatic-db-engine 3.0.20060720 foomatic-db-engine.recipe: new --- /dev/null +++ foomatic-db-engine.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 FoomaticDbEngine(AutoPackageRecipe): + name = 'foomatic-db-engine' + version = '3.0.20060720' + + buildRequires = [ + 'libxml2:devel', 'cups:devel', 'curl:runtime', + 'perl:devellib', 'wget:runtime', + ] + runtimeRequires = [ + 'libxml2:runtime', 'foomatic-filters:runtime', + ] + buildRequires.extend(runtimeRequires) + + shortDesc = 'Generates ppds out of xml foomatic printer description files' + url = 'http://www.linuxprinting.org/foomatic.html' + licenses = [ 'GPL-2' ] + categories = [ 'Network/Printing' ] + + def unpack(r): + sv = r.version.split('.') + r.macros.archive_version = '-'.join([ '.'.join(sv[0:2]), sv[2] ]) + r.addArchive(('http://gentooexperimental.org/~genstef/dist/', + 'http://www.linuxprinting.org/download/foomatic/')) + + r.addPatch('perl-module-3.0.1.diff') + + r.Replace('@LIB_CUPS@', '$(cups-config --serverbin)', + 'Makefile.in') + + def make(r): + r.Make() + + r.Run('perl Makefile.PL' + ' PREFIX=%(prefix)s' + ' INSTALLDIRS=vendor' + ' INSTALLMAN3DIR=\'none\'' + ' DESTDIR="%(destdir)s"' + ' <<< ""' + , dir='lib') + r.Make('OTHERLDFLAGS="%(ldflags)s"', + dir='lib') + + def makeinstall(r): + r.MakeInstall() + + r.MakeInstall(dir='lib') + # Clean perl .3pm manpages + r.Run('find %(destdir)s/%(mandir)s -type f -name "*.3pm" -delete') + r.Run('find %(destdir)s/%(libdir)s/perl5 -type f -name .packlist -delete') + r.Run('find %(destdir)s/%(libdir)s/perl5 -type f -a \( -name "*.bs" -a -empty \) -delete') perl-module-3.0.1.diff: new --- /dev/null +++ perl-module-3.0.1.diff @@ -0,0 +30 @@ +diff -urN Makefile.in.1 Makefile.in +--- Makefile.in.1 2002-07-19 16:18:47.000000000 -0500 ++++ Makefile.in 2002-10-17 13:58:09.000000000 -0500 +@@ -182,10 +182,10 @@ + install-bin: check-config lib/Makefile + # This is the only way to get the Perl-generated Makefile using + # $(DESTDIR) properly +- ( cd lib && \ +- $(MAKE) PREFIX=$(PERLPREFIX) && \ +- $(MAKE) PREFIX=$(PERLPREFIX) pure_install \ +- ) ++# ( cd lib && \ ++# $(MAKE) PREFIX=$(PERLPREFIX) && \ ++# $(MAKE) PREFIX=$(PERLPREFIX) pure_install \ ++# ) + ${SRC}/mkinstalldirs $(DESTDIR)$(BINDIR) + ${SRC}/mkinstalldirs $(DESTDIR)$(SBINDIR) + ${SRC}/mkinstalldirs $(DESTDIR)$(ETCDIR) +diff -Naur Makefile.in.1 Makefile.in +--- Makefile.in.1 2003-07-11 16:00:57.000000000 +0200 ++++ Makefile.in 2003-07-11 16:01:02.000000000 +0200 +@@ -40,7 +40,7 @@ + FOOMATIC_RIP=@FOOMATIC_RIP@ + + # foomatic-rip path for a "make inplace" installation +-LOCAL_FOOMATIC_RIP=@LOCAL_FOOMATIC_RIP@ ++LOCAL_FOOMATIC_RIP=@FOOMATIC_RIP@ + + # Locations for installing the components of this package + BINDIR=$(bindir) foomatic-db-engine-3.0-20060720.tar.gz: new Committed by: brcha