-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use git-external to install Pkg during build.
- Loading branch information
1 parent
dd8ebdc
commit 9c664fd
Showing
7 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
df1b07419d50db883998ca9bb8fc7ea1 |
1 change: 1 addition & 0 deletions
1
deps/checksums/Pkg-ed5908796128c6227dcddefa9ec06a47066b8b01.tar.gz/sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c2a1427d3d8fec20746676133b41db6a082e9b3fc7c1941a43e0398cfe8b33d1547ab58d89391a99b26816909e77258d6331894295d5c6084997da8104f9ac7b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/srccache | ||
/Pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
default: install | ||
|
||
.PHONY: default extract-pkg get-pkg clean-pkg getall install | ||
|
||
SRCDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) | ||
JULIAHOME := $(abspath $(SRCDIR)/..) | ||
SRCCACHE := $(abspath $(SRCDIR)/srccache) | ||
BUILDDIR := $(SRCCACHE) | ||
|
||
include $(JULIAHOME)/Make.inc | ||
include $(JULIAHOME)/deps/tools/common.mk | ||
include $(JULIAHOME)/deps/tools/git-external.mk | ||
|
||
VERSDIR := v`cut -d. -f1-2 < $(JULIAHOME)/VERSION` | ||
|
||
# Download and extract Pkg | ||
PKG := https://github.com/JuliaLang/Pkg.jl | ||
PKG_TAR_URL = https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/$1 | ||
$(eval $(call git-external,Pkg,PKG,,,$(BUILDDIR))) | ||
|
||
extract-pkg: $(BUILDDIR)/$(PKG_SRC_DIR)/source-extracted | ||
Pkg: $(BUILDDIR)/$(PKG_SRC_DIR)/source-extracted | ||
rm -rf $@ | ||
cp -r $(BUILDDIR)/$(PKG_SRC_DIR) $@ | ||
get-pkg: Pkg | ||
clean-pkg: | ||
-rm -rf Pkg | ||
-rm -rf $(BUILDDIR)/$(PKG_SRC_DIR) | ||
|
||
# Generate symlinks to all stdlibs from usr/share/julia/stdlib/vX.Y/ | ||
STDLIBS = Base64 CRC32c Dates DelimitedFiles Distributed FileWatching \ | ||
Future InteractiveUtils Libdl LibGit2 LinearAlgebra Logging \ | ||
Markdown Mmap Printf Profile Random REPL Serialization SHA \ | ||
SharedArrays Sockets SparseArrays Statistics SuiteSparse Test Unicode UUIDs | ||
|
||
$(foreach pkg, $(STDLIBS), $(eval $(call symlink_target,$(JULIAHOME)/stdlib/$(pkg),$(build_datarootdir)/julia/stdlib/$(shell echo $(VERSDIR)),$(pkg)))) | ||
$(eval $(call symlink_target,$(BUILDROOT)/stdlib/Pkg,$(build_datarootdir)/julia/stdlib/$(shell echo $(VERSDIR)),Pkg)) | ||
|
||
$(build_datarootdir)/julia/stdlib/$(shell echo $(VERSDIR)): | ||
mkdir -p $@ | ||
|
||
STDLIBS_LINK_TARGETS = $(addprefix $(build_datarootdir)/julia/stdlib/$(shell echo $(VERSDIR))/, $(STDLIBS) Pkg) | ||
|
||
install: Pkg $(STDLIBS_LINK_TARGETS) | ||
getall: get-pkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PKG_BRANCH = master | ||
PKG_SHA1 = ed5908796128c6227dcddefa9ec06a47066b8b01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters