Mercurial > mxe-octave
changeset 4580:5875a3c3404c
update additional PKG_UPDATE rules
* src/blas.mk (PKG_UPDATE): add actual check for blas version
* src/gnuplot.mk (PKG_UPDATE): implement working macro
* src/libarchive.mk, src/librsvg.mk: update PKG_UPDATE macro
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 17 Dec 2017 17:09:44 -0500 |
parents | 5e3fb4c40644 |
children | 47d998c794e6 |
files | src/blas.mk src/gnuplot.mk src/libarchive.mk src/librsvg.mk |
diffstat | 4 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/blas.mk Thu Dec 07 15:10:57 2017 -0500 +++ b/src/blas.mk Sun Dec 17 17:09:44 2017 -0500 @@ -16,7 +16,9 @@ endif define $(PKG)_UPDATE - echo 1 + $(WGET) -q -O- ftp://ftp.eq.uc.pt/pub/software/math/netlib/blas/ | \ + $(SED) -n 's|.*>blas-\([0-9\.]*\).tgz<.*|\1|p' | \ + tail -1 endef define $(PKG)_BUILD
--- a/src/gnuplot.mk Thu Dec 07 15:10:57 2017 -0500 +++ b/src/gnuplot.mk Sun Dec 17 17:09:44 2017 -0500 @@ -28,8 +28,9 @@ endif define $(PKG)_UPDATE - echo 'Warning: Updates are temporarily disabled for package gnuplot.' >&2; - echo $(gnuplot_VERSION) + $(WGET) -q -O- 'http://sourceforge.net/projects/gnuplot/files/gnuplot/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ + head -1 endef ifeq ($(MXE_SYSTEM),mingw)
--- a/src/libarchive.mk Thu Dec 07 15:10:57 2017 -0500 +++ b/src/libarchive.mk Sun Dec 17 17:09:44 2017 -0500 @@ -14,7 +14,7 @@ $(WGET) -q -O- 'https://www.libarchive.org/downloads/' | \ $(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \ $(SORT) -V | \ - head -1 + tail -1 endef define $(PKG)_BUILD
--- a/src/librsvg.mk Thu Dec 07 15:10:57 2017 -0500 +++ b/src/librsvg.mk Sun Dec 17 17:09:44 2017 -0500 @@ -11,9 +11,9 @@ $(PKG)_DEPS := glib libgsf cairo pango gtk2 libcroco define $(PKG)_UPDATE - $(WGET) -q -O- 'http://git.gnome.org/browse/librsvg/refs/tags' | \ - $(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\).*,\1,p' | \ - head -1 + $(WGET) -q -O- 'https://github.com/GNOME/librsvg/tags' | \ + $(SED) -n 's|.*releases/tag/\([^"]*\).*|\1|p' | $(SORT) -V | \ + tail -1 endef define $(PKG)_BUILD