From owner-svn-ports-all@freebsd.org Sat Oct 10 10:23:56 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2927EA1079B; Sat, 10 Oct 2015 10:23:56 +0000 (UTC) (envelope-from marino@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 mx1.freebsd.org (Postfix) with ESMTPS id CDE911992; Sat, 10 Oct 2015 10:23:55 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9AANsf7048189; Sat, 10 Oct 2015 10:23:54 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9AANso4048188; Sat, 10 Oct 2015 10:23:54 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201510101023.t9AANso4048188@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Sat, 10 Oct 2015 10:23:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r398986 - in head/devel/drpython: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 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: Sat, 10 Oct 2015 10:23:56 -0000 Author: marino Date: Sat Oct 10 10:23:54 2015 New Revision: 398986 URL: https://svnweb.freebsd.org/changeset/ports/398986 Log: devel/drpython: Fix runtime error on F9 PR: 199224 Submitted by: ports fury Deleted: head/devel/drpython/files/patch-drpython.lin Modified: head/devel/drpython/Makefile Modified: head/devel/drpython/Makefile ============================================================================== --- head/devel/drpython/Makefile Sat Oct 10 10:13:50 2015 (r398985) +++ head/devel/drpython/Makefile Sat Oct 10 10:23:54 2015 (r398986) @@ -3,7 +3,7 @@ PORTNAME= drpython PORTVERSION= 3.11.4 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= devel python MASTER_SITES= SF/${PORTNAME}/DrPython%20%283.x%29/${PORTVERSION} PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX} @@ -20,7 +20,7 @@ RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/ NO_ARCH= yes WRKSRC= ${WRKDIR}/${PORTNAME} -USES= python zip +USES= compiler:c++11-lib python zip USE_PYTHON= distutils autoplist USE_WX= 3.0+ WX_COMPS= python:lib @@ -31,13 +31,18 @@ DESKTOP_ENTRIES="DrPython" "Python edito "${PYTHONPREFIX_SITELIBDIR}/drpython/bitmaps/drpython.png" \ "drpython" "Development;IDE;" "" +.include + +.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == gcc +MAKE_ENV+= LD_LIBRARY_PATH="${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH" +.endif + post-patch: @${REINPLACE_CMD} -e \ '/postinst.py/d' ${WRKSRC}/setup.py @${RM} ${WRKSRC}/setup.cfg @${REINPLACE_CMD} -e \ 's|firefox|xdg-open|' ${WRKSRC}/drPreferences.py - @${REINPLACE_CMD} -e 's|%%PYTHON%%|${PYTHON_CMD}|' ${WRKSRC}/drpython.lin pre-build: @(cd ${WRKSRC}/docsrc && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} html) @@ -45,11 +50,24 @@ pre-build: ${WRKSRC}/documentation) post-build: - @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/drpython.sh - @${ECHO_CMD} 'exec ${PYTHON_CMD} -m drpython.drpython' >> ${WRKDIR}/drpython.sh + @${MKDIR} ${WRKDIR}/wrappers + @${ECHO_CMD} -n \ + >> ${WRKDIR}/wrappers/drpython + @${ECHO_CMD} '#!/bin/sh' \ + >> ${WRKDIR}/wrappers/drpython +.if ${OPSYS} == FreeBSD && ${CHOSEN_COMPILER_TYPE} == gcc + @${ECHO_CMD} 'LD_LIBRARY_PATH="${LOCALBASE}/lib/${CC}:$$LD_LIBRARY_PATH"' \ + >> ${WRKDIR}/wrappers/drpython + @${ECHO_CMD} 'export LD_LIBRARY_PATH' \ + >> ${WRKDIR}/wrappers/drpython + @${ECHO_CMD} \ + >> ${WRKDIR}/wrappers/drpython +.endif + @${ECHO_CMD} 'exec ${PYTHON_CMD} -m drpython.drpython' \ + >> ${WRKDIR}/wrappers/drpython post-install: - (cd ${WRKDIR} && ${INSTALL_SCRIPT} drpython.sh \ - ${STAGEDIR}${PREFIX}/bin/drpython) + (cd ${WRKDIR}/wrappers && ${INSTALL_SCRIPT} drpython \ + ${STAGEDIR}${PREFIX}/bin) -.include +.include