blob: 87f74b7e1f798f4de1349135caa2339ead96c411 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
PORTNAME= qmk
DISTVERSION= 1.0.0
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= CLI program for working with QMK firmware
WWW= https://github.com/qmk/qmk_cli
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dotty-dict>=0:devel/py-dotty-dict@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hid>=0:comms/py-hid@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hjson>=0:textproc/py-hjson@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jsonschema>=3:devel/py-jsonschema@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}milc>=1.4.0:devel/py-milc@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose2>=0:devel/py-nose2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyrsistent>=0:devel/py-pyrsistent@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyusb>=0:devel/py-pyusb@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yapf>=0:textproc/py-yapf@${PY_FLAVOR} \
arm-none-eabi-gcc>0:devel/arm-none-eabi-gcc \
avr-gcc>0:devel/avr-gcc \
avr-libc>0:devel/avr-libc \
avrdude>0:devel/avrdude \
dfu-programmer>0:comms/dfu-programmer \
dfu-util>0:comms/dfu-util \
git:devel/git
USES= python shebangfix
USE_PYTHON= autoplist concurrent distutils
SHEBANG_GLOB= *.py
# Upstream stopped providing a setup.py
post-patch:
@${ECHO_CMD} 'import setuptools; setuptools.setup()' > ${WRKSRC}/setup.py
TEST_ENV= PYTHONPATH="${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}"
TEST_TARGET= config
DO_MAKE_TEST= ${SETENV} ${TEST_ENV} ${STAGEDIR}${PREFIX}/bin/qmk >/dev/null
NO_ARCH= yes
SUB_FILES= pkg-message
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
.include <bsd.port.mk>
|