py-pushover: run 2to3 in post-patch; newer setuptools stops supporting use_2to3
This commit is contained in:
parent
983368d3be
commit
2ae96d812e
@ -1,11 +1,12 @@
|
||||
COMMENT = send messages via Pushover
|
||||
|
||||
MODPY_EGG_VERSION = 0.4
|
||||
REVISION = 2
|
||||
|
||||
EPOCH = 0
|
||||
|
||||
DISTNAME = python-pushover-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME:S/python-//}
|
||||
REVISION = 1
|
||||
|
||||
CATEGORIES = sysutils
|
||||
|
||||
@ -22,4 +23,7 @@ FLAVOR = python3
|
||||
|
||||
RUN_DEPENDS = www/py-requests${MODPY_FLAVOR}>=2.20.0
|
||||
|
||||
post-patch:
|
||||
cd ${WRKSRC}; 2to3 -w pushover.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
10
sysutils/py-pushover/patches/patch-setup_py
Normal file
10
sysutils/py-pushover/patches/patch-setup_py
Normal file
@ -0,0 +1,10 @@
|
||||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -14,6 +14,5 @@ setup(name='python-pushover',
|
||||
py_modules=['pushover'],
|
||||
entry_points={"console_scripts": ["pushover = pushover:main"]},
|
||||
install_requires=['requests>=1.0'],
|
||||
- use_2to3=True,
|
||||
license='GNU GPLv3'
|
||||
)
|
@ -1,5 +1,6 @@
|
||||
@conflict pushover-*
|
||||
bin/pushover
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}pushover.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pushover.py
|
||||
lib/python${MODPY_VERSION}/site-packages/python_pushover-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
|
Loading…
x
Reference in New Issue
Block a user