Remove the dependency on dev-util/aap, which was only used to build three
documentation files. Instead, asciidoc is called directly now.
Closes: https://github.com/gentoo/gentoo/pull/3082
Package-Manager: portage-2.3.0
Signed-off-by: Marc Joliet <marcec@gmx.de>
if [ "$PV" == "9999" ]; then
DEPEND="${DEPEND}
- dev-util/aap
www-client/lynx
dev-util/source-highlight"
fi
default
if [ "$PV" == "9999" ]; then
- cd doc || die
- aap -f main.aap ../{CHANGELOG,README,BUGS} || die
+ # replicate build rules from doc/main.aap; this avoids a dependency on
+ # the A-A-P build tool
+ for f in CHANGELOG.txt BUGS.txt README.asciidoc; do
+ ${PYTHON} asciidoc.py -f text.conf -n -b html4 -o - "$f" | \
+ lynx -dump -stdin > "${f%.*}" || die
+ done
fi
}