diff options
author | egypcio <egypcio@FreeBSD.org> | 2019-04-29 20:41:14 +0800 |
---|---|---|
committer | egypcio <egypcio@FreeBSD.org> | 2019-04-29 20:41:14 +0800 |
commit | 982081e695a5123993c9f35b8f8bc319d53a51a1 (patch) | |
tree | 4b449175f90d1ce4f5d2bcb62149596a90f3b773 /sysutils/openipmi | |
parent | 9bc0d8176e7eedd5629840ecc2575e1a193fbc35 (diff) | |
download | freebsd-ports-gnome-982081e695a5123993c9f35b8f8bc319d53a51a1.tar.gz freebsd-ports-gnome-982081e695a5123993c9f35b8f8bc319d53a51a1.tar.zst freebsd-ports-gnome-982081e695a5123993c9f35b8f8bc319d53a51a1.zip |
sysutils/openipmi: fix packaging with Python
PR: 236554
Reported by: gergely.czuczy % harmless.hu
Reviewed by: antoine, garga
Approved by: araujo (mentor), rene (mentor)
Differential Revision: https://reviews.freebsd.org/D20058
Diffstat (limited to 'sysutils/openipmi')
-rw-r--r-- | sysutils/openipmi/Makefile | 18 | ||||
-rw-r--r-- | sysutils/openipmi/pkg-plist | 12 |
2 files changed, 19 insertions, 11 deletions
diff --git a/sysutils/openipmi/Makefile b/sysutils/openipmi/Makefile index 82cc8b5d0097..bad48cf2f41a 100644 --- a/sysutils/openipmi/Makefile +++ b/sysutils/openipmi/Makefile @@ -3,7 +3,7 @@ PORTNAME= openipmi PORTVERSION= 2.0.27 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/OpenIPMI%202.0%20Library DISTNAME= OpenIPMI-${PORTVERSION} @@ -24,6 +24,8 @@ GNU_CONFIGURE= yes INSTALL_TARGET= install-strip OPTIONS_DEFINE= GDBM GLIB20 PERL PYTHON SNMP SSL TCL TKINTER +TKINTER_IMPLIES= PYTHON + SSL_DESC= IPMI 2.0 RMCP+ encryption and authentication SNMP_DESC= SNMP trap support for the sample programs PERL_DESC= Perl interface for OpenIPMI library @@ -55,7 +57,7 @@ CONFIGURE_ARGS+= --with-openssl=no .endif .if ${PORT_OPTIONS:MTKINTER} -USES+= python shebangfix +USES+= shebangfix SHEBANG_FILES= swig/python/openipmigui.py BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} \ ${LOCALBASE}/lib/Tix8.4.3/Tix.tcl:x11-toolkits/tix @@ -81,13 +83,15 @@ PLIST_SUB+= OIPMIPERL="@comment " .if ${PORT_OPTIONS:MPYTHON} USES+= python -CONFIGURE_ARGS+= --with-python --with-swig ac_cv_path_pythonprog=${PYTHON_CMD} +USE_PYTHON= py3kplist +CONFIGURE_ARGS+= --with-python --with-swig +CONFIGURE_ENV+= ac_cv_path_pythonprog=${PYTHON_CMD} BUILD_DEPENDS+= swig3.0:devel/swig30 -PLIST_SUB+= PYTHON="" +PLIST_SUB+= OIPMIPYTHON="" BINARY_ALIAS= swig=swig3.0 .else CONFIGURE_ARGS+= --with-python=no --with-swig=no -PLIST_SUB+= PYTHON="@comment " +PLIST_SUB+= OIPMIPYTHON="@comment " .endif .if ${PORT_OPTIONS:MTCL} @@ -129,4 +133,8 @@ post-patch: ${REINPLACE_CMD} 's|editline/readline.h|edit/readline/readline.h|' \ ${WRKSRC}/sample/ipmi_serial_bmc_emu.c +do-install-PYTHON-on: + @${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} && \ + ${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + .include <bsd.port.mk> diff --git a/sysutils/openipmi/pkg-plist b/sysutils/openipmi/pkg-plist index 9193769950c0..020dda38872c 100644 --- a/sysutils/openipmi/pkg-plist +++ b/sysutils/openipmi/pkg-plist @@ -127,12 +127,12 @@ man/man7/openipmi_conparms.7.gz %%OIPMIPERL%%@comment files list for PERL %%OIPMIPERL%%%%SITE_ARCH%%/OpenIPMI.pm %%OIPMIPERL%%%%SITE_ARCH%%/auto/OpenIPMI/OpenIPMI.so -%%PYTHON%%@comment files list for PYTHON -%%PYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.py -%%PYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.pyc -%%PYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.pyo -%%PYTHON%%%%PYTHON_SITELIBDIR%%/_OpenIPMI.a -%%PYTHON%%%%PYTHON_SITELIBDIR%%/_OpenIPMI.so +%%OIPMIPYTHON%%@comment files list for PYTHON +%%OIPMIPYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.py +%%OIPMIPYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.pyc +%%OIPMIPYTHON%%%%PYTHON_SITELIBDIR%%/OpenIPMI.pyo +%%OIPMIPYTHON%%%%PYTHON_SITELIBDIR%%/_OpenIPMI.a +%%OIPMIPYTHON%%%%PYTHON_SITELIBDIR%%/_OpenIPMI.so %%TKINTER%%@comment files list for TKINTER %%TKINTER%%bin/openipmigui %%TKINTER%%%%PYTHON_SITELIBDIR%%/openipmigui/__init__.py |