ports/163946: [MAINTAINER] databases/php5-pdo_cassandra: fix build with thrift 0.8.0
Gasol Wu
gasol.wu at gmail.com
Mon Jan 9 08:50:11 UTC 2012
>Number: 163946
>Category: ports
>Synopsis: [MAINTAINER] databases/php5-pdo_cassandra: fix build with thrift 0.8.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 09 08:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Gasol Wu
>Release: FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD aqua 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
patch to resolve THRIFT-1487 issue
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- php5-pdo_cassandra-0.2.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/php5-pdo_cassandra/Makefile /nfs/home/10.4.1.1/vol/home/pixuser/gasol/ports/databases/php5-pdo_cassandra/Makefile
--- /usr/ports/databases/php5-pdo_cassandra/Makefile 2012-01-03 19:50:35.000000000 +0800
+++ /nfs/home/10.4.1.1/vol/home/pixuser/gasol/ports/databases/php5-pdo_cassandra/Makefile 2012-01-09 16:31:49.553705000 +0800
@@ -7,6 +7,7 @@
PORTNAME= pdo_cassandra
PORTVERSION= 0.2.1
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://github.com/${GITHUB_USER}/php-${PORTNAME}/tarball/${GITREVISION}/
PKGNAMEPREFIX= php5-
@@ -30,4 +31,17 @@
DEFAULT_PHP_VER=5
IGNORE_WITH_PHP=4 52
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if exists(${PORTSDIR}/devel/thrift/bsd.thrift.mk)
+.include "${PORTSDIR}/devel/thrift/bsd.thrift.mk"
+.endif
+
+post-configure:
+.if defined(THRIFT_PORTVERSION)
+. if ${THRIFT_PORTVERSION} == 0.8.0
+ ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h
+ ${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp
+. endif
+.endif
+
+.include <bsd.port.post.mk>
--- php5-pdo_cassandra-0.2.1_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list