Skip to content
Permalink
Browse files

apache-ant: fix building source variant

Ant 1.10 requires Java 8, but Java 8 treats Javadoc errors as fatal, and there
are errors when building without some supposedly-optional libraries.
  • Loading branch information
amake authored and blair committed Jul 7, 2019
1 parent d11a011 commit 823acad2c9ac201fe55b5d2e6695a6ee26f37a8b
Showing with 6 additions and 0 deletions.
  1. +6 −0 devel/apache-ant/Portfile
@@ -42,6 +42,7 @@ build.cmd true
# dependent support isn't available when ant is built, due to circular
# dependencies back to ant.
variant source description "build from source; not recommended" {
java.version 1.8+
distname ${name}-${version}-src
master_sites.mirror_subdir source
checksums rmd160 3f03bfeed5c95136b2aa5a5df87680c9803fe002 \
@@ -52,6 +53,11 @@ variant source description "build from source; not recommended" {
build.cmd ./build.sh
build.args -Dchmod.fail=false -Ddist.name=${name}
build.target dist

post-patch {
# Don't fail on Javadoc errors
reinplace "s|failonerror=\"true\"||g" ${worksrcpath}/build.xml
}
}

pre-destroot {

0 comments on commit 823acad

Please sign in to comment.
You can’t perform that action at this time.