2015-06-19 19:14:53 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-08-09 18:48:21 +02:00
|
|
|
# Hint: git describe --abbrev=12 --match android-n-preview-5
|
|
|
|
DISTVERSION= n-preview-5-126
|
|
|
|
DISTVERSIONSUFFIX= -g2f21b7cecda2
|
2016-09-28 11:43:38 +02:00
|
|
|
PORTREVISION= 1
|
2015-06-19 19:14:53 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
|
|
|
|
CONFLICTS_INSTALL= ${PORTNAME}-[0-9]*
|
|
|
|
|
|
|
|
MASTERDIR= ${.CURDIR}/../android-tools-adb
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/distinfo
|
|
|
|
FILESDIR= ${.CURDIR}/files
|
2015-10-09 17:25:55 +02:00
|
|
|
EXTRA_PATCHES= ${.CURDIR}/files/patch-*
|
2015-06-19 19:14:53 +02:00
|
|
|
|
2016-03-21 19:46:32 +01:00
|
|
|
GH_MYTAG= ${DISTVERSIONPREFIX}${DISTVERSION:C/-[0-9]*$//}
|
|
|
|
|
2015-10-09 17:25:55 +02:00
|
|
|
OPTIONS_DEFINE= TEST_PYTHON
|
2015-10-09 17:25:30 +02:00
|
|
|
|
2016-06-30 15:31:05 +02:00
|
|
|
TEST_BROKEN= logging.* tests always fail after 4e5fd111d84d
|
|
|
|
|
2015-10-09 17:25:30 +02:00
|
|
|
TEST_PYTHON_DESC= ${TEST_DESC:S/tests/python &/}
|
|
|
|
TEST_PYTHON_GH_PROJECT= platform_development:development
|
2016-08-09 18:48:21 +02:00
|
|
|
TEST_PYTHON_GH_TAGNAME= ${GH_MYTAG}-14-g735aab1:development
|
2016-03-16 13:58:16 +01:00
|
|
|
TEST_PYTHON_BUILD_DEPENDS=${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
|
2015-10-09 17:25:30 +02:00
|
|
|
TEST_PYTHON_USES= python:2.7,build
|
2015-09-18 17:42:48 +02:00
|
|
|
|
2015-10-09 17:25:30 +02:00
|
|
|
pre-install-TEST_PYTHON-on:
|
2015-09-30 00:49:02 +02:00
|
|
|
# XXX python tests may leave behind running adb server
|
2015-09-30 00:49:33 +02:00
|
|
|
${SETENV} PATH=${BUILD_WRKSRC}:${PATH} \
|
|
|
|
PYTHONPATH=${WRKSRC_development}/python-packages \
|
2015-12-16 02:55:44 +01:00
|
|
|
${PYTHON_CMD} -m unittest discover -vs ${BUILD_WRKSRC}
|
2015-06-19 19:14:53 +02:00
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|