1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Fix PYTHON OPTION

- Require python 3.5+

PR:		249298
Submitted by:	John Hein <jcfyecrayz@liamekaens.com>
This commit is contained in:
Ryan Steinmetz 2020-09-14 15:48:18 +00:00
parent 4f324cb5a4
commit 713b96a409
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548623
3 changed files with 24 additions and 13 deletions

View File

@ -77,7 +77,7 @@ TLS_CONFIGURE_ON= --with-security-modules=tsm --with-transports=TLSTCP,DTLSUDP
.if ${PORT_OPTIONS:MPYTHON}
PYDISTUTILS_PKGNAME?= netsnmp-python
PYDISTUTILS_PKGVERSION?= 1.0a1
USES+= python:2.7
USES+= python:3.5+
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
CONFIGURE_ARGS+=--with-python-modules

View File

@ -0,0 +1,11 @@
--- Makefile.in.orig 2020-08-14 21:41:47 UTC
+++ Makefile.in
@@ -235,7 +235,7 @@ pythonmodules: subdirs
fi
pythoninstall:
- @(dir=`pwd`; cd python; $(PYMAKE) install --basedir=$$dir --root=$(DESTDIR) --prefix=$(prefix)) ; \
+ @(dir=`pwd`; cd python; $(PYMAKE) install --basedir=$$dir --root=$(DESTDIR) --prefix=$(prefix) ${PYDISTUTILS_INSTALLARGS}); \
if test $$? != 0 ; then \
exit 1 ; \
fi

View File

@ -617,19 +617,19 @@ sbin/snmptrapd
%%DATADIR%%/snmpconf-data/snmptrapd-data/traphandle
@dir /var/agentx
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__init__.py
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__init__.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__init__.pyo
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/client.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/client.cpython-%%PYTHON_SUFFIX%%.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client.py
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client.pyo
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client_intf.so
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__init__.py
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__init__.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__init__.pyo
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/test.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/test.cpython-%%PYTHON_SUFFIX%%.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/test.py
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/test.pyc
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/test.pyo
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/PKG-INFO
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/SOURCES.txt
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/dependency_links.txt
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/top_level.txt
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/PKG-INFO
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/SOURCES.txt
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/dependency_links.txt
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/top_level.txt