Files
MX_Pmodule/Tools/xmlto/build
Achim Gsell 6985dc1e67 fixes in xmlto build-script
- use Macports xsltproc
- cp getopt from getopt module
2019-08-23 16:51:03 +02:00

29 lines
575 B
Plaintext
Executable File

#!/usr/bin/env modbuild
pbuild::set_download_url "https://releases.pagure.org/$P/$P-${V_PKG}.tar.bz2"
pbuild::compile_in_sourcetree
pbuild::add_to_group 'Tools'
pbuild::install_docfiles \
AUTHORS \
COPYING \
FAQ \
NEWS \
README \
THANKS
pbuild::pre_configure() {
# :FIXME: Hack for macos, we should build our own xsltproc module
test -x /opt/local/bin/xsltproc && pbuild::add_configure_args XSLTPROC=$_
}
pbuild::post_install() {
cp -av "${GETOPT_DIR}/bin/getopt" "${PREFIX}/bin"
}
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End: