diff options
Diffstat (limited to 'packages/d/python-modules/setuptools/Makefile')
-rw-r--r-- | packages/d/python-modules/setuptools/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/packages/d/python-modules/setuptools/Makefile b/packages/d/python-modules/setuptools/Makefile new file mode 100644 index 0000000..321427f --- /dev/null +++ b/packages/d/python-modules/setuptools/Makefile @@ -0,0 +1,67 @@ +# +# Project Home: +# ============ +# https://pypi.python.org/pypi/setuptools +# +# Downloads: +# ========= +# https://github.com/pypa/setuptools/releases +# +# GitHub: +# ========= +# https://github.com/pypa/setuptools.git +# + +url = https://github.com/pypa + +repo_name = setuptools + +versions = 20.10.1 38.2.4 41.2.0 41.6.0 44.0.0 +versions += 51.1.0 58.1.0 59.2.0 +versions += 65.5.0 + +suffix = tar.gz + +TAGS = $(versions) + +git_repo = .git_clone +tarballs = $(addsuffix .$(suffix), $(addprefix $(repo_name)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + +TARGETS = repository_clean + +all: $(TARGETS) + +.PHONY: downloads_clean repository_clean + +$(git_repo): + @echo -e "\n======= Clone $(repo_name).git repository =======\n" + @rm -rf $(repo_name) + @git clone $(url)/$(repo_name).git $(repo_name) + @touch $@ + + +$(tarballs): $(git_repo) + @for version in $(TAGS) ; do \ + tag=`echo $$version`; \ + if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \ + echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \ + ( cd $(repo_name) && \ + git archive --format=tar --prefix=$(repo_name)-$$version/ v$$tag | \ + gzip >../$(repo_name)-$$version.$(suffix) ) ; \ + fi ; \ + done + +$(sha1s): %.$(suffix).sha1sum : %.$(suffix) + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +repository_clean: $(sha1s) + @echo -e "\n======= Remove cloned $(repo_name).git repository =======\n" + @rm -rf $(git_repo) $(repo_name) + +downloads_clean: + @rm -rf $(tarballs) $(sha1s) + @rm -rf $(git_repo) $(repo_name) |