Package: julia / 0.4.7-6

do-not-download-rmath.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Description: Do not download Rmath
 Rmath is included in the orig tarball (see get-orig-source in debian/rules)
Author: Peter Colberg <peter@colberg.org>
Forwarded: not-needed
Last-Update: 2015-11-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/deps/Makefile
+++ b/deps/Makefile
@@ -948,7 +948,7 @@
 ## Rmath-julia ##
 
 RMATH_JULIA_OBJ_TARGET = $(build_shlibdir)/libRmath-julia.$(SHLIB_EXT)
-RMATH_JULIA_OBJ_SOURCE = Rmath-julia-$(RMATH_JULIA_VER)/src/libRmath-julia.$(SHLIB_EXT)
+RMATH_JULIA_OBJ_SOURCE = Rmath/src/libRmath-julia.$(SHLIB_EXT)
 
 ifeq ($(USE_SYSTEM_DSFMT),0)
 $(RMATH_JULIA_OBJ_SOURCE): $(DSFMT_OBJ_TARGET)
@@ -959,24 +959,18 @@
 			   USE_DSFMT=1 DSFMT_libdir="$(build_shlibdir)" \
 			   DSFMT_includedir="$(build_includedir)"
 
-Rmath-julia-$(RMATH_JULIA_VER).tar.gz:
-	$(JLDOWNLOAD) $@ https://api.github.com/repos/JuliaLang/Rmath-julia/tarball/v$(RMATH_JULIA_VER)
-$(RMATH_JULIA_OBJ_SOURCE): Rmath-julia-$(RMATH_JULIA_VER).tar.gz
-	$(JLCHECKSUM) Rmath-julia-$(RMATH_JULIA_VER).tar.gz && \
-	mkdir -p Rmath-julia-$(RMATH_JULIA_VER) && \
-	$(TAR) -C Rmath-julia-$(RMATH_JULIA_VER) --strip-components 1 -xf $< && \
-	$(MAKE) -C Rmath-julia-$(RMATH_JULIA_VER)/src $(RMATH_JULIA_FLAGS) $(MAKE_COMMON) && \
+$(RMATH_JULIA_OBJ_SOURCE):
+	$(MAKE) -C Rmath/src $(RMATH_JULIA_FLAGS) $(MAKE_COMMON) && \
 	touch -c $@
 $(RMATH_JULIA_OBJ_TARGET): $(RMATH_JULIA_OBJ_SOURCE) | $(build_shlibdir)
 	cp $< $@
 	$(INSTALL_NAME_CMD)libRmath-julia.$(SHLIB_EXT) $@
 
 clean-Rmath-julia:
-	-$(MAKE) -C Rmath-julia-$(RMATH_JULIA_VER) clean
+	-$(MAKE) -C Rmath clean
 distclean-Rmath-julia: clean-Rmath-julia
-	-rm -rf Rmath-julia-$(RMATH_JULIA_VER).tar.gz Rmath-julia-$(RMATH_JULIA_VER)
 
-get-Rmath-julia: Rmath-julia-$(RMATH_JULIA_VER).tar.gz
+get-Rmath-julia:
 configure-Rmath-julia: get-Rmath-julia
 compile-Rmath-julia: $(RMATH_JULIA_OBJ_SOURCE)
 check-Rmath-julia: compile-Rmath-julia