Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change libgit2 to a git-external #11435

Merged
merged 1 commit into from
May 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion deps/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/libcxx-*
/libcxxabi-*
/libffi-*
/libgit*
/llvm-*
/lldb-*
/mpfr-*
Expand All @@ -33,6 +32,8 @@
/Rmath-julia*

# git-externals:
/libgit2
/libgit2-*
/libuv
/libuv-*
/openblas
Expand Down
38 changes: 17 additions & 21 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,11 @@ install-virtualenv: $(VIRTUALENV_TARGET)

## libgit2

LIBGIT2_OBJ_SOURCE = libgit2-$(LIBGIT2_VER)/build/libgit2.$(SHLIB_EXT)
LIBGIT2_GIT_URL = git://github.com/libgit2/libgit2.git
LIBGIT2_TAR_URL = https://api.github.com/repos/libgit2/libgit2/tarball/$1
$(eval $(call git-external,libgit2,LIBGIT2,CMakeLists.txt,build/libgit2.$(SHLIB_EXT)))

LIBGIT2_OBJ_SOURCE = $(LIBGIT2_SRC_DIR)/build/libgit2.$(SHLIB_EXT)
LIBGIT2_OBJ_TARGET = $(build_shlibdir)/libgit2.$(SHLIB_EXT)

LIBGIT2_OPTS = $(CMAKE_COMMON) -DTHREADSAFE=ON
Expand All @@ -1883,28 +1887,22 @@ LIBGIT2_OPTS += -DCMAKE_FIND_ROOT_PATH=/usr/$(XC_HOST) -DCMAKE_FIND_ROOT_PATH_MO
endif
endif

libgit2-$(LIBGIT2_VER).tar.gz:
$(JLDOWNLOAD) $@ https://github.com/libgit2/libgit2/archive/v$(LIBGIT2_VER).tar.gz
libgit2-$(LIBGIT2_VER)/CMakeLists.txt: libgit2-$(LIBGIT2_VER).tar.gz
$(JLCHECKSUM) $<
$(TAR) zxf $<
touch -c $@
libgit2-$(LIBGIT2_VER)/build/Makefile: libgit2-$(LIBGIT2_VER)/CMakeLists.txt
mkdir -p libgit2-$(LIBGIT2_VER)/build
cd libgit2-$(LIBGIT2_VER)/build/ && \
$(LIBGIT2_SRC_DIR)/build/Makefile: $(LIBGIT2_SRC_DIR)/CMakeLists.txt
mkdir -p $(LIBGIT2_SRC_DIR)/build
cd $(LIBGIT2_SRC_DIR)/build/ && \
$(CMAKE) .. $(LIBGIT2_OPTS)
touch -c $@
$(LIBGIT2_OBJ_SOURCE): libgit2-$(LIBGIT2_VER)/build/Makefile
$(MAKE) -C libgit2-$(LIBGIT2_VER)/build
$(LIBGIT2_OBJ_SOURCE): $(LIBGIT2_SRC_DIR)/build/Makefile
$(MAKE) -C $(LIBGIT2_SRC_DIR)/build
touch -c $@
libgit2-$(LIBGIT2_VER)/build/checked: $(LIBGIT2_OBJ_SOURCE)
$(LIBGIT2_SRC_DIR)/build/checked: $(LIBGIT2_OBJ_SOURCE)
ifeq ($(OS),$(BUILD_OS))
$(MAKE) -C libgit2-$(LIBGIT2_VER)/build test
$(MAKE) -C $(LIBGIT2_SRC_DIR)/build test
endif
echo 1 > $@
$(LIBGIT2_OBJ_TARGET): $(LIBGIT2_OBJ_SOURCE) | $(build_shlibdir)
cp $< $@
#$$(call make-install,libgit2-$(LIBGIT2_VER)/build,)
#$$(call make-install,$(LIBGIT2_SRC_DIR)/build,)
ifeq ($(OS),Linux)
# If we're on linux, copy over libssl and libcrypto for libgit2
-LIBGIT_LIBS=$$(ldd "$@" | tail -n +2 | awk '{print $$(NF-1)}'); \
Expand All @@ -1917,15 +1915,13 @@ endif
touch -c $@

clean-libgit2:
-rm -rf libgit2-$(LIBGIT2_VER)/build/
-rm -rf $(LIBGIT2_SRC_DIR)/build/
-rm -f $(LIBGIT2_OBJ_TARGET)
distclean-libgit2:
-rm -rf libgit2-$(LIBGIT2_VER).tar.gz libgit2-$(LIBGIT2_VER).zip libgit2-$(LIBGIT2_VER)

get-libgit2: libgit2-$(LIBGIT2_VER).tar.gz
configure-libgit2: libgit2-$(LIBGIT2_VER)/build/Makefile
get-libgit2: $(LIBGIT2_SRC_DIR)/CMakeLists.txt
configure-libgit2: $(LIBGIT2_SRC_DIR)/build/Makefile
compile-libgit2: $(LIBGIT2_OBJ_SOURCE)
check-libgit2: libgit2-$(LIBGIT2_VER)/build/checked
check-libgit2: $(LIBGIT2_SRC_DIR)/build/checked
install-libgit2: $(LIBGIT2_OBJ_TARGET)

## phony targets ##
Expand Down
1 change: 0 additions & 1 deletion deps/Versions.make
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ MPFR_VER=3.1.2
PATCHELF_VER = 0.8
GIT_VER = 1.8.5.6
VIRTUALENV_VER = 1.11.6
LIBGIT2_VER = 0.22.2
RMATH_JULIA_VER = 0.1
1 change: 0 additions & 1 deletion deps/checksums/libgit2-0.22.2.tar.gz/md5

This file was deleted.

1 change: 0 additions & 1 deletion deps/checksums/libgit2-0.22.2.tar.gz/sha512

This file was deleted.

1 change: 1 addition & 0 deletions deps/checksums/libgit2-v0.22.2.tar.gz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
979fc01cad098af9df0d81866f58852c
1 change: 1 addition & 0 deletions deps/checksums/libgit2-v0.22.2.tar.gz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b931844871739e576f2252d7a4ba20cff3417fb8a439f527d1f0e4da13b92a5b2e3cc0741fb19d531a4c2fcf72d7650d9fc3b8a72d4245cf956bedbd4ad2db31
2 changes: 2 additions & 0 deletions deps/libgit2.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LIBGIT2_BRANCH=v0.22.2
LIBGIT2_SHA1=fb6df50b7f250a4fd8b2fab257f119a5185e9bf5