Skip to content

Commit

Permalink
Download Pkg from GitHub releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Oct 12, 2018
1 parent e11b0b0 commit 06dfa21
Show file tree
Hide file tree
Showing 105 changed files with 41 additions and 54,540 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/julia-*
/source-dist.tmp
/source-dist.tmp1
/stdlib/Pkg/*

*.exe
*.dll
Expand Down
5 changes: 4 additions & 1 deletion deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ ifneq ($(OS), WINNT)
DEP_LIBS += libwhich
endif

DEP_LIBS += pkg

DEP_LIBS_STAGED := $(filter-out suitesparse suitesparse-wrapper osxunwind,$(DEP_LIBS)) # unlist targets that have not been converted to use the staged-install


Expand All @@ -168,7 +170,7 @@ uninstall: $(addprefix uninstall-, $(DEP_LIBS_STAGED))
cleanall: $(addprefix clean-, $(DEP_LIBS))
distcleanall: $(addprefix distclean-, $(DEP_LIBS))
rm -rf $(build_prefix)
getall: get-llvm get-libuv get-pcre get-openlibm get-dsfmt get-openblas get-lapack get-suitesparse get-unwind get-osxunwind get-gmp get-mpfr get-patchelf get-utf8proc get-objconv get-mbedtls get-libssh2 get-curl get-libgit2 get-libwhich
getall: get-llvm get-libuv get-pcre get-openlibm get-dsfmt get-openblas get-lapack get-suitesparse get-unwind get-osxunwind get-gmp get-mpfr get-patchelf get-utf8proc get-objconv get-mbedtls get-libssh2 get-curl get-libgit2 get-libwhich get-pkg

include $(SRCDIR)/llvm.mk
include $(SRCDIR)/libuv.mk
Expand All @@ -188,3 +190,4 @@ include $(SRCDIR)/libssh2.mk
include $(SRCDIR)/curl.mk
include $(SRCDIR)/libgit2.mk
include $(SRCDIR)/libwhich.mk
include $(SRCDIR)/pkg.mk
1 change: 1 addition & 0 deletions deps/Versions.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ MPFR_VER = 4.0.1
PATCHELF_VER = 0.9
MBEDTLS_VER = 2.6.0
CURL_VER = 7.56.0
PKG_VER = 1.0.1

# Specify the version of the Mozilla CA Certificate Store to obtain.
# The versions of cacert.pem are identified by the date (YYYY-MM-DD) of their changes.
Expand Down
1 change: 1 addition & 0 deletions deps/checksums/Pkg.jl-1.0.1.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
540d51ace465a3914ec52e362a3a8716
1 change: 1 addition & 0 deletions deps/checksums/Pkg.jl-1.0.1.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21574dd10040db038c655a8a4a1eb14b28fb58b366214cdc2d83760efdcf3a7fb972f0e09a2cf0125664d9a8f60ecbe49f79680c0dec83e16b0936ac61cd7d57
33 changes: 33 additions & 0 deletions deps/pkg.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Pkg ##

$(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://github.com/JuliaLang/Pkg.jl/archive/v$(PKG_VER).tar.gz

$(SRCCACHE)/Pkg.jl-$(PKG_VER)/source-extracted: $(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz
$(JLCHECKSUM) $<
cd $(dir $<) && $(TAR) xzf $(notdir $<)
echo 1 > $@

$(BUILDDIR)/Pkg.jl-$(PKG_VER)/build-compiled: $(SRCCACHE)/Pkg.jl-$(PKG_VER)/source-extracted
cp -r $(SRCCACHE)/Pkg.jl-$(PKG_VER) $(BUILDDIR)
echo 1 > $@

define PKG_INSTALL
cp -r $1 $(JULIAHOME)/stdlib/Pkg
endef

$(eval $(call staged-install, \
pkg,Pkg.jl-$(PKG_VER), \
PKG_INSTALL,,,))

distclean-pkg:
-rm -rf $(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz $(SRCCACHE)/Pkg.jl-$(PKG_VER)
-rm -rf $(BUILDDIR)/Pkg.jl-$(PKG_VER) $(JULIAHOME)/stdlib/Pkg

clean-pkg: distclean-pkg
get-pkg: $(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz
extract-pkg: $(SRCCACHE)/Pkg.jl-$(PKG_VER)/source-extracted
configure-pkg: extract-pkg
compile-pkg: $(BUILDDIR)/Pkg.jl-$(PKG_VER)/build-compiled
fastcheck-pkg: #none
check-pkg: #none
1 change: 0 additions & 1 deletion stdlib/Pkg/.codecov.yml

This file was deleted.

5 changes: 0 additions & 5 deletions stdlib/Pkg/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions stdlib/Pkg/.travis.yml

This file was deleted.

36 changes: 0 additions & 36 deletions stdlib/Pkg/Compat.toml

This file was deleted.

47 changes: 0 additions & 47 deletions stdlib/Pkg/LICENSE.md

This file was deleted.

21 changes: 0 additions & 21 deletions stdlib/Pkg/Project.toml

This file was deleted.

17 changes: 0 additions & 17 deletions stdlib/Pkg/README.md

This file was deleted.

45 changes: 0 additions & 45 deletions stdlib/Pkg/appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion stdlib/Pkg/bin/.gitignore

This file was deleted.

Loading

0 comments on commit 06dfa21

Please sign in to comment.