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://pypi.python.org/pypi/wheel
c704b3ba (kx 2023-04-07 10:41:29 +0300  5) # https://bitbucket.org/pypa/wheel
c704b3ba (kx 2023-04-07 10:41:29 +0300  6) #
c704b3ba (kx 2023-04-07 10:41:29 +0300  7) # BitBucket.org:
c704b3ba (kx 2023-04-07 10:41:29 +0300  8) # =============
c704b3ba (kx 2023-04-07 10:41:29 +0300  9) # hg clone https://bitbucket.org/pypa/wheel
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/wheel.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   = wheel
c704b3ba (kx 2023-04-07 10:41:29 +0300 19) 
74cbaad0 (kx 2025-02-22 11:15:08 +0300 20) versions    = 0.29.0 0.30.0 0.33.6 0.34.2 0.36.2 0.37.0 0.37.1 0.44.0 0.45.1
c704b3ba (kx 2023-04-07 10:41:29 +0300 21) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 22) suffix      = tar.xz
c704b3ba (kx 2023-04-07 10:41:29 +0300 23) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 24) TAGS        = $(versions)
c704b3ba (kx 2023-04-07 10:41:29 +0300 25) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 26) git_repo    = .git_clone
c704b3ba (kx 2023-04-07 10:41:29 +0300 27) tarballs    = $(addsuffix .$(suffix), $(addprefix $(repo_name)-, $(versions)))
c704b3ba (kx 2023-04-07 10:41:29 +0300 28) sha1s       = $(addsuffix .sha1sum, $(tarballs))
c704b3ba (kx 2023-04-07 10:41:29 +0300 29) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 30) TARGETS = repository_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 31) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 32) all: $(TARGETS)
c704b3ba (kx 2023-04-07 10:41:29 +0300 33) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 34) .PHONY: downloads_clean repository_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 35) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 36) $(git_repo):
c704b3ba (kx 2023-04-07 10:41:29 +0300 37) 	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 38) 	@rm -rf $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 39) 	@git clone $(url)/$(repo_name).git $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 40) 	@touch $@
c704b3ba (kx 2023-04-07 10:41:29 +0300 41) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 42) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 43) $(tarballs): $(git_repo)
c704b3ba (kx 2023-04-07 10:41:29 +0300 44) 	@for version in $(TAGS) ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 45) 	  tag=`echo $$version`; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 46) 	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
c704b3ba (kx 2023-04-07 10:41:29 +0300 47) 	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 48) 	    ( cd $(repo_name) && \
c704b3ba (kx 2023-04-07 10:41:29 +0300 49) 	      git archive --format=tar --prefix=$(repo_name)-$$version/ $$tag | \
c704b3ba (kx 2023-04-07 10:41:29 +0300 50) 	      xz >../$(repo_name)-$$version.$(suffix) ) ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 51) 	  fi ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 52) 	done
c704b3ba (kx 2023-04-07 10:41:29 +0300 53) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 54) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c704b3ba (kx 2023-04-07 10:41:29 +0300 55) 	@for tarball in $< ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 56) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 57) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 58) 	done
c704b3ba (kx 2023-04-07 10:41:29 +0300 59) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 60) repository_clean: $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 61) 	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 62) 	@rm -rf $(git_repo) $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 63) 
c704b3ba (kx 2023-04-07 10:41:29 +0300 64) downloads_clean:
c704b3ba (kx 2023-04-07 10:41:29 +0300 65) 	@rm -rf $(tarballs) $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 66) 	@rm -rf $(git_repo) $(repo_name)