26 lines
977 B
Bash
26 lines
977 B
Bash
# Template file for 'CastXML'
|
|
pkgname=CastXML
|
|
version=0.6.8
|
|
revision=1
|
|
build_style=cmake
|
|
_llvmver=19
|
|
configure_args="-DSPHINX_MAN=YES -DCastXML_INSTALL_MAN_DIR=share/man
|
|
-DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr/lib/llvm/${_llvmver}"
|
|
hostmakedepends="clang${_llvmver} python3-Sphinx"
|
|
makedepends="clang-tools-extra${_llvmver} llvm${_llvmver}-devel"
|
|
depends="clang${_llvmver}"
|
|
checkdepends="libxml2"
|
|
short_desc="C-family abstract syntax tree XML output tool"
|
|
maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/CastXML/CastXML"
|
|
distfiles="https://github.com/CastXML/CastXML/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=b517a9d18ddb7f71b3b053af61fc393dd81f17911e6c6d53a85f3f523ba8ad64
|
|
|
|
post_install() {
|
|
rm -r ${DESTDIR}/usr/share/castxml/clang/include
|
|
ln -s ../../../lib/llvm/${_llvmver}/lib/clang/${_llvmver}/include ${DESTDIR}/usr/share/castxml/clang/include
|
|
|
|
rm ${DESTDIR}/usr/share/doc/castxml/{LICENSE,NOTICE}
|
|
}
|