diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-31 14:02:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-31 14:02:58 +0000 |
commit | 1ab341f452d506f87cda17dcdea311697af1e511 (patch) | |
tree | 2cd745040e1429017dce000ffda29efa061efd9c | |
parent | 08f5f7fa4854208cafb43c771b7dbf4464d23ae3 (diff) | |
download | alpine_aports-1ab341f452d506f87cda17dcdea311697af1e511.tar.bz2 alpine_aports-1ab341f452d506f87cda17dcdea311697af1e511.tar.xz alpine_aports-1ab341f452d506f87cda17dcdea311697af1e511.zip |
testing/cppunit: new aport
C++ unit testing framework
http://cppunit.sourceforge.net/
-rw-r--r-- | testing/cppunit/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/cppunit/APKBUILD b/testing/cppunit/APKBUILD new file mode 100644 index 0000000000..7ccadb9799 --- /dev/null +++ b/testing/cppunit/APKBUILD | |||
@@ -0,0 +1,49 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | ||
2 | pkgname=cppunit | ||
3 | pkgver=1.12.1 | ||
4 | pkgrel=0 | ||
5 | pkgdesc="C++ unit testing framework" | ||
6 | url="http://cppunit.sourceforge.net/" | ||
7 | arch="all" | ||
8 | license="LGPLv2+" | ||
9 | depends="" | ||
10 | depends_dev="" | ||
11 | makedepends="$depends_dev" | ||
12 | install="" | ||
13 | subpackages="$pkgname-dev $pkgname-doc" | ||
14 | source="http://downloads.sourceforge.net/cppunit/cppunit-$pkgver.tar.gz" | ||
15 | |||
16 | _builddir="$srcdir"/cppunit-$pkgver | ||
17 | prepare() { | ||
18 | local i | ||
19 | cd "$_builddir" | ||
20 | for i in $source; do | ||
21 | case $i in | ||
22 | *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; | ||
23 | esac | ||
24 | done | ||
25 | } | ||
26 | |||
27 | build() { | ||
28 | cd "$_builddir" | ||
29 | LIBS="-ldl" ./configure \ | ||
30 | --build=$CBUILD \ | ||
31 | --host=$CHOST \ | ||
32 | --prefix=/usr \ | ||
33 | --sysconfdir=/etc \ | ||
34 | --mandir=/usr/share/man \ | ||
35 | --infodir=/usr/share/info \ | ||
36 | --localstatedir=/var \ | ||
37 | || return 1 | ||
38 | make || return 1 | ||
39 | } | ||
40 | |||
41 | package() { | ||
42 | cd "$_builddir" | ||
43 | make DESTDIR="$pkgdir" install || return 1 | ||
44 | rm -f "$pkgdir"/usr/lib/*.la | ||
45 | } | ||
46 | |||
47 | md5sums="bd30e9cf5523cdfc019b94f5e1d7fd19 cppunit-1.12.1.tar.gz" | ||
48 | sha256sums="ac28a04c8e6c9217d910b0ae7122832d28d9917fa668bcc9e0b8b09acb4ea44a cppunit-1.12.1.tar.gz" | ||
49 | sha512sums="7af3569d028d5fa49106ece281f478cc2757cc5deca8c2512406796a7dbd6473928a1e730f28880467d19c6e59b31e55bf4f92f5cf2498a3a875ab32c5b2a081 cppunit-1.12.1.tar.gz" | ||