Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv15885

Modified Files:
        html-mason-pm.info 
Log Message:
new version; fix .deb variant orthogonality using update-alternatives


Index: html-mason-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods/html-mason-pm.info,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- html-mason-pm.info  23 Aug 2009 04:23:28 -0000      1.11
+++ html-mason-pm.info  16 Jun 2010 10:01:17 -0000      1.12
@@ -1,7 +1,7 @@
 Info2: <<
 Package: html-mason-pm%type_pkg[perl]
-Version: 1.35
-Revision: 12
+Version: 1.45
+Revision: 1
 Architecture: (%type_pkg[perl] = 581) powerpc
 Distribution: (%type_pkg[perl] = 581) 10.4, (%type_pkg[perl] = 586) 10.4, 
(%type_pkg[perl] = 586) 10.5
 Description: Perl-based web site development system
@@ -11,29 +11,33 @@
 
 # Dependencies:
 Depends: <<
- perl%type_pkg[perl]-core,
- file-spec-pm%type_pkg[perl],
- params-validate-pm%type_pkg[perl] (>= 0.7-1),
- exception-class-pm%type_pkg[perl] (>= 1.14-1),
- cache-cache-pm%type_pkg[perl],
- class-container-pm%type_pkg[perl] (>= 0.07-1),
- scalar-list-utils-pm%type_pkg[perl],
- cgi-pm%type_pkg[perl] (>= 3.04-1),
- libapreq2-pm%type_pkg[perl],
- html-parser-pm%type_pkg[perl]
+       cache-cache-pm%type_pkg[perl],
+       class-container-pm%type_pkg[perl] (>= 0.07-1),
+       dpkg-base-files,
+       exception-class-pm%type_pkg[perl] (>= 1.15-1),
+       html-parser-pm%type_pkg[perl],
+       libapreq2-pm%type_pkg[perl],
+       log-any-pm,
+       params-validate-pm%type_pkg[perl] (>= 0.7-1),
+       perl%type_pkg[perl]-core
 <<
 BuildDepends: <<
- fink (>= 0.20.1-1),
- test-simple-pm%type_pkg[perl],
- module-build-pm%type_pkg[perl]
+       module-build-pm%type_pkg[perl] (>= 0.26-1),
+       test-deep-pm%type_pkg[perl]
 <<
 Suggests: libapache2-mod-perl2-perl%type_pkg[perl]
-Conflicts: %N-man
-Replaces: %N-man
+Conflicts: <<
+       %N-man,
+       %{ni}581 (<< 1.45-1), %{ni}586 (<< 1.45-1), %{ni}588 (<< 1.45-1)
+<<
+Replaces: <<
+       %N-man,
+       %{ni}581 (<< 1.45-1), %{ni}586 (<< 1.45-1), %{ni}588 (<< 1.45-1)
+<<
 
 # Unpack Phase:
 Source: mirror:cpan:authors/id/D/DR/DROLSKY/HTML-Mason-%v.tar.gz
-Source-MD5: c09f77e2af500b51d22e0238c0534994
+Source-MD5: 5ad416ae8425d81dde3daf5fab913a23
 
 # Compile Phase:
 CompileScript: <<
@@ -49,21 +53,43 @@
                --install_path libdoc=%i/lib/perl5/$perlversion/man/man3 \
                --install_path script=%i/bin
        ./Build
-       ./Build test
 <<
-NoPerlTests: true
+InfoTest: <<
+#      TestDepends: chi-pm%type_pkg[perl]
+       TestScript: ./Build test
+<<
 
 # Install Phase:
 UpdatePOD: true
-DocFiles: Changes CREDITS MANIFEST README UPGRADE
+DocFiles: Changes CREDITS README UPGRADE
 InstallScript: <<
+#!/bin/sh -ev
+
        /usr/bin/install -d %i/etc/apache2
        /usr/bin/install -m 700 -d %i/etc/apache2/mason
        ./Build install
-       find %d -name .packlist -exec rm -rf {} \;
+#      find %d -name .packlist -exec rm -rf {} \;
+
+       mkdir -p %i/share/doc/%n
+       mv %i/bin/*README %i/share/doc/%n
+       for s in mason.pl convert0.6.pl convert0.8.pl; do
+               mv %i/bin/$s %i/bin/$s-%type_raw[perl]
+       done
 <<
 PostInstScript: <<
- chown www:admin %p/etc/apache2/mason
+       chown www:admin %p/etc/apache2/mason
+
+       if [ "$1" = configure ]; then
+               update-alternatives \
+               --install %p/bin/mason.pl       mason.pl       
%p/bin/mason.pl-%type_raw[perl]       %type_pkg[perl] \
+               --slave   %p/bin/convert0.6.pl  convert0.6.pl  
%p/bin/convert0.6.pl-%type_raw[perl]  \
+               --slave   %p/bin/convert0.8.pl  convert0.8.pl  
%p/bin/convert0.8.pl-%type_raw[perl]
+       fi
+<<
+PreRmScript: <<
+       if [ "$1" = remove ]; then
+               update-alternatives --remove mason.pl 
%p/bin/mason.pl-%type_raw[perl]
+       fi
 <<
 
 # Additional Data:
@@ -99,6 +125,11 @@
  Now restart apache2 with '%p/sbin/apachectl graceful'
  
  See http://www.masonhq.com/docs/manual/Admin.html for information.
+
+ Installation note: If you have an installed html-mason-pm* package
+ prior to 1.45-1 for any perl-version, you must either remove it or
+ update it first before installing the package for any other
+ perl-version.
 <<
 Homepage: http://search.cpan.org/dist/HTML-Mason/
 <<


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to