2015-12-12 03:33:21 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - drop docs package for now, hangs build
|
|
|
|
|
|
|
|
pkgname=doxygen
|
2017-02-17 01:31:53 +00:00
|
|
|
pkgver=1.8.13
|
2016-09-18 18:37:37 +00:00
|
|
|
pkgrel=1
|
2015-12-12 03:33:21 +00:00
|
|
|
license=('GPL')
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://www.doxygen.org/"
|
2017-02-17 01:31:53 +00:00
|
|
|
makedepends=('cmake' 'gcc-libs' 'flex' 'qt5-base' 'texlive-core' 'ghostscript'
|
2015-12-12 03:33:21 +00:00
|
|
|
'texlive-latexextra' 'graphviz' 'python2')
|
2016-09-18 18:37:37 +00:00
|
|
|
source=(http://ftp.stack.nl/pub/users/dimitri/${pkgname}-${pkgver}.src.tar.gz)
|
2017-02-17 01:31:53 +00:00
|
|
|
md5sums=('0fa414975f8cd6d30e126c28327c1f7c')
|
|
|
|
sha1sums=('a3c812346d2ebd7b2e79ed1fec3a6aa3aedd5f7b')
|
2015-12-12 03:33:21 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir build
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# Install the man pages in the right place
|
|
|
|
sed -i 's:DESTINATION man/man1:DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1":g' \
|
|
|
|
doc/CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake "../${pkgbase}-${pkgver}" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
|
|
|
-DDOC_INSTALL_DIR:PATH=share/doc/doxygen \
|
|
|
|
-DPYTHON_EXECUTABLE:FILE=/usr/bin/python2 \
|
|
|
|
-Dbuild_doc:BOOL=OFF \
|
|
|
|
-Dbuild_wizard:BOOL=ON
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check(){
|
|
|
|
cd build
|
|
|
|
make tests
|
|
|
|
}
|
|
|
|
|
|
|
|
package_doxygen() {
|
|
|
|
pkgdesc="A documentation system for C++, C, Java, IDL and PHP"
|
|
|
|
depends=('gcc-libs')
|
|
|
|
optdepends=('graphviz: for caller/callee graph generation'
|
2017-02-17 01:31:53 +00:00
|
|
|
'qt5-base: for doxywizard')
|
2015-12-12 03:33:21 +00:00
|
|
|
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# Docs are in 'doxygen-docs'
|
|
|
|
rm -rf "${pkgdir}/usr/share/doc"
|
|
|
|
}
|
|
|
|
|