From owner-svn-ports-all@freebsd.org Mon Apr 29 12:41:15 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47B4C158BE1C; Mon, 29 Apr 2019 12:41:15 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E35DD75C41; Mon, 29 Apr 2019 12:41:14 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BAB15220A2; Mon, 29 Apr 2019 12:41:14 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3TCfEjf059413; Mon, 29 Apr 2019 12:41:14 GMT (envelope-from egypcio@FreeBSD.org) Received: (from egypcio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3TCfEmx059412; Mon, 29 Apr 2019 12:41:14 GMT (envelope-from egypcio@FreeBSD.org) Message-Id: <201904291241.x3TCfEmx059412@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: egypcio set sender to egypcio@FreeBSD.org using -f From: =?UTF-8?Q?Vin=c3=adcius_Zavam?= Date: Mon, 29 Apr 2019 12:41:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r500408 - head/sysutils/openipmi X-SVN-Group: ports-head X-SVN-Commit-Author: egypcio X-SVN-Commit-Paths: head/sysutils/openipmi X-SVN-Commit-Revision: 500408 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E35DD75C41 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Apr 2019 12:41:15 -0000 Author: egypcio Date: Mon Apr 29 12:41:14 2019 New Revision: 500408 URL: https://svnweb.freebsd.org/changeset/ports/500408 Log: 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 Modified: head/sysutils/openipmi/Makefile head/sysutils/openipmi/pkg-plist Modified: head/sysutils/openipmi/Makefile ============================================================================== --- head/sysutils/openipmi/Makefile Mon Apr 29 11:54:04 2019 (r500407) +++ head/sysutils/openipmi/Makefile Mon Apr 29 12:41:14 2019 (r500408) @@ -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} @@ -128,5 +132,9 @@ post-patch: ${WRKSRC}/lanserv/Makefile.in ${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 Modified: head/sysutils/openipmi/pkg-plist ============================================================================== --- head/sysutils/openipmi/pkg-plist Mon Apr 29 11:54:04 2019 (r500407) +++ head/sysutils/openipmi/pkg-plist Mon Apr 29 12:41:14 2019 (r500408) @@ -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