From 35c334e0e4d44502f4205db1002e7fa122a16b8f Mon Sep 17 00:00:00 2001 From: Hax4us Date: Sat, 25 Aug 2018 11:35:19 +0530 Subject: [PATCH] add doxygen --- packages/doxygen/build.sh | 11 +++++++++++ packages/doxygen/doxyparse.cpp.patch | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 packages/doxygen/build.sh create mode 100644 packages/doxygen/doxyparse.cpp.patch diff --git a/packages/doxygen/build.sh b/packages/doxygen/build.sh new file mode 100644 index 000000000..7a78acffc --- /dev/null +++ b/packages/doxygen/build.sh @@ -0,0 +1,11 @@ +TERMUX_PKG_HOMEPAGE=http://www.doxygen.org +TERMUX_PKG_DESCRIPTION="A documentation system for C++, C, Java, IDL and PHP" +TERMUX_PKG_VERSION=1.8.14 +TERMUX_PKG_MAINTAINER="lokesh @hax4us" +TERMUX_PKG_SHA256=d1757e02755ef6f56fd45f1f4398598b920381948d6fcfa58f5ca6aa56f59d4d +TERMUX_PKG_SRCURL=http://ftp.stack.nl/pub/doxygen/doxygen-${TERMUX_PKG_VERSION}.src.tar.gz +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DCMAKE_BUILD_TYPE=Release -Dbuild_parse=yes -Dbuild_xmlparser=yes" +termux_step_post_make_install () { + mkdir -p $TERMUX_PREFIX/share/man/man1 + cp $TERMUX_PKG_SRCDIR/doc/doxygen.1 $TERMUX_PREFIX/share/man/man1 +} diff --git a/packages/doxygen/doxyparse.cpp.patch b/packages/doxygen/doxyparse.cpp.patch new file mode 100644 index 000000000..96e81a31f --- /dev/null +++ b/packages/doxygen/doxyparse.cpp.patch @@ -0,0 +1,11 @@ +--- doxygen-1.8.14/addon/doxyparse/doxyparse.cpp 2017-12-24 15:50:24.000000000 +0530 ++++ doxyparse.cpp 2018-08-22 12:02:22.141000002 +0530 +@@ -367,7 +367,7 @@ + + // we need a place to put intermediate files + std::ostringstream tmpdir; +- tmpdir << "/tmp/doxyparse-" << getpid(); ++ tmpdir << "@TERMUX_PREFIX@/tmp/doxyparse-" << getpid(); + Config_getString(OUTPUT_DIRECTORY)= tmpdir.str().c_str(); + // enable HTML (fake) output to omit warning about missing output format + Config_getBool(GENERATE_HTML)=TRUE;