78 lines
2.4 KiB
Bash
78 lines
2.4 KiB
Bash
SUMMARY="Generate documentation from source code"
|
|
DESCRIPTION="Doxygen is the de facto standard tool for generating \
|
|
documentation from annotated C++ sources, but it also supports other popular \
|
|
programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL \
|
|
(Corba and Microsoft flavors), Fortran, VHDL, Tcl, and to some extent D.
|
|
Doxygen can:
|
|
* generate an on-line documentation browser (in HTML) and/or an \
|
|
off-line reference manual (in LaTeX) from a set of documented source \
|
|
files. There is also support for generating output in RTF (MS-Word), \
|
|
PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
|
|
documentation is extracted directly from the sources, which makes it much \
|
|
easier to keep the documentation consistent with the source code.
|
|
* extract the code structure from undocumented source files. This is \
|
|
very useful to quickly find your way in large source distributions. \
|
|
Doxygen can also visualize the relations between the various elements \
|
|
by means of include dependency graphs, inheritance diagrams, and \
|
|
collaboration diagrams, which are all generated automatically."
|
|
HOMEPAGE="http://www.doxygen.org/"
|
|
COPYRIGHT="1997-2017 Dimitri van Heesch"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/doxygen/doxygen/archive/Release_${portVersion//./_}.tar.gz"
|
|
CHECKSUM_SHA256="75b18117f88ca1930ab74c05f6712690a26dd4fdcfc9d7d5324be43160645fb4"
|
|
SOURCE_DIR="doxygen-Release_${portVersion//./_}"
|
|
PATCHES="doxygen-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
portVersionCompat="$portVersion compat >= 1.8"
|
|
|
|
PROVIDES="
|
|
doxygen$secondaryArchSuffix = $portVersionCompat
|
|
cmd:doxygen = $portVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
"
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
CONFLICTS="
|
|
doxygen
|
|
"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:bison
|
|
cmd:cmake
|
|
cmd:date
|
|
cmd:flex
|
|
cmd:git
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:python
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# doesn't use GNUInstallDirs so we can't use $cmakeDirArgs
|
|
cmake . -DCMAKE_INSTALL_PREFIX=$prefix
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
install -d "$manDir"/man1
|
|
sed -e "s/@VERSION@/$portVersion/;" -e "s/@DATE@/`date -r VERSION \
|
|
+%F`/;" doc/doxygen.1 > "$manDir"/man1/doxygen.1
|
|
}
|