mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
59 lines
1.4 KiB
Bash
59 lines
1.4 KiB
Bash
# $Id$
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - drop docs package for now, hangs build
|
|
|
|
pkgname=doxygen
|
|
pkgver=1.8.12
|
|
pkgrel=1
|
|
license=('GPL')
|
|
arch=(i686 x86_64)
|
|
url="http://www.doxygen.org/"
|
|
makedepends=('cmake' 'gcc-libs' 'flex' 'qt4' 'texlive-core' 'ghostscript'
|
|
'texlive-latexextra' 'graphviz' 'python2')
|
|
source=(http://ftp.stack.nl/pub/users/dimitri/${pkgname}-${pkgver}.src.tar.gz)
|
|
md5sums=('08e0f7850c4d22cb5188da226b209a96')
|
|
sha1sums=('eacf83859a5bd7f3f71b46f34759cefe1a05babc')
|
|
|
|
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 \
|
|
-DQT_QMAKE_EXECUTABLE:FILE=/usr/lib/qt4/bin/qmake \
|
|
-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'
|
|
'qt4: for doxywizard')
|
|
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# Docs are in 'doxygen-docs'
|
|
rm -rf "${pkgdir}/usr/share/doc"
|
|
}
|
|
|