Date: Sunday, December 6, 2015 @ 12:05:35 Author: arojas Revision: 252720
archrelease: copy trunk to staging-i686, staging-x86_64 Added: doxygen/repos/staging-i686/ doxygen/repos/staging-i686/PKGBUILD (from rev 252719, doxygen/trunk/PKGBUILD) doxygen/repos/staging-x86_64/ doxygen/repos/staging-x86_64/PKGBUILD (from rev 252719, doxygen/trunk/PKGBUILD) -------------------------+ staging-i686/PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++++++++ staging-x86_64/PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+) Copied: doxygen/repos/staging-i686/PKGBUILD (from rev 252719, doxygen/trunk/PKGBUILD) =================================================================== --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2015-12-06 11:05:35 UTC (rev 252720) @@ -0,0 +1,73 @@ +# $Id$ +# Maintainer: Dan McGee <d...@archlinux.org> + +pkgbase=doxygen +pkgname=('doxygen' 'doxygen-docs') +pkgver=1.8.10 +pkgrel=2 +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 + flex-2.6.patch::"https://github.com/heirecka/doxygen/commit/5fcb1357.patch") +md5sums=('79767ccd986f12a0f949015efb5f058f' + 'b282c91bac1888f607a3676a236d2828') +sha1sums=('6bad93cbdb1b2efacba14769d39bcc7bc9c0753b' + 'aeeb45547de0f659789588b563210d9511c6a291') + +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 + + # Fix build with flex 2.6 + patch -p1 -i ../flex-2.6.patch +} + +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=ON \ + -Dbuild_wizard:BOOL=ON + + make + make docs +} + +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" +} + +package_doxygen-docs() { + pkgdesc="Developer documentation for doxygen" + + cd build + make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}/usr/bin" + rm -rf "${pkgdir}/usr/share/man" +} Copied: doxygen/repos/staging-x86_64/PKGBUILD (from rev 252719, doxygen/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2015-12-06 11:05:35 UTC (rev 252720) @@ -0,0 +1,73 @@ +# $Id$ +# Maintainer: Dan McGee <d...@archlinux.org> + +pkgbase=doxygen +pkgname=('doxygen' 'doxygen-docs') +pkgver=1.8.10 +pkgrel=2 +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 + flex-2.6.patch::"https://github.com/heirecka/doxygen/commit/5fcb1357.patch") +md5sums=('79767ccd986f12a0f949015efb5f058f' + 'b282c91bac1888f607a3676a236d2828') +sha1sums=('6bad93cbdb1b2efacba14769d39bcc7bc9c0753b' + 'aeeb45547de0f659789588b563210d9511c6a291') + +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 + + # Fix build with flex 2.6 + patch -p1 -i ../flex-2.6.patch +} + +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=ON \ + -Dbuild_wizard:BOOL=ON + + make + make docs +} + +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" +} + +package_doxygen-docs() { + pkgdesc="Developer documentation for doxygen" + + cd build + make DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}/usr/bin" + rm -rf "${pkgdir}/usr/share/man" +}