wok-6.x rev 9678

Fixed foomatic-db-engine. This fix is needed to compile gutenprint since it couldn't find the perl files otherwise.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed May 04 16:48:46 2011 +0000 (2011-05-04)
parents cf670157f16f
children e53f9115a516
files foomatic-db-engine/receipt
line diff
     1.1 --- a/foomatic-db-engine/receipt	Wed May 04 16:24:30 2011 +0000
     1.2 +++ b/foomatic-db-engine/receipt	Wed May 04 16:48:46 2011 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	mv $WOK/$PACKAGE/$PACKAGE* $WOK/$PACKAGE/$PACKAGE-$VERSION
     1.7 +	PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
     1.8  	cd $src
     1.9  	./configure \
    1.10  		--prefix=/usr \
    1.11 @@ -24,9 +25,9 @@
    1.12  	make &&
    1.13  	eval `perl -V:archname`
    1.14  	make DESTDIR=$PWD/_pkg \
    1.15 -		INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
    1.16 -        INSTALLSITELIB=/usr/lib/perl5/site_perl/current/ \
    1.17 -        INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} install
    1.18 +		INSTALLARCHLIB=/usr/lib/perl5/$PERL_VER/${archname} \
    1.19 +        INSTALLSITELIB=/usr/lib/perl5/site_perl/$PERL_VER/ \
    1.20 +        INSTALLSITEARCH=/usr/lib/perl5/site_perl/$PERL_VER/${archname} install
    1.21  	
    1.22  }
    1.23  
    1.24 @@ -44,15 +45,5 @@
    1.25  
    1.26  pre_install()
    1.27  {
    1.28 -	rm -f $1/usr/lib/perl5/site_perl/current
    1.29 +	rm -rf $1/usr/lib/perl5/site_perl/current
    1.30  }
    1.31 -
    1.32 -post_install()
    1.33 -{
    1.34 -	# Move file to the right place
    1.35 -	cp -a $1/usr/lib/perl5/site_perl/current/* $1/usr/lib/perl5/site_perl/*.*
    1.36 -	rm -rf $1/usr/lib/perl5/site_perl/current
    1.37 -
    1.38 -	# Keep path the remove the package
    1.39 -	( cd /usr/lib/perl5/site_perl ; ln -s * current )
    1.40 -}