summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2023-06-13 04:16:50 +0300
committerkx <kx@radix.pro>2023-06-13 04:16:50 +0300
commit685b6422a5048e0bd4527332b7fde2d4fc05e76f (patch)
tree934ee52ddb23e83a9286172ee72aa7fd04ec9cc9
parent3004b6c66b81e8011b434d108e03d826558fc6f4 (diff)
downloadsources-685b6422a5048e0bd4527332b7fde2d4fc05e76f.tar.xz
lxml-4.9.2
-rw-r--r--packages/l/Makefile1
-rw-r--r--packages/l/lxml/Makefile63
2 files changed, 64 insertions, 0 deletions
diff --git a/packages/l/Makefile b/packages/l/Makefile
index ef5fe40..8220e9e 100644
--- a/packages/l/Makefile
+++ b/packages/l/Makefile
@@ -96,6 +96,7 @@ SUBDIRS := aalib \
libyaml \
libzip \
log4cplus \
+ lxml \
lz4 \
lzlib \
lzo \
diff --git a/packages/l/lxml/Makefile b/packages/l/lxml/Makefile
new file mode 100644
index 0000000..67006b8
--- /dev/null
+++ b/packages/l/lxml/Makefile
@@ -0,0 +1,63 @@
+#
+# Project Home:
+# ============
+# https://lxml.de
+#
+# GitHub:
+# ======
+# https://github.com/lxml/lxml
+#
+# Clone:
+# =====
+# git clone https://github.com/lxml/lxml.git
+#
+
+url = https://github.com/lxml
+
+repo_name = lxml
+pkg_name = lxml
+suffix = tar.xz
+
+versions = 4.9.2
+
+git_repo = .git_clone
+tarballs = $(addsuffix .tar.xz, $(addprefix $(pkg_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 $(versions) ; do \
+ tag="lxml-`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=$(pkg_name)-$$version/ $$tag | \
+ xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+ fi ; \
+ done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+ @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)