Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5456/10.4/unstable/main/finkinfo/libs/perlmods
Modified Files: xml-twig-pm.info Log Message: Use update-alternatives to solve -pmXXX orthogonality for bin/ scripts Index: xml-twig-pm.info =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/perlmods/xml-twig-pm.info,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- xml-twig-pm.info 17 Feb 2006 01:39:17 -0000 1.2 +++ xml-twig-pm.info 17 Feb 2006 19:26:12 -0000 1.3 @@ -1,7 +1,7 @@ Info2: << Package: xml-twig-pm%type_pkg[perl] Version: 3.14 -Revision: 11 +Revision: 12 Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc Replaces: xml-twig-pm (<= 3.14-10), xml-twig-pm560, xml-twig-pm580, xml-twig-pm581, xml-twig-pm586 Depends: xml-parser-pm%type_pkg[perl] (>= 2.31-6), scalar-list-utils-pm%type_pkg[perl], text-iconv-pm%type_pkg[perl] (>= 1.2-3), expat-shlibs (>= 1.95.5-1) @@ -12,6 +12,28 @@ perl -pi.bak -e 's,\$_;,\$_;\n push\([EMAIL PROTECTED], \$program\);,g' Makefile.PL perl -pi.bak -e 's,prompt,print,g' Makefile.PL << +InstallScript: << +#!/bin/sh -ev + %{default_script} + mkdir -p %i/lib/perl%type_pkg[perl]/man + mv %i/share/man/man3 %i/lib/perl%type_pkg[perl]/man + for file in xml_grep xml_pp xml_spellcheck; do + mv %i/bin/$file %i/bin/$file-%type_pkg[perl] + mv %i/share/man/man1/$file.1 %i/share/man/man1/$file.1-%type_pkg[perl] + done +<< +PostInstScript: << + update-alternatives \ + --install %p/bin/xml_grep xml_grep %p/bin/xml_grep-%type_pkg[perl] %type_pkg[perl] \ + --slave %p/bin/xml_pp xml_pp %p/bin/xml_pp-%type_pkg[perl] \ + --slave %p/bin/xml_spellcheck xml_spellcheck %p/bin/xml_spellcheck-%type_pkg[perl] \ + --slave %p/share/man/man1/xml_grep.1 xml_grep.1 %p/share/man/man1/xml_grep.1-%type_pkg[perl] \ + --slave %p/share/man/man1/xml_pp.1 xml_pp.1 %p/share/man/man1/xml_pp.1-%type_pkg[perl] \ + --slave %p/share/man/man1/xml_spellcheck.1 xml_spellcheck.1 %p/share/man/man1/xml_spellcheck.1-%type_pkg[perl] +<< +PreRmScript: << + update-alternatives --remove xml_grep %p/bin/xml_grep-%type_pkg[perl] +<< Type: perl (5.8.1 5.8.6) UpdatePOD: True Source-MD5: 325bddd9f122e6aa09be238c9b08e917 @@ -24,6 +46,7 @@ DescPort: << Justin Hallett - removed make test as it faild do to a perl bug with <DATA> usage and clean up, xml-twig-pm works fine. + dmacks - fixed -pmXXX orthogonality << License: Artistic Maintainer: dithi <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits