Skip to content

Commit 06dfa21

Browse files
committed
Download Pkg from GitHub releases.
1 parent e11b0b0 commit 06dfa21

File tree

105 files changed

+41
-54540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+41
-54540
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/julia-*
1111
/source-dist.tmp
1212
/source-dist.tmp1
13+
/stdlib/Pkg/*
1314

1415
*.exe
1516
*.dll

deps/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ ifneq ($(OS), WINNT)
150150
DEP_LIBS += libwhich
151151
endif
152152

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

155157

@@ -168,7 +170,7 @@ uninstall: $(addprefix uninstall-, $(DEP_LIBS_STAGED))
168170
cleanall: $(addprefix clean-, $(DEP_LIBS))
169171
distcleanall: $(addprefix distclean-, $(DEP_LIBS))
170172
rm -rf $(build_prefix)
171-
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
173+
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
172174

173175
include $(SRCDIR)/llvm.mk
174176
include $(SRCDIR)/libuv.mk
@@ -188,3 +190,4 @@ include $(SRCDIR)/libssh2.mk
188190
include $(SRCDIR)/curl.mk
189191
include $(SRCDIR)/libgit2.mk
190192
include $(SRCDIR)/libwhich.mk
193+
include $(SRCDIR)/pkg.mk

deps/Versions.make

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ MPFR_VER = 4.0.1
1111
PATCHELF_VER = 0.9
1212
MBEDTLS_VER = 2.6.0
1313
CURL_VER = 7.56.0
14+
PKG_VER = 1.0.1
1415

1516
# Specify the version of the Mozilla CA Certificate Store to obtain.
1617
# The versions of cacert.pem are identified by the date (YYYY-MM-DD) of their changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
540d51ace465a3914ec52e362a3a8716
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
21574dd10040db038c655a8a4a1eb14b28fb58b366214cdc2d83760efdcf3a7fb972f0e09a2cf0125664d9a8f60ecbe49f79680c0dec83e16b0936ac61cd7d57

deps/pkg.mk

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Pkg ##
2+
3+
$(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz: | $(SRCCACHE)
4+
$(JLDOWNLOAD) $@ https://github.com/JuliaLang/Pkg.jl/archive/v$(PKG_VER).tar.gz
5+
6+
$(SRCCACHE)/Pkg.jl-$(PKG_VER)/source-extracted: $(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz
7+
$(JLCHECKSUM) $<
8+
cd $(dir $<) && $(TAR) xzf $(notdir $<)
9+
echo 1 > $@
10+
11+
$(BUILDDIR)/Pkg.jl-$(PKG_VER)/build-compiled: $(SRCCACHE)/Pkg.jl-$(PKG_VER)/source-extracted
12+
cp -r $(SRCCACHE)/Pkg.jl-$(PKG_VER) $(BUILDDIR)
13+
echo 1 > $@
14+
15+
define PKG_INSTALL
16+
cp -r $1 $(JULIAHOME)/stdlib/Pkg
17+
endef
18+
19+
$(eval $(call staged-install, \
20+
pkg,Pkg.jl-$(PKG_VER), \
21+
PKG_INSTALL,,,))
22+
23+
distclean-pkg:
24+
-rm -rf $(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz $(SRCCACHE)/Pkg.jl-$(PKG_VER)
25+
-rm -rf $(BUILDDIR)/Pkg.jl-$(PKG_VER) $(JULIAHOME)/stdlib/Pkg
26+
27+
clean-pkg: distclean-pkg
28+
get-pkg: $(SRCCACHE)/Pkg.jl-$(PKG_VER).tar.gz
29+
extract-pkg: $(SRCCACHE)/Pkg.jl-$(PKG_VER)/source-extracted
30+
configure-pkg: extract-pkg
31+
compile-pkg: $(BUILDDIR)/Pkg.jl-$(PKG_VER)/build-compiled
32+
fastcheck-pkg: #none
33+
check-pkg: #none

stdlib/Pkg/.codecov.yml

-1
This file was deleted.

stdlib/Pkg/.gitignore

-5
This file was deleted.

stdlib/Pkg/.travis.yml

-28
This file was deleted.

stdlib/Pkg/Compat.toml

-36
This file was deleted.

stdlib/Pkg/LICENSE.md

-47
This file was deleted.

stdlib/Pkg/Project.toml

-21
This file was deleted.

stdlib/Pkg/README.md

-17
This file was deleted.

stdlib/Pkg/appveyor.yml

-45
This file was deleted.

stdlib/Pkg/bin/.gitignore

-1
This file was deleted.

0 commit comments

Comments
 (0)