diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-08 01:00:02 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-20 10:01:08 +0000 |
commit | c6c89c3cc9eda27d2c2b72f19bb0e02ad3d6fe95 (patch) | |
tree | 8c65a3944ce740ee354b30748c677986c4e232eb /main | |
parent | f8d90b7ecf82927cd350f70c416a45954f3f62a7 (diff) | |
download | aports-c6c89c3cc9eda27d2c2b72f19bb0e02ad3d6fe95.tar.bz2 aports-c6c89c3cc9eda27d2c2b72f19bb0e02ad3d6fe95.tar.xz |
main/doxygen: modernise, add tests
Diffstat (limited to 'main')
-rw-r--r-- | main/doxygen/APKBUILD | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/main/doxygen/APKBUILD b/main/doxygen/APKBUILD index 32e957f81a..6de36ef5e2 100644 --- a/main/doxygen/APKBUILD +++ b/main/doxygen/APKBUILD @@ -1,43 +1,37 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=doxygen pkgver=1.8.13 -pkgrel=0 +pkgrel=1 pkgdesc="A documentation system for C++, C, Java, IDL and PHP" url="http://www.doxygen.org/" arch="all" license="GPL" depends="" -makedepends="flex bison coreutils perl python2 cmake" +makedepends="flex bison coreutils perl python3 cmake" subpackages="" source="http://ftp.stack.nl/pub/users/dimitri/doxygen-$pkgver.src.tar.gz doxygen-1.8.11-install.patch " -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { - cd "$_builddir" + cd "$builddir" cmake .\ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -Dbuild_xmlparser=ON \ -DMAN_INSTALL_DIR=/usr/share/man/man1 \ - -DDOC_INSTALL_DIR=/usr/share/doc/doxygen \ - || return 1 + -DDOC_INSTALL_DIR=/usr/share/doc/doxygen + + make +} - make || return 1 +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install } |