Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2015 17:48:09 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r390654 - in head/ports-mgmt/portrac: . files
Message-ID:  <201506261748.t5QHm9Hj069486@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Jun 26 17:48:08 2015
New Revision: 390654
URL: https://svnweb.freebsd.org/changeset/ports/390654

Log:
  - This uses c++11 features (for example, std::to_string), so add corresponding compiler requirements and flags
  - Add patches to fix missing includes (couldn't find any upstream contants to submit these)
  - Unfortunately, it's still BROKEN on 9.x as gcc 4.8's stdlibc++ doesn't seem to provide to_string, so mark it as such
  
  Submitted by:	pkg-fallout
  Approved by:	portmgr blanket

Added:
  head/ports-mgmt/portrac/files/
  head/ports-mgmt/portrac/files/patch-PortChecker.cc   (contents, props changed)
  head/ports-mgmt/portrac/files/patch-Preferences.cc   (contents, props changed)
Modified:
  head/ports-mgmt/portrac/Makefile

Modified: head/ports-mgmt/portrac/Makefile
==============================================================================
--- head/ports-mgmt/portrac/Makefile	Fri Jun 26 17:26:07 2015	(r390653)
+++ head/ports-mgmt/portrac/Makefile	Fri Jun 26 17:48:08 2015	(r390654)
@@ -11,16 +11,19 @@ COMMENT=	Simple GUI tool for tracking po
 
 LICENSE=	BSD2CLAUSE
 
+BROKEN_FreeBSD_9=	does not build (lacking c++11 support)
+
 PLIST_FILES=	bin/portrac \
 		share/portrac/portrac.png \
 		share/portrac/up-to-date.png \
 		share/portrac/updates-available.png
 
-USES=		qmake tar:bzip2
+USES=		compiler:c++11-lib qmake tar:bzip2
+USE_CXXSTD=	c++11
 USE_QT5=	widgets buildtools_build
 
 do-install:
-		${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/portrac ${STAGEDIR}${PREFIX}/bin && \
+	${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/portrac ${STAGEDIR}${PREFIX}/bin && \
 		${MKDIR} ${STAGEDIR}${DATADIR} && \
 		${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/*.png ${STAGEDIR}${DATADIR}
 

Added: head/ports-mgmt/portrac/files/patch-PortChecker.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/portrac/files/patch-PortChecker.cc	Fri Jun 26 17:48:08 2015	(r390654)
@@ -0,0 +1,11 @@
+--- PortChecker.cc.orig	2014-09-29 18:19:21 UTC
++++ PortChecker.cc
+@@ -31,6 +31,8 @@
+ #include <string>
+ #include <algorithm>
+ #include <iostream>
++#include <cstdio>
++#include <cerrno>
+ 
+ #include <QStringList>
+ 

Added: head/ports-mgmt/portrac/files/patch-Preferences.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/portrac/files/patch-Preferences.cc	Fri Jun 26 17:48:08 2015	(r390654)
@@ -0,0 +1,10 @@
+--- Preferences.cc.orig	2014-09-29 18:19:21 UTC
++++ Preferences.cc
+@@ -29,6 +29,7 @@
+ #include <map>
+ #include <iostream>
+ #include <fstream>
++#include <cstdlib>
+ 
+ #include "Preferences.hh"
+ 



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