Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2017 09:35:49 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437720 - in head/databases: . php-xapian
Message-ID:  <201704040935.v349Zn4L092910@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Apr  4 09:35:49 2017
New Revision: 437720
URL: https://svnweb.freebsd.org/changeset/ports/437720

Log:
  Add php-xapian 1.4.3 (copied from xapian-bindings)
  
  - Update to 1.4.3
  - Add BUILD_DEPENDS
  - Update WWW
  
  Changes:	https://trac.xapian.org/wiki/ReleaseOverview/1.4.3
  		https://trac.xapian.org/wiki/ReleaseOverview/1.4.2
  		https://trac.xapian.org/wiki/ReleaseOverview/1.4.1
  		https://trac.xapian.org/wiki/ReleaseOverview/1.4.0

Added:
  head/databases/php-xapian/
     - copied from r437680, head/databases/xapian-bindings/
Modified:
  head/databases/Makefile
  head/databases/php-xapian/Makefile
  head/databases/php-xapian/distinfo
  head/databases/php-xapian/pkg-descr

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Tue Apr  4 09:33:54 2017	(r437719)
+++ head/databases/Makefile	Tue Apr  4 09:35:49 2017	(r437720)
@@ -592,6 +592,7 @@
     SUBDIR += pguri
     SUBDIR += pgworksheet
     SUBDIR += php-mdcached
+    SUBDIR += php-xapian
     SUBDIR += php5-pdo_cassandra
     SUBDIR += php5-tarantool
     SUBDIR += php56-dba

Modified: head/databases/php-xapian/Makefile
==============================================================================
--- head/databases/xapian-bindings/Makefile	Tue Apr  4 05:19:52 2017	(r437680)
+++ head/databases/php-xapian/Makefile	Tue Apr  4 09:35:49 2017	(r437720)
@@ -1,49 +1,51 @@
-# Created by: Gea-Suan Lin <gslin@gslin.org>
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 # $FreeBSD$
 
-PORTNAME=	xapian-bindings
-PORTVERSION=	1.2.24
+PORTNAME=	xapian
+PORTVERSION=	1.4.3
+DISTVERSIONPREFIX=	bindings-
 CATEGORIES=	databases
 MASTER_SITES=	http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
 		LOCAL/sunpoet
+PKGNAMEPREFIX=	php-
 
 MAINTAINER=	sunpoet@FreeBSD.org
-COMMENT=	Bindings allowing Xapian to be used from various programming languages
+COMMENT=	PHP binding for Xapian
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+BUILD_DEPENDS=	xapian-core>=${PORTVERSION}:databases/xapian-core
 LIB_DEPENDS=	libxapian.so:databases/xapian-core
 
-OPTIONS_DEFINE=	DOCS LUA PHP PYTHON RUBY
-OPTIONS_DEFAULT=PHP PYTHON RUBY
-OPTIONS_SUB=	yes
+OPTIONS_DEFINE=	DOCS
 
 PORTSCOUT=	limitw:1,even
 
 CONFIGURE_ARGS=	--datarootdir=${DATADIR} --docdir=${DOCSDIR} \
-		--without-csharp --without-java --without-perl --without-tcl
+		--enable-static \
+		--with-php \
+		--without-csharp --without-java --without-lua --without-perl \
+		--without-python --without-python3 --without-ruby --without-tcl
+CONFIGURE_ENV=	PHP_CONFIG=${LOCALBASE}/bin/php-config
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
-USES=		libtool tar:xz
+USES=		libtool php:build tar:xz
 
+PLIST_FILES=	lib/php/${PHP_EXT_DIR}/xapian.a \
+		lib/php/${PHP_EXT_DIR}/xapian.so
+PORTDATA=	*
 PORTDOCS=	*
 
-LUA_CONFIGURE_ENV=	LUA="${LUA_CMD}" LUA_INC="${LUA_INCDIR}" LUA_LIB="${LUA_MODLIBDIR}" LUA_SO=.so
-LUA_CONFIGURE_WITH=	lua
-LUA_USES=		lua
-PHP_CONFIGURE_ENV=	PHP_CONFIG=${LOCALBASE}/bin/php-config
-PHP_CONFIGURE_WITH=	php
-PHP_USES=		php:build
-PYTHON_CONFIGURE_ENV=	PYTHON_LIB=${PYTHON_SITELIBDIR}
-PYTHON_CONFIGURE_WITH=	python
-PYTHON_USES=		python:2
-RUBY_CONFIGURE_WITH=	ruby
-RUBY_USE=		RUBY=yes
+.include <bsd.port.pre.mk>
+
+.if ${PHP_VER} >= 70
+CONFIGURE_ARGS+=--with-php7 --without-php
+.else
+CONFIGURE_ARGS+=--with-php --without-php7
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|-lstdc++||g' ${WRKSRC}/configure
-# do not install rdoc
-	@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' ${WRKSRC}/ruby/Makefile.in
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/databases/php-xapian/distinfo
==============================================================================
--- head/databases/xapian-bindings/distinfo	Tue Apr  4 05:19:52 2017	(r437680)
+++ head/databases/php-xapian/distinfo	Tue Apr  4 09:35:49 2017	(r437720)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1475134758
-SHA256 (xapian-bindings-1.2.24.tar.xz) = 0c2a0df0a4616e2bd8e578d372c9bb4684780573abebbd1ac515502177229965
-SIZE (xapian-bindings-1.2.24.tar.xz) = 886148
+TIMESTAMP = 1485562319
+SHA256 (xapian-bindings-1.4.3.tar.xz) = 65b5455bf81e4f39fda49a6ad99353b05889d11d7c4c2cae001a0a1e0dac0d87
+SIZE (xapian-bindings-1.4.3.tar.xz) = 1114408

Modified: head/databases/php-xapian/pkg-descr
==============================================================================
--- head/databases/xapian-bindings/pkg-descr	Tue Apr  4 05:19:52 2017	(r437680)
+++ head/databases/php-xapian/pkg-descr	Tue Apr  4 09:35:49 2017	(r437720)
@@ -1,4 +1,3 @@
-SWIG and JNI bindings allowing Xapian to be used from various other programming
-languages.
+PHP binding for Xapian
 
-WWW: http://www.xapian.org/
+WWW: https://xapian.org/



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