Author: bdubbs
Date: Thu Oct  8 15:43:28 2020
New Revision: 23795

Log:
Fix currency for libsigc 2 and 3

Modified:
   trunk/scripts/blfs-chapter09.php

Modified: trunk/scripts/blfs-chapter09.php
==============================================================================
--- trunk/scripts/blfs-chapter09.php    Thu Oct  8 15:18:31 2020        (r23794)
+++ trunk/scripts/blfs-chapter09.php    Thu Oct  8 15:43:28 2020        (r23795)
@@ -16,6 +16,8 @@
 #$renames[ 'mozjs1'                ] = 'js52';
 $renames[ 'gmime1'                ] = 'gmime3';
 $renames[ 'libuninameslist-dist'  ] = 'libuninameslist';
+$renames[ 'libsigc++'             ] = 'libsigc++2';
+$renames[ 'libsigc++1'            ] = 'libsigc++3';
 
 $ignores = array();
 
@@ -260,6 +262,7 @@
          $book_index == "libgsf"    ||
          $book_index == "libIDL"    ||
          $book_index == "libsigc++" ||
+         $book_index == "libsigc++1"||
          $book_index == "libcroco"  ||
          $book_index == "ptlib"     ||
          $book_index == "gobject-introspection" )
@@ -293,6 +296,7 @@
          $book_index == "libgsf"    ||
          $book_index == "libIDL"    ||
          $book_index == "libsigc++" ||
+         $book_index == "libsigc++1"||
          $book_index == "libcroco"  ||
          $book_index == "ptlib"     ||
          $book_index == "gobject-introspection" )
@@ -303,9 +307,9 @@
       $dirpath  = substr ( $dirpath, 0, $position );
       $lines1 = http_get_file( $dirpath );
 
-      //if ( $book_index == "libsigc++" )
-      //   $dir = find_max(      $lines1, '/^\s+[\d\.]+\/.*$/', 
'/^\s+([\d\.]+)\/.*$/' );
-      //else
+      if ( $book_index == "libsigc++" )
+         $dir = find_max(      $lines1, '/^\s+[\d\.]+\/.*$/', 
'/^\s+(2.1[\d\.]+)\/.*$/' );
+      else
          $dir = find_even_max( $lines1, '/^\s+[\d\.]+\/.*$/', 
'/^\s+([\d\.]+)\/.*$/' );
 
       $dirpath .= "/$dir";
@@ -411,7 +415,10 @@
                              '/^.*libdbusmenu-qt ([\d\.]+).*$/' );
 
   if ( $book_index == "libsigc++" )
-    return find_max( $lines, '/^.*libsigc.*[\d\.]+.*$/', 
'/^.*libsigc\+\+-([\d\.]+).tar.*$/' );
+    return find_max( $lines, '/libsigc\+\+-2/', 
'/^.*libsigc\+\+-(2[\d\.]+).tar.*$/', TRUE );
+
+  if ( $book_index == "libsigc++1" )
+    return find_max( $lines, '/libsigc\+\+-3/', 
'/^.*libsigc\+\+-(3[\d\.]+).tar.*$/', TRUE );
 
   if ( $book_index == "exempi" )
     return find_max( $lines, '/version /', '/^.*version ([\d\.]+) .tar.*$/' );
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to