wok annotate xalan-c/receipt @ rev 25483

created recipe for py3k-six
author Hans-G?nter Theisgen
date Mon Oct 17 07:54:33 2022 +0100 (23 months ago)
parents cb67b4f8be05
children 5db546345599
rev   line source
rcx@3472 1 # SliTaz package receipt.
rcx@3472 2
rcx@3472 3 PACKAGE="xalan-c"
Hans-G?nter@25426 4 VERSION="1.12.0"
rcx@3472 5 CATEGORY="development"
rcx@3472 6 SHORT_DESC="An XSLT processor for transforming XML documents into HTML, text, or other XML document types."
rcx@3472 7 MAINTAINER="rcx@zoominternet.net"
pascal@15579 8 LICENSE="Apache"
pascal@24746 9 WEB_SITE="https://xalan.apache.org/"
rcx@3472 10
Hans-G?nter@25426 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25426 12 WGET_URL="https://github.com/apache/$PACKAGE/archive/refs/tags/Xalan-C_${VERSION//./_}.tar.gz"
Hans-G?nter@22147 13
Hans-G?nter@22147 14 DEPENDS="gcc-lib-base glibc-base icu libcrypto libcurl xerces-c"
Hans-G?nter@25426 15 BUILD_DEPENDS="cmake xerces-c-dev"
pascal@10456 16
pascal@24465 17 # What is the latest version available today?
pascal@24465 18 current_version()
pascal@24465 19 {
pascal@24465 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 21 sed "/latest/d;/xalan_c-[0-9]/!d;/tar/!d;s|.*xalan_c-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 22 }
pascal@24465 23
rcx@3472 24 # Rules to configure and make the package.
rcx@3472 25 compile_rules()
rcx@3472 26 {
Hans-G?nter@25426 27 # mv c/* . && rm -r c
Hans-G?nter@25426 28 # sed -i 's|mutable MemoryManager|MemoryManager|' \
Hans-G?nter@25426 29 # src/xalanc/*/*.hpp
Hans-G?nter@22147 30
rcx@3472 31 export XERCESCROOT=/usr
rcx@3472 32 export XALANCROOT=$src
Hans-G?nter@22147 33
Hans-G?nter@25426 34 mkdir _build &&
Hans-G?nter@25426 35 cd _build &&
Hans-G?nter@25426 36 cmake .. \
Hans-G?nter@25426 37 -D CMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@25426 38 make &&
gokhlayeh@8228 39 make install
rcx@3472 40 }
rcx@3472 41
rcx@3472 42 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3472 43 genpkg_rules()
rcx@3472 44 {
Hans-G?nter@25426 45 cook_copy_folders bin
Hans-G?nter@25426 46 cook_copy_files *.so*
rcx@3472 47 }