diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7af24cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/dist +/build +/colab-plugins-* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b51fe7b --- /dev/null +++ b/Makefile @@ -0,0 +1,46 @@ +NAME = colab-plugins +VERSION = 1.13.0 +PREFIX = /usr +TARGET = $(DESTDIR)$(PREFIX)/lib/colab +DISTDIR = $(NAME)-$(VERSION) +TARBALL = dist/$(DISTDIR).tar.gz + + +all: virtualenv + ./build/bin/pip install --no-index --find-links=$(DISTDIR) pip==1.5.6 + ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt + virtualenv --relocatable ./build + +clean: + $(RM) -r ./build + +SOURCES = Makefile requirements-colab-plugins.txt + +install: + mkdir -p $$(dirname $(TARGET)) + rm -rf $(TARGET) + cp -r ./build $(TARGET) + + +sdist: $(TARBALL) + +$(TARBALL): + mkdir -p $$(dirname $(TARBALL)) + $(RM) $(TARBALL) + tar czf $(TARBALL) $(SOURCES) $(DISTDIR) + +distclean: + $(RM) -r $$(dirname $(TARBALL)) src/ + $(RM) -r $(DISTDIR) + +downloadtar: virtualenv + mkdir -p $(DISTDIR) + wget https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz -O $(DISTDIR)/pip-1.5.6.tar.gz + wget https://github.com/colab/colab-noosfero-plugin/archive/v0.2.5.zip -O $(DISTDIR)/colab-noosfero-plugin-0.2.5.zip + wget https://github.com/colab/colab-gitlab-plugin/archive/v0.2.5.zip -O $(DISTDIR)/colab-gitlab-plugin-0.2.5.zip + wget https://github.com/colab/colab-mezuro-plugin/archive/v0.1.2.zip -O $(DISTDIR)/colab-mezuro-plugin-0.1.2.zip + +.PHONY: virtualenv +virtualenv: + rm -rf ./build + virtualenv ./build diff --git a/README.md b/README.md new file mode 100644 index 0000000..4285910 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +Dependencies: +* python-virtualenv diff --git a/requirements-colab-plugins.txt b/requirements-colab-plugins.txt new file mode 100644 index 0000000..d29d71d --- /dev/null +++ b/requirements-colab-plugins.txt @@ -0,0 +1,4 @@ +colab-noosfero-plugin==0.2.5 +colab-gitlab-plugin==0.2.5 +colab-spb-plugin==0.2.6 +colab-mezuro-plugin==0.1.2 -- libgit2 0.21.2