Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods
In directory 
sc8-pr-cvs17:/tmp/cvs-serv18479/10.3/unstable/main/finkinfo/libs/perlmods

Modified Files:
        template-pm.info 
Log Message:
Nuke bad tests instead of BuildConflicts on their dependencies
Reel %N-bin back into %N via update-alternatives


Index: template-pm.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs/perlmods/template-pm.info,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- template-pm.info    17 Mar 2006 19:29:08 -0000      1.14
+++ template-pm.info    18 May 2007 06:18:37 -0000      1.15
@@ -1,7 +1,7 @@
 Info2: <<
 Package: template%type_pkg[-notex]-pm%type_pkg[perl]
 Version: 2.10
-Revision: 20
+Revision: 21
 Architecture: (%type_pkg[perl] = 581) powerpc, (%type_pkg[perl] = 584) powerpc
 Description: Fast extensible template processing system
 Type: perl (5.8.0 5.8.1 5.8.4 5.8.6), -notex (boolean)
@@ -14,14 +14,23 @@
  (%type_raw[-notex] = .) tetex-base
 <<
 BuildDepends: fink (>= 0.20.1-1), perl%type_pkg[perl]-core
-BuildConflicts: text-autoformat-pm, gd-pm%type_pkg[perl]
 Conflicts: <<
   template-pm (<= 2.08-13), template-notex-pm (<= 2.08-13),
-  template-nodocs-pm, template-notexdocs-pm, template-pm-doc
+  template-nodocs-pm, template-notexdocs-pm, template-pm-doc,
+  template-notex-pm580-bin, template-pm580-bin,
+  template-notex-pm581-bin, template-pm581-bin,
+  template-notex-pm584-bin, template-pm584-bin,
+  template-notex-pm586-bin, template-pm586-bin,
+  template-notex-pm588-bin, template-pm588-bin
 <<
 Replaces: <<
   template-pm (<= 2.08-13), template-notex-pm (<= 2.08-13),
-  template-nodocs-pm, template-notexdocs-pm, template-pm-doc
+  template-nodocs-pm, template-notexdocs-pm, template-pm-doc,
+  template-notex-pm580-bin, template-pm580-bin,
+  template-notex-pm581-bin, template-pm581-bin,
+  template-notex-pm584-bin, template-pm584-bin,
+  template-notex-pm586-bin, template-pm586-bin,
+  template-notex-pm588-bin, template-pm588-bin
 <<
 Suggests: dbi-pm%type_pkg[perl], dbd-mysql-pm%type_pkg[perl], 
gd-pm%type_pkg[perl], gd-graph-pm%type_pkg[perl], gd-graph3d-pm, 
xml-dom-pm%type_pkg[perl], xml-rss-pm%type_pkg[perl], 
xml-xpath-pm%type_pkg[perl]
 
@@ -29,6 +38,11 @@
 Source: mirror:cpan:modules/by-module/Template/Template-Toolkit-%v.tar.gz
 Source-MD5: 0c344240ceca9d7746d0a23b066521f0
 
+PatchScript: <<
+  # these tests have always been disabled or fail due to missing deps that are 
quite large
+  rm t/gd*.t t/autoform.t t/latex2ps.t
+<<
+
 NoSetMAKEFLAGS: true
 SetMAKEFLAGS: -j1
 # Compile Phase:
@@ -37,31 +51,33 @@
 # Install Phase:
 UpdatePOD: true
 InstallScript: <<
+  #!/bin/sh -ev
   perl -pi -e 's#%d##' blib/lib/Template/Config.pm
   %{default_script}
   perl -pi -e 's#%d##' %i/share/%N/examples/ttree.cfg
   mkdir %i/lib/perl5/%type_raw[perl]/man
   mv %i/share/man/man3 %i/lib/perl5/%type_raw[perl]
+  for bin in tpage ttree; do
+    mv %i/bin/$bin %i/bin/$bin-%type_raw[perl]
+    mv %i/share/man/man1/$bin.1 %i/share/man/man1/$bin-%type_raw[perl].1
+  done
 <<
-DocFiles: INSTALL README HACKING Changes TODO
+DocFiles: Changes HACKING README bin/README:README.bin TODO
 
-SplitOff2: <<
-  Package: %N-bin
-  Replaces: <<
-    %N,
-    template-notex-pm580-bin, template-pm580-bin,
-    template-notex-pm581-bin, template-pm581-bin,
-    template-notex-pm584-bin, template-pm584-bin,
-    template-notex-pm586-bin, template-pm586-bin
-  <<
-  Conflicts: <<
-    template-notex-pm580-bin, template-pm580-bin,
-    template-notex-pm581-bin, template-pm581-bin,
-    template-notex-pm584-bin, template-pm584-bin,
-    template-notex-pm586-bin, template-pm586-bin
-  <<
-  Files: bin share/man
-  DocFiles: INSTALL README HACKING Changes TODO
+PostInstScript: <<
+  if [ "$1" = "configure" ]; then
+    for bin in tpage ttree; do
+      update-alternatives --install "%p/bin/$bin"              "$bin"   
"%p/bin/$bin-%type_raw[perl]"              %type_pkg[perl] \
+                          --slave   "%p/share/man/man1/$bin.1" "$bin.1" 
"%p/share/man/man1/$bin-%type_raw[perl].1"
+    done
+  fi
+<<
+PostRmScript: <<
+  if [ "$1" = "remove" ]; then
+    for bin in tpage ttree; do
+      update-alternatives --remove "$bin" "%p/bin/$bin-%type_raw[perl]"
+    done
+  fi
 <<
 
 # Additional Data:
@@ -78,9 +94,9 @@
 content.  A number of Perl scripts are also provided which can greatly
 simplify the process of creating and managing static web content and 
 other offline document systems.
-<<
-DescUsage: <<
-The "tpage" and "ttree" commands are in the %N-bin package
+
+The "tpage" and "ttree" commands, formerly in the %N-bin package, are
+back in %N as of %N-2.10-21
 <<
 DescPort: <<
 Makefile doesn't seem to understand installing some things into temp


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to