lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6233] Retrieve wx archives from github by sha1sum


From: Greg Chicares
Subject: [lmi-commits] [6233] Retrieve wx archives from github by sha1sum
Date: Thu, 06 Aug 2015 15:29:21 +0000

Revision: 6233
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6233
Author:   chicares
Date:     2015-08-06 15:29:21 +0000 (Thu, 06 Aug 2015)
Log Message:
-----------
Retrieve wx archives from github by sha1sum

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/install_wx.make

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-08-06 14:43:45 UTC (rev 6232)
+++ lmi/trunk/ChangeLog 2015-08-06 15:29:21 UTC (rev 6233)
@@ -36495,3 +36495,9 @@
 Remove unused or needless wget flags. See the thread centered here:
   http://lists.nongnu.org/archive/html/lmi/2015-08/msg00010.html
 
+20150806T1529Z <address@hidden> [508]
+
+  install_wx.make
+Retrieve wx archives from github by sha1sum. See:
+  http://lists.nongnu.org/archive/html/lmi/2015-07/msg00019.html
+

Modified: lmi/trunk/install_wx.make
===================================================================
--- lmi/trunk/install_wx.make   2015-08-06 14:43:45 UTC (rev 6232)
+++ lmi/trunk/install_wx.make   2015-08-06 15:29:21 UTC (rev 6233)
@@ -55,6 +55,26 @@
 
 $(wx_archive)-url := ftp://ftp.wxwidgets.org/pub/$(wx_version)/$(wx_archive)
 
+# Enable this conditional section to use a github archive as of a
+# particular commit by specifying its sha1sum.
+
+use_git := Y
+
+ifneq ($(use_git), N)
+
+  wx_commit_sha     := b6ab81584f49a1997e6d6236fcb65d1b5c58a5bd
+  wx_md5            := 13fd2b383bc0ff8cba9cc76f0e6d3877
+
+  wx_version        := $(wx_commit_sha)
+
+  wx_archive        := wxWidgets-$(wx_commit_sha).zip
+
+  $(wx_archive)-md5 := $(wx_md5)
+
+  $(wx_archive)-url := 
https://github.com/wxWidgets/wxWidgets/archive/$(wx_commit_sha).zip
+
+endif
+
 # Variables that normally should be left alone 
#################################
 
 mingw_bin_dir := $(mingw_dir)/bin
@@ -119,6 +139,7 @@
 PATCH  := patch
 RM     := rm
 TAR    := tar
+UNZIP  := unzip
 WGET   := wget
 
 # Targets 
######################################################################
@@ -154,6 +175,19 @@
        cd $(cache_dir) && $(ECHO) "$(address@hidden) *$@" | $(MD5SUM) --check
        -$(TAR) --extract $(TARFLAGS) --directory=$(wx_dir) 
--file=$(cache_dir)/$@
 
+# This archive is dynamically created by github, as of a commit
+# specified by the sha1sum embedded in the URL; '--output-document'
+# is used to add 'wxWidgets-' to its name. Not being a static file,
+# it doesn't bear a historical timestamp corresponding to the commit
+# date. See:
+#   http://lists.nongnu.org/archive/html/lmi/2015-08/msg00012.html
+
+.PHONY: %.zip
+%.zip:
+       cd $(cache_dir) && [ -e $@ ] || $(WGET) $(WGETFLAGS) 
--output-document=$@ $(address@hidden)
+       cd $(cache_dir) && $(ECHO) "$(address@hidden) *$@" | $(MD5SUM) --check
+       -$(UNZIP) $(cache_dir)/$@ -d $(wx_dir)
+
 .PHONY: wx
 wx:
        ../configure $(config_options) && $(MAKE) && $(MAKE) install




reply via email to

[Prev in Thread] Current Thread [Next in Thread]