Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2015 10:27:09 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384343 - head/editors/p5-Padre
Message-ID:  <201504201027.t3KAR9qM049915@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Mon Apr 20 10:27:08 2015
New Revision: 384343
URL: https://svnweb.freebsd.org/changeset/ports/384343

Log:
  editors/p5-Padre: unbreak on some platforms
  
  Due to pulling in Wx headers, Padre has to be built with c++11 standard.
  Due to current breakage on p5-Wx, this couldn't be tested on FreeBSD 8.
  It still builds on FreeBSD 10 and once again on DragonFly.

Modified:
  head/editors/p5-Padre/Makefile

Modified: head/editors/p5-Padre/Makefile
==============================================================================
--- head/editors/p5-Padre/Makefile	Mon Apr 20 09:48:29 2015	(r384342)
+++ head/editors/p5-Padre/Makefile	Mon Apr 20 10:27:08 2015	(r384343)
@@ -66,7 +66,7 @@ BUILD_DEPENDS=	p5-JSON-XS>=2.29:${PORTSD
 		p5-Wx-Perl-ProcessStream>=0.25:${PORTSDIR}/x11-toolkits/p5-Wx-Perl-ProcessStream
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USES=		gettext perl5
+USES=		compiler:c++11-lib gettext perl5
 USE_PERL5=	configure
 USE_WX=		3.0
 WX_COMPS=	wx
@@ -101,6 +101,7 @@ IGNORE=		needs a threaded Perl, build wi
 post-patch:
 	@${REINPLACE_CMD} -e \
 		'/my /s|wx-config|${WX_CONFIG:T}|g' \
+		-e '/ret/ s|urn .flags;|urn $$flags . " -std=c++11";|' \
 		${WRKDIR}/${WXSC_DISTNAME}/inc/Module/Build/Scintilla.pm
 	@${REINPLACE_CMD} -e \
 		's|_scintilla-|_scintilla| ; \
@@ -109,6 +110,7 @@ post-patch:
 		 s|-lgtk-x11-2.0.*-lpangoft2-1.0|-lm| ; \
 		 /-lgobject-2.0/d ; \
 		 /-lglib-2.0/d ; \
+		 s|{ccflags}|{ccflags} . " -std=c++11"| ; \
 		 s|\\$$ORIGIN|${SITE_ARCH}/auto/Wx/Scintilla|' \
 		${WRKDIR}/${WXSC_DISTNAME}/inc/Module/Build/Scintilla/GTK.pm
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504201027.t3KAR9qM049915>