Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

423 Commits   0 Branches   0 Tags
c704b3ba (kx 2023-04-07 10:41:29 +0300  1) #
c704b3ba (kx 2023-04-07 10:41:29 +0300  2) # Project Home:
c704b3ba (kx 2023-04-07 10:41:29 +0300  3) # ============
c704b3ba (kx 2023-04-07 10:41:29 +0300  4) # https://pip.pypa.io
c704b3ba (kx 2023-04-07 10:41:29 +0300  5) #
c704b3ba (kx 2023-04-07 10:41:29 +0300  6) # Downloads:
c704b3ba (kx 2023-04-07 10:41:29 +0300  7) # =========
c704b3ba (kx 2023-04-07 10:41:29 +0300  8) # https://pypi.python.org/pypi/pip
c704b3ba (kx 2023-04-07 10:41:29 +0300  9) # https://github.com/pypa/pip/releases
c704b3ba (kx 2023-04-07 10:41:29 +0300 10) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 11) # GitGub:
c704b3ba (kx 2023-04-07 10:41:29 +0300 12) # =========
c704b3ba (kx 2023-04-07 10:41:29 +0300 13) # https://github.com/pypa/pip.git
c704b3ba (kx 2023-04-07 10:41:29 +0300 14) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 15) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 16) url         = https://github.com/pypa
c704b3ba (kx 2023-04-07 10:41:29 +0300 17) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 18) repo_name   = pip
c704b3ba (kx 2023-04-07 10:41:29 +0300 19) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 20) versions    = 7.1.2 8.1.1 9.0.1 19.2.3 19.3.1 20.1 20.3
74cbaad0 (kx 2025-02-22 11:15:08 +0300 21) versions   += 20.3.3 21.2.4 21.3.1 22.2.2 24.2 25.0.1
c704b3ba (kx 2023-04-07 10:41:29 +0300 22) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 23) suffix      = tar.gz
c704b3ba (kx 2023-04-07 10:41:29 +0300 24) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 25) TAGS        = $(versions)
c704b3ba (kx 2023-04-07 10:41:29 +0300 26) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 27) git_repo    = .git_clone
c704b3ba (kx 2023-04-07 10:41:29 +0300 28) tarballs    = $(addsuffix .$(suffix), $(addprefix $(repo_name)-, $(versions)))
c704b3ba (kx 2023-04-07 10:41:29 +0300 29) sha1s       = $(addsuffix .sha1sum, $(tarballs))
c704b3ba (kx 2023-04-07 10:41:29 +0300 30) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 31) TARGETS = repository_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 32) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 33) all: $(TARGETS)
c704b3ba (kx 2023-04-07 10:41:29 +0300 34) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 35) .PHONY: downloads_clean repository_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 36) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 37) $(git_repo):
c704b3ba (kx 2023-04-07 10:41:29 +0300 38) 	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 39) 	@rm -rf $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 40) 	@git clone $(url)/$(repo_name).git $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 41) 	@touch $@
c704b3ba (kx 2023-04-07 10:41:29 +0300 42) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 43) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 44) $(tarballs): $(git_repo)
c704b3ba (kx 2023-04-07 10:41:29 +0300 45) 	@for version in $(TAGS) ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 46) 	  tag=`echo $$version`; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 47) 	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
c704b3ba (kx 2023-04-07 10:41:29 +0300 48) 	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 49) 	    ( cd $(repo_name) && \
c704b3ba (kx 2023-04-07 10:41:29 +0300 50) 	      git archive --format=tar --prefix=$(repo_name)-$$version/ $$tag | \
c704b3ba (kx 2023-04-07 10:41:29 +0300 51) 	      gzip >../$(repo_name)-$$version.$(suffix) ) ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 52) 	  fi ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 53) 	done
c704b3ba (kx 2023-04-07 10:41:29 +0300 54) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 55) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c704b3ba (kx 2023-04-07 10:41:29 +0300 56) 	@for tarball in $< ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 57) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 58) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 59) 	done
c704b3ba (kx 2023-04-07 10:41:29 +0300 60) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 61) repository_clean: $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 62) 	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 63) 	@rm -rf $(git_repo) $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 64) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 65) downloads_clean:
c704b3ba (kx 2023-04-07 10:41:29 +0300 66) 	@rm -rf $(tarballs) $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 67) 	@rm -rf $(git_repo) $(repo_name)