2020-09-01 19:03:28 +02:00
|
|
|
# Description: Python unit testing library
|
|
|
|
# URL: https://launchpad.net/subunit
|
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
|
|
# Depends on: python3 check cppunit
|
2015-01-27 19:28:35 +09:00
|
|
|
|
|
|
|
name=subunit
|
2020-09-01 19:03:28 +02:00
|
|
|
version=1.4.0
|
2015-01-27 19:28:35 +09:00
|
|
|
release=1
|
2020-09-01 19:03:28 +02:00
|
|
|
source=(https://launchpad.net/subunit/trunk/$version/+download/$name-$version.tar.gz)
|
2015-01-27 19:28:35 +09:00
|
|
|
|
|
|
|
build () {
|
2020-09-01 19:03:28 +02:00
|
|
|
cd $name-$version
|
2015-01-28 20:34:33 +09:00
|
|
|
|
2020-09-01 19:03:28 +02:00
|
|
|
PYTHON=/usr/bin/python3 \
|
|
|
|
./configure --prefix=/usr
|
2015-01-28 20:34:33 +09:00
|
|
|
|
2015-01-27 19:28:35 +09:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
# Avoid conflict with p5-subunit and py-subunit
|
2020-09-01 19:03:28 +02:00
|
|
|
rm -r $PKG/usr/lib/perl* $PKG/usr/lib/python*
|
2015-01-27 19:28:35 +09:00
|
|
|
|
|
|
|
# The binaries are actually python and perl scripts
|
2020-09-01 19:03:28 +02:00
|
|
|
rm -r $PKG/usr/bin
|
2015-01-27 19:28:35 +09:00
|
|
|
}
|