Merge branch '24-xmlto-use-xsltproc-from-macports-and-getopt-from-getopt-module' into 'master'

Resolve "xmlto: use xsltproc from Macports and getopt from getopt module"

Closes #24

See merge request Pmodules/buildblocks!25
This commit is contained in:
2019-08-23 16:52:06 +02:00
+9 -2
View File
@@ -2,8 +2,6 @@
pbuild::set_download_url "https://releases.pagure.org/$P/$P-${V_PKG}.tar.bz2"
module use System
pbuild::compile_in_sourcetree
pbuild::add_to_group 'Tools'
pbuild::install_docfiles \
@@ -14,6 +12,15 @@ pbuild::install_docfiles \
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