ruby: disable doc for *-musl

As a workaround for segfaults on the builders when trying to generate
the documentation for ruby disable the doc for *-musl for now.
This commit is contained in:
Jürgen Buchmüller 2017-12-17 06:46:06 +01:00
parent 5371c54476
commit c087c2bd93

View file

@ -15,13 +15,18 @@ license="BSD"
distfiles="https://cache.ruby-lang.org/pub/ruby/${version%.*}/${pkgname}-${version}.tar.bz2" distfiles="https://cache.ruby-lang.org/pub/ruby/${version%.*}/${pkgname}-${version}.tar.bz2"
checksum=0a703dffb7737f56e979c9ebe2482f07751803c71e307c20446b581e0f12cf30 checksum=0a703dffb7737f56e979c9ebe2482f07751803c71e307c20446b581e0f12cf30
hostmakedepends="pkg-config bison groff doxygen graphviz" hostmakedepends="pkg-config bison groff"
makedepends="zlib-devel readline-devel libffi-devel libressl-devel makedepends="zlib-devel readline-devel libffi-devel libressl-devel
gdbm-devel libyaml-devel pango-devel" gdbm-devel libyaml-devel pango-devel"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) # Broken on the builders but successfully built locally *-musl) # Broken on the builders but successfully built locally
broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/6630/steps/shell_3/logs/stdio" # As a workaround disable all docs
configure_args+=" --disable-install-doc"
;;
*)
hostmakedepends+=" doxygen graphviz"
configure_args+=" DOXYGEN=/usr/bin/doxygen DOT=/usr/bin/dot"
;; ;;
esac esac
@ -63,7 +68,13 @@ ruby-devel-doc_package() {
short_desc+=" - HTML C API documentation files" short_desc+=" - HTML C API documentation files"
noarch=yes noarch=yes
pkg_install() { pkg_install() {
vmove usr/share/doc if [ -d "${DESTDIR}/usr/share/doc" ]; then
vmove usr/share/doc
else
vmkdir usr/share/doc/ruby
echo "Currently not available." > \
${PKGDESTDIR}/usr/share/doc/ruby/README
fi
} }
} }
ruby-devel_package() { ruby-devel_package() {
@ -81,7 +92,9 @@ ruby-ri_package() {
noarch=yes noarch=yes
pkg_install() { pkg_install() {
vmove usr/bin/ri vmove usr/bin/ri
vmove usr/share/ri if [ -d "${DESTDIR}/usr/share/ri" ]; then
vmove usr/share/ri
fi
vmove "usr/share/man/man1/ri*" vmove "usr/share/man/man1/ri*"
} }
} }