View | Details | Raw Unified | Return to bug 257022 | Differences between
and this patch

Collapse All | Expand All

(-)b/comms/py-esphome-flasher/Makefile (+49 lines)
Added Link Here
1
PORTNAME=	esphome-flasher
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.3.0
4
CATEGORIES=	comms python
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	rozhuk.im@gmail.com
8
COMMENT=	Simple GUI tool to flash ESPs over USB
9
10
LICENSE=	MIT
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
13
USE_GITHUB=	yes
14
GH_ACCOUNT=	esphome
15
USES=		python
16
USE_PYTHON=	autoplist distutils
17
USE_WX=		3.0+
18
WX_COMPS=	python:run
19
DESKTOP_ENTRIES="ESPHome-Flasher" "${COMMENT}" \
20
		"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
21
		"esphomeflasher" "" true
22
PLIST_FILES=	${PREFIX}/share/pixmaps/${PORTNAME}.ico
23
24
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}esptool>=2.5.1:comms/py-esptool@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}requests>=2.24.0:www/py-requests@${PY_FLAVOR}
26
27
post-patch:
28
.for __RUN_DEPEND in ${RUN_DEPENDS}
29
	@${ECHO} -n "${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}: "
30
	@${GREP} -E "^${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)" \
31
	    ${WRKSRC}/requirements.txt | \
32
		${SED} -E "s/${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)([.0-9]*)/\2/g" | \
33
		    ${TR} -cd '[:print:]'
34
	@${ECHO} " -> ${__RUN_DEPEND:C/.*(>|<|==|>=|<=)(.*)[:].*/\2/}"
35
36
	@${REINPLACE_CMD} -E \
37
		-e "s/(^|\")${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)[.0-9]*/\1${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}>=${__RUN_DEPEND:C/.*(>|<|==|>=|<=)(.*)[:].*/\2/}/g" \
38
		${WRKSRC}/setup.py \
39
		${WRKSRC}/requirements.txt
40
.endfor
41
# Show all serial ports.
42
	@${REINPLACE_CMD} -e 's| or "VID:PID" not in info||' \
43
		${WRKSRC}/esphomeflasher/helpers.py
44
45
post-install:
46
	${INSTALL_DATA} ${WRKSRC}/icon.ico \
47
		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico
48
49
.include <bsd.port.mk>
(-)b/comms/py-esphome-flasher/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1625568737
2
SHA256 (esphome-esphome-flasher-v1.3.0_GH0.tar.gz) = cd27745508a4c7a585b202d0a44319b79178f07f9eba6e2120c56a5b85fdcb04
3
SIZE (esphome-esphome-flasher-v1.3.0_GH0.tar.gz) = 75064
(-)b/comms/py-esphome-flasher/pkg-descr (+15 lines)
Added Link Here
1
ESPHome-Flasher is a utility app for the ESPHome framework and is
2
designed to make flashing ESPs with ESPHome as simple as possible by:
3
- Having pre-built binaries for most operating systems.
4
- Hiding all non-essential options for flashing. All necessary options
5
  for flashing (bootloader, flash mode) are automatically extracted from
6
  the binary.
7
8
This project was originally intended to be a simple command-line tool,
9
but then I decided that a GUI would be nice. As I don't like writing
10
graphical front end code, the GUI largely is based on the NodeMCU
11
PyFlasher project.
12
13
The flashing process is done using the esptool library by espressif.
14
15
WWW: https://github.com/esphome/esphome-flasher

Return to bug 257022