changeset 926:ea4c9a5df97f

download packages gcc-gmp and gcc-mpfr from their official project sites rather than TDM (by Tony Theodore)
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 01 May 2010 18:20:40 +0200
parents b16546bc4b07
children a44903866347
files src/gcc-gmp.mk src/gcc-mpfr.mk
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/gcc-gmp.mk	Sat May 01 17:58:22 2010 +0200
+++ b/src/gcc-gmp.mk	Sat May 01 18:20:40 2010 +0200
@@ -9,11 +9,13 @@
 $(PKG)_SUBDIR   := gmp-$($(PKG)_VERSION)
 $(PKG)_FILE     := gmp-$($(PKG)_VERSION).tar.bz2
 $(PKG)_WEBSITE  := http://www.gmplib.org/
-$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/tdm-gcc/Sources/Vanilla Sources/gmp-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_URL      := ftp://ftp.gmplib.org/pub/$($(PKG)_SUBDIR)/$($(PKG)_FILE)
 $(PKG)_DEPS     :=
 
 define $(PKG)_UPDATE
-    $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/tdm-gcc/files/Sources/) | \
-    $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \
-    tail -1
+    wget -q -O- 'http://www.gmplib.org/' | \
+    grep '<a href="' | \
+    $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar\.bz2.*,\1,p' | \
+    grep -v '^4\.' | \
+    head -1
 endef
--- a/src/gcc-mpfr.mk	Sat May 01 17:58:22 2010 +0200
+++ b/src/gcc-mpfr.mk	Sat May 01 18:20:40 2010 +0200
@@ -9,11 +9,11 @@
 $(PKG)_SUBDIR   := mpfr-$($(PKG)_VERSION)
 $(PKG)_FILE     := mpfr-$($(PKG)_VERSION).tar.bz2
 $(PKG)_WEBSITE  := http://www.mpfr.org/
-$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/tdm-gcc/Sources/Vanilla Sources/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_URL      := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE)
 $(PKG)_DEPS     :=
 
 define $(PKG)_UPDATE
-    $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/tdm-gcc/files/Sources/) | \
-    $(SED) -n 's,.*mpfr-\([0-9][^>]*\)\.tar.*,\1,p' | \
-    tail -1
+    wget -q -O- 'https://gforge.inria.fr/scm/viewvc.php/tags/?root=mpfr&sortby=date' | \
+    $(SED) -n 's,.*<a name="\([0-9][^"]*\)".*,\1,p' | \
+    head -1
 endef