View | Details | Raw Unified | Return to bug 205749 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-13 / +6 lines)
Lines 1-9 Link Here
1
# Created by: Gasol Wu <gasol.wu@gmail.com>
1
# Created by: Gasol Wu <gasol.wu@gmail.com>
2
# $FreeBSD: head/databases/php5-pdo_cassandra/Makefile 401553 2015-11-13 22:13:24Z antoine $
2
# $FreeBSD: head/databases/php5-pdo_cassandra/Makefile 367888 2014-09-10 20:50:31Z gerald $
3
3
4
PORTNAME=	pdo_cassandra
4
PORTNAME=	pdo_cassandra
5
PORTVERSION=	0.2.1
5
PORTVERSION=	0.2.1
6
PORTREVISION=	4
6
PORTREVISION=	5
7
CATEGORIES=	databases
7
CATEGORIES=	databases
8
PKGNAMEPREFIX=	php5-
8
PKGNAMEPREFIX=	php5-
9
9
Lines 12-21 Link Here
12
12
13
LICENSE=	APACHE20
13
LICENSE=	APACHE20
14
14
15
BROKEN=		fails to compile
16
DEPRECATED=	PHP 5.4 EOL reached
17
EXPIRATION_DATE=	2016-01-15
18
19
LIB_DEPENDS=	libboost_iostreams.so:${PORTSDIR}/devel/boost-libs
15
LIB_DEPENDS=	libboost_iostreams.so:${PORTSDIR}/devel/boost-libs
20
16
21
USE_GITHUB=	yes
17
USE_GITHUB=	yes
Lines 23-35 Link Here
23
GH_PROJECT=	php-${PORTNAME}
19
GH_PROJECT=	php-${PORTNAME}
24
GH_TAGNAME=	7debd5b
20
GH_TAGNAME=	7debd5b
25
21
26
USES=		pkgconfig
22
USES=		compiler:c++11-lang pkgconfig
23
USE_CXXSTD=	c++11
27
USE_PHP_BUILD=	yes
24
USE_PHP_BUILD=	yes
28
USE_PHP=	pdo
25
USE_PHP=	pdo
29
USE_PHPEXT=	yes
26
USE_PHPEXT=	yes
30
PHP_DEFAULT=	5.4
31
IGNORE_WITH_PHP=52
32
USE_GCC=	yes
33
27
34
.include <bsd.port.pre.mk>
28
.include <bsd.port.pre.mk>
35
.include "${PORTSDIR}/devel/thrift/bsd.thrift.mk"
29
.include "${PORTSDIR}/devel/thrift/bsd.thrift.mk"
Lines 46-54 Link Here
46
.endif
40
.endif
47
41
48
post-configure:
42
post-configure:
49
.if ${THRIFT_PORTVERSION} == "0.8.0"
50
	${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h
51
	${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp
43
	${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.cpp
52
.endif
44
	${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/Cassandra.h
45
	${REINPLACE_CMD} 's/\([^:]\)apache::thrift/\1 ::apache::thrift/g' ${WRKSRC}/gen-cpp/cassandra_types.cpp
53
46
54
.include <bsd.port.post.mk>
47
.include <bsd.port.post.mk>
(-)./files/patch-config.m4 (-3 / +3 lines)
Lines 1-6 Link Here
1
--- ./config.m4.orig	2011-12-30 17:41:22.000000000 +0800
1
--- config.m4.orig	2011-12-30 09:41:22 UTC
2
+++ ./config.m4	2013-11-14 21:46:12.000000000 +0800
2
+++ config.m4
3
@@ -38,8 +38,18 @@
3
@@ -38,8 +38,18 @@ if test "x${PHP_PDO_CASSANDRA}" != "xno"
4
     PHP_THRIFT_VERSION=`${PKG_CONFIG} thrift --modversion`
4
     PHP_THRIFT_VERSION=`${PKG_CONFIG} thrift --modversion`
5
 
5
 
6
     AC_MSG_RESULT([found version ${PHP_THRIFT_VERSION}])
6
     AC_MSG_RESULT([found version ${PHP_THRIFT_VERSION}])

Return to bug 205749