Commit 7369dd877ae34547a8167964760931a0f2c3da7c
0 parents
Exists in
master
Initial commit
Showing
4 changed files
with
55 additions
and
0 deletions
Show diff stats
1 | +++ a/Makefile | ||
@@ -0,0 +1,46 @@ | @@ -0,0 +1,46 @@ | ||
1 | +NAME = colab-plugins | ||
2 | +VERSION = 1.13.0 | ||
3 | +PREFIX = /usr | ||
4 | +TARGET = $(DESTDIR)$(PREFIX)/lib/colab | ||
5 | +DISTDIR = $(NAME)-$(VERSION) | ||
6 | +TARBALL = dist/$(DISTDIR).tar.gz | ||
7 | + | ||
8 | + | ||
9 | +all: virtualenv | ||
10 | + ./build/bin/pip install --no-index --find-links=$(DISTDIR) pip==1.5.6 | ||
11 | + ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt | ||
12 | + virtualenv --relocatable ./build | ||
13 | + | ||
14 | +clean: | ||
15 | + $(RM) -r ./build | ||
16 | + | ||
17 | +SOURCES = Makefile requirements-colab-plugins.txt | ||
18 | + | ||
19 | +install: | ||
20 | + mkdir -p $$(dirname $(TARGET)) | ||
21 | + rm -rf $(TARGET) | ||
22 | + cp -r ./build $(TARGET) | ||
23 | + | ||
24 | + | ||
25 | +sdist: $(TARBALL) | ||
26 | + | ||
27 | +$(TARBALL): | ||
28 | + mkdir -p $$(dirname $(TARBALL)) | ||
29 | + $(RM) $(TARBALL) | ||
30 | + tar czf $(TARBALL) $(SOURCES) $(DISTDIR) | ||
31 | + | ||
32 | +distclean: | ||
33 | + $(RM) -r $$(dirname $(TARBALL)) src/ | ||
34 | + $(RM) -r $(DISTDIR) | ||
35 | + | ||
36 | +downloadtar: virtualenv | ||
37 | + mkdir -p $(DISTDIR) | ||
38 | + wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz -O $(DISTDIR)/pip-1.5.6.tar.gz | ||
39 | + wget https://github.com/colab/colab-noosfero-plugin/archive/v0.2.5.zip -O $(DISTDIR)/colab-noosfero-plugin-0.2.5.zip | ||
40 | + wget https://github.com/colab/colab-gitlab-plugin/archive/v0.2.5.zip -O $(DISTDIR)/colab-gitlab-plugin-0.2.5.zip | ||
41 | + wget https://github.com/colab/colab-mezuro-plugin/archive/v0.1.2.zip -O $(DISTDIR)/colab-mezuro-plugin-0.1.2.zip | ||
42 | + | ||
43 | +.PHONY: virtualenv | ||
44 | +virtualenv: | ||
45 | + rm -rf ./build | ||
46 | + virtualenv ./build |