author: kx <kx@radix.pro> 2023-04-07 10:41:29 +0300
committer: kx <kx@radix.pro> 2023-04-07 10:41:29 +0300
commit: c704b3ba183f3417abcc1c81d4738129df0330d9
parent: 293cb571e521af88e2d5fb77490653c054d2a3b7
Commit Summary:
Diffstat:
5 files changed, 225 insertions, 0 deletions
diff --git a/packages/d/python-modules/Makefile b/packages/d/python-modules/Makefile
new file mode 100644
index 0000000..9ecf6cc
--- /dev/null
+++ b/packages/d/python-modules/Makefile
@@ -0,0 +1,27 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := m2crypto \
+ pip \
+ setuptools \
+ wheel
+
+
+all-recursive downloads_clean-recursive:
+ @set fnord $(MAKEFLAGS); amf=$$2; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ local_target="$$target"; \
+ (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean
diff --git a/packages/d/python-modules/m2crypto/Makefile b/packages/d/python-modules/m2crypto/Makefile
new file mode 100644
index 0000000..4000cf3
--- /dev/null
+++ b/packages/d/python-modules/m2crypto/Makefile
@@ -0,0 +1,65 @@
+#
+# Project Home:
+# ============
+# https://gitlab.com/m2crypto/m2crypto
+#
+# Downloads:
+# =========
+# https://pypi.org/project/M2Crypto/#files
+#
+# GitLab:
+# ======
+# https://gitlab.com/m2crypto/m2crypto.git
+#
+
+url = https://gitlab.com/m2crypto
+
+repo_name = m2crypto
+
+versions = 0.38.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/ $$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)
diff --git a/packages/d/python-modules/pip/Makefile b/packages/d/python-modules/pip/Makefile
new file mode 100644
index 0000000..5cffa26
--- /dev/null
+++ b/packages/d/python-modules/pip/Makefile
@@ -0,0 +1,67 @@
+#
+# Project Home:
+# ============
+# https://pip.pypa.io
+#
+# Downloads:
+# =========
+# https://pypi.python.org/pypi/pip
+# https://github.com/pypa/pip/releases
+#
+# GitGub:
+# =========
+# https://github.com/pypa/pip.git
+#
+
+url = https://github.com/pypa
+
+repo_name = pip
+
+versions = 7.1.2 8.1.1 9.0.1 19.2.3 19.3.1 20.1 20.3
+versions += 20.3.3 21.2.4 21.3.1 22.2.2
+
+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/ $$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)
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)
diff --git a/packages/d/python-modules/wheel/Makefile b/packages/d/python-modules/wheel/Makefile
new file mode 100644
index 0000000..8eec29a
--- /dev/null
+++ b/packages/d/python-modules/wheel/Makefile
@@ -0,0 +1,66 @@
+#
+# Project Home:
+# ============
+# https://pypi.python.org/pypi/wheel
+# https://bitbucket.org/pypa/wheel
+#
+# BitBucket.org:
+# =============
+# hg clone https://bitbucket.org/pypa/wheel
+#
+# GitGub:
+# =========
+# https://github.com/pypa/wheel.git
+#
+
+url = https://github.com/pypa
+
+repo_name = wheel
+
+versions = 0.29.0 0.30.0 0.33.6 0.34.2 0.36.2 0.37.0 0.37.1
+
+suffix = tar.xz
+
+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/ $$tag | \
+ xz >../$(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)