on master help sign in
add pkgconf file
2a1e6bbmason clayton
Dockerfile+23−3
@@ -14,11 +14,21 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
14 expect \
14 expect \
15 nodejs
15 nodejs
16
16
17−RUN wget \
18− http://launchpadlibrarian.net/309343864/libmozjs185-dev_1.8.5-1.0.0+dfsg-7_amd64.deb && \
17+RUN wget http://launchpadlibrarian.net/309343864/libmozjs185-dev_1.8.5-1.0.0+dfsg-7_amd64.deb && \
19 wget http://launchpadlibrarian.net/309343863/libmozjs185-1.0_1.8.5-1.0.0+dfsg-7_amd64.deb && \
18 wget http://launchpadlibrarian.net/309343863/libmozjs185-1.0_1.8.5-1.0.0+dfsg-7_amd64.deb && \
20 dpkg -i libmozjs185*.deb && rm libmozjs185*.deb
19 dpkg -i libmozjs185*.deb && rm libmozjs185*.deb
21
20
21+RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.1/julia-1.1.0-linux-x86_64.tar.gz && \
22+ tar xf julia-1.1.0-linux-x86_64.tar.gz && \
23+ cd julia-1.1.0 && \
24+ cp -r bin/* /usr/bin/ && \
25+ cp -r include/* /usr/include/ && \
26+ cp -r lib/* /usr/lib/ && \
27+ cp -r share/* /usr/share/ && \
28+ cd .. && \
29+ rm -rf julia-1.1.0-linux-x86_64.tar.gz julia-1.1.0
30+
31+
22RUN mkdir -p /gocode/src/github.com/replit/prybar
32RUN mkdir -p /gocode/src/github.com/replit/prybar
23
33
24ENV GOPATH=/gocode
34ENV GOPATH=/gocode
@@ -27,7 +37,17 @@ WORKDIR /gocode/src/github.com/replit/prybar
27
37
28RUN which node
38RUN which node
29
39
30−RUN make prybar-python2 prybar-python3 prybar-ruby prybar-lua prybar-spidermonkey prybar-nodejs
40+RUN make prybar-julia
41+
42+RUN make \
43+ prybar-python2 \
44+ prybar-python3 \
45+ prybar-ruby \
46+ prybar-lua \
47+ prybar-spidermonkey \
48+ prybar-nodejs \
49+ prybar-julia
50+
31RUN make test
51RUN make test
32
52
33ENV LC_ALL=C.UTF-8
53ENV LC_ALL=C.UTF-8
Makefile+1−1
@@ -9,7 +9,7 @@ all: $(BINS)
9prybar-%: ./languages/$(*) ./utils/* ./linenoise/* ./languages/$(*)/*
9prybar-%: ./languages/$(*) ./utils/* ./linenoise/* ./languages/$(*)/*
10 ./scripts/inject.sh $(*)
10 ./scripts/inject.sh $(*)
11 go generate ./languages/$(*)/main.go
11 go generate ./languages/$(*)/main.go
12− PKG_CONFIG="pkg-config" PKG_CONFIG_PATH=./languages/julia CGO_LDFLAGS_ALLOW=".*" go build -o prybar-$(*) ./languages/$(*)
12+ PKG_CONFIG_PATH=./languages/julia go build -o prybar-$(*) ./languages/$(*)
13 rm ./languages/$(*)/generated_*.go
13 rm ./languages/$(*)/generated_*.go
14
14
15test:
15test:
languages/julia/julia.pcnew file+9
@@ -0,0 +1,9 @@
1+prefix=/usr
2+libdir=${prefix}/lib
3+includedir=${prefix}/include/julia
4+
5+Name: julia
6+Cflags: -I${includedir}
7+Version: 1.1.0
8+Description: it's julia
9+Libs: -L${libdir} -ljulia
languages/julia/main.go+1−1
@@ -3,7 +3,7 @@ package main
3// USING_CGO
3// USING_CGO
4
4
5/*
5/*
6−#cgo LDFLAGS: -ljulia
6+#cgo pkg-config: julia
7#include "pry.h"
7#include "pry.h"
8*/
8*/
9import "C"
9import "C"
languages/julia/pry.h+1−2
@@ -23,8 +23,7 @@
23#include <sys/types.h>
23#include <sys/types.h>
24#include <time.h>
24#include <time.h>
25
25
26−#include <julia/julia.h>
26+#include <julia.h>
27−#include <julia/uv.h>
28
27
29JULIA_DEFINE_FAST_TLS()
28JULIA_DEFINE_FAST_TLS()
30
29