blob: 3e8dd721716ac04435fe66e4198c30b1b2089a23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $FreeBSD$
# Hint: git describe --abbrev=12 --match android-m-preview
DISTVERSION= m-preview-4374
DISTVERSIONSUFFIX= -gf83766079e24
PORTREVISION= 1
PKGNAMESUFFIX= -devel
CONFLICTS_INSTALL= ${PORTNAME}-[0-9]*
MASTERDIR= ${.CURDIR}/../android-tools-adb
DISTINFO_FILE= ${.CURDIR}/distinfo
FILESDIR= ${.CURDIR}/files
EXTRA_PATCHES= ${.CURDIR}/files/patch-*
OPTIONS_DEFINE= TEST_PYTHON
TEST_PYTHON_DESC= ${TEST_DESC:S/tests/python &/}
TEST_PYTHON_GH_PROJECT= platform_development:development
TEST_PYTHON_GH_TAGNAME= ${DISTVERSIONFULL:C/-[0-9].*//}-2091-g6d49ceb:development
TEST_PYTHON_BUILD_DEPENDS=${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
TEST_PYTHON_USES= python:2.7,build
pre-install-TEST_PYTHON-on:
# XXX python tests may leave behind running adb server
# test_adb.py remains in core repository for some reason
${SETENV} PATH=${BUILD_WRKSRC}:${PATH} \
PYTHONPATH=${WRKSRC_development}/python-packages \
${PYTHON_CMD} ${BUILD_WRKSRC}/test_adb.py
${SETENV} PATH=${BUILD_WRKSRC}:${PATH} \
PYTHONPATH=${WRKSRC_development}/python-packages \
${PYTHON_CMD} ${WRKSRC_development}/python-packages/adb/test_device.py
.include "${MASTERDIR}/Makefile"
|