Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2015 18:19:16 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384747 - in head/chinese/ibus-libpinyin: . files
Message-ID:  <201504251819.t3PIJGO9060578@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Apr 25 18:19:15 2015
New Revision: 384747
URL: https://svnweb.freebsd.org/changeset/ports/384747

Log:
  Unbreak build on FreeBSD 8.x/9.x and DragonFly
  
  ./PYSignal.h:35:22: error: expected namespace name
  using namespace std::placeholders;
                  ~~~~~^
  ./PYSignal.h:49:18: error: no type named 'function' in namespace 'std'
      typedef std::function<R()> func_type;
              ~~~~~^
  ./PYEditor.h:37:14: error: no type named 'shared_ptr' in namespace 'std'
  typedef std::shared_ptr<Editor> EditorPtr;
          ~~~~~^
  PYLibPinyin.cc:223:54: error: 'getline' was not declared in this scope
       while ((read = getline (&linebuf, &size, dictfile)) != -1) {
                                                        ^
  PR:		199408
  Reported by:	pkg-fallout, DPorts
  Submitted by:	Henry Hu <henry.hu.sh@gmail.com> (maintainer)

Added:
  head/chinese/ibus-libpinyin/files/
  head/chinese/ibus-libpinyin/files/patch-src_PYLibPinyin.cc   (contents, props changed)
Modified:
  head/chinese/ibus-libpinyin/Makefile

Modified: head/chinese/ibus-libpinyin/Makefile
==============================================================================
--- head/chinese/ibus-libpinyin/Makefile	Sat Apr 25 17:30:29 2015	(r384746)
+++ head/chinese/ibus-libpinyin/Makefile	Sat Apr 25 18:19:15 2015	(r384747)
@@ -15,7 +15,7 @@ LIB_DEPENDS=	libsqlite3.so:${PORTSDIR}/d
 		libibus-1.0.so:${PORTSDIR}/textproc/ibus \
 		libpinyin.so:${PORTSDIR}/chinese/libpinyin
 
-USES=		compiler:c++0x gmake python pkgconfig gettext
+USES=		compiler:c++11-lib gmake python pkgconfig gettext
 USE_GNOME=	glib20
 
 WRKSRC=	${WRKDIR}/${DISTNAME}

Added: head/chinese/ibus-libpinyin/files/patch-src_PYLibPinyin.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/ibus-libpinyin/files/patch-src_PYLibPinyin.cc	Sat Apr 25 18:19:15 2015	(r384747)
@@ -0,0 +1,11 @@
+--- src/PYLibPinyin.cc.orig	2015-01-23 04:57:48 UTC
++++ src/PYLibPinyin.cc
+@@ -21,6 +21,8 @@
+ 
+ #include "PYLibPinyin.h"
+ 
++#define _WITH_GETLINE
++#include <stdio.h>
+ #include <string.h>
+ #include <pinyin.h>
+ #include "PYPConfig.h"



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