Update lfs currency scripts for new packages

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11307 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2017-09-24 18:00:25 +00:00
parent 81ed05f85e
commit 7886729e98

View File

@ -118,8 +118,10 @@ if ( $package == "file" ) $dirpath = "https://github.com/file/file/release
if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases";
if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" ); if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" );
if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk"; if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk";
if ( $package == "meson" ) $dirpath = "https://github.com/mesonbuild/meson/releases";
if ( $package == "mpc" ) $dirpath = "http://www.multiprecision.org/index.php?prog=mpc&page=download"; if ( $package == "mpc" ) $dirpath = "http://www.multiprecision.org/index.php?prog=mpc&page=download";
if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current"; if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current";
if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases";
if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files"; if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files";
if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files"; if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files";
if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases"; if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases";
@ -250,6 +252,9 @@ if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix";
return $max; return $max;
} }
if ( $package == "ninja" )
return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]*\d).*$/" );
if ( $package == "gmp" ) if ( $package == "gmp" )
return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" ); return find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d[a-z]?).tar.*$/" );
@ -319,10 +324,8 @@ function get_current()
$pattern = "/\D*(\d.*[a-z]*)\.tar\D*/"; $pattern = "/\D*(\d.*[a-z]*)\.tar\D*/";
} }
else if ( preg_match( "/eudev.*manpages/", $file ) ) else if ( preg_match( "/eudev.*manpages/", $file ) ) continue;
{ else if ( preg_match( "/python/" , $file ) ) continue;
continue;
}
$version = preg_replace( $pattern, "$1", $file ); // Isolate version $version = preg_replace( $pattern, "$1", $file ); // Isolate version
$version = preg_replace( "/^\d-/", "", $version ); // Remove leading #- $version = preg_replace( "/^\d-/", "", $version ); // Remove leading #-