Bug 173574 - [NEW PORT] www/pecl-solr: An Apache Solr PHP extension
Summary: [NEW PORT] www/pecl-solr: An Apache Solr PHP extension
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 08:20 UTC by Hung-Yi Chen
Modified: 2013-02-01 08:00 UTC (History)
0 users

See Also:


Attachments
pecl-solr.shar (1.67 KB, text/plain)
2012-11-12 08:20 UTC, Hung-Yi Chen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hung-Yi Chen 2012-11-12 08:20:02 UTC
	The Apache Solr PHP extension is an extremely fast,
	light-weight, feature-rich library that allows PHP
	applications to communicate easily and efficiently
	with Apache Solr server instances using an object-oriented API.

	WWW: http://pecl.php.net/package/solr/
Comment 1 dfilter service freebsd_committer freebsd_triage 2013-02-01 07:56:47 UTC
Author: vanilla
Date: Fri Feb  1 07:56:38 2013
New Revision: 311357
URL: http://svnweb.freebsd.org/changeset/ports/311357

Log:
  Add pecl-solr 1.0.2, the Apache Solr PHP extension.
  
  PR:		ports/173574
  Submitted by:	Hung-Yi Chen <gaod@hychen.org>

Added:
  head/www/pecl-solr/
  head/www/pecl-solr/Makefile   (contents, props changed)
  head/www/pecl-solr/distinfo   (contents, props changed)
  head/www/pecl-solr/files/
  head/www/pecl-solr/files/patch-config.m4   (contents, props changed)
  head/www/pecl-solr/files/patch-php_solr.c   (contents, props changed)
  head/www/pecl-solr/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri Feb  1 07:43:25 2013	(r311356)
+++ head/www/Makefile	Fri Feb  1 07:56:38 2013	(r311357)
@@ -1383,6 +1383,7 @@
     SUBDIR += pecl-APC
     SUBDIR += pecl-amfext
     SUBDIR += pecl-http
+    SUBDIR += pecl-solr
     SUBDIR += pecl-sphinx
     SUBDIR += pecl-swish
     SUBDIR += pecl-yaf

Added: head/www/pecl-solr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/pecl-solr/Makefile	Fri Feb  1 07:56:38 2013	(r311357)
@@ -0,0 +1,20 @@
+# Created by: Hung-Yi Chen <gaod@hychen.org>
+# $FreeBSD$
+
+PORTNAME=	solr
+PORTVERSION=	1.0.2
+CATEGORIES=	www
+MASTER_SITES=	http://pecl.php.net/get/
+PKGNAMEPREFIX=	pecl-
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	gaod@hychen.org
+COMMENT=	The Apache Solr PHP extension
+
+LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl \
+    		xml2:${PORTSDIR}/textproc/libxml2
+
+USE_PHP=	yes
+USE_PHPEXT=	yes
+
+.include <bsd.port.mk>

Added: head/www/pecl-solr/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/pecl-solr/distinfo	Fri Feb  1 07:56:38 2013	(r311357)
@@ -0,0 +1,2 @@
+SHA256 (solr-1.0.2.tgz) = d5868daab01290f820b4b754e3c560dc6e983f82d9f6640b3146cede4d9a8581
+SIZE (solr-1.0.2.tgz) = 101292

Added: head/www/pecl-solr/files/patch-config.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/pecl-solr/files/patch-config.m4	Fri Feb  1 07:56:38 2013	(r311357)
@@ -0,0 +1,36 @@
+--- config.m4.orig	2011-11-29 10:49:53.000000000 +0800
++++ config.m4	2013-01-27 23:53:10.000000000 +0800
+@@ -56,8 +56,8 @@ else
+ fi
+ 
+ PHP_ADD_INCLUDE($CURL_DIR/include)
+-PHP_EVAL_LIBLINE($CURL_LIBS, CURL_SHARED_LIBADD)
+-PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, CURL_SHARED_LIBADD)
++PHP_EVAL_LIBLINE($CURL_LIBS, SOLR_SHARED_LIBADD)
++PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, SOLR_SHARED_LIBADD)
+ 
+ PHP_ARG_ENABLE(solr, whether to enable the Solr extension,
+ [  --enable-solr         Enable solr support])
+@@ -72,11 +72,11 @@ dnl Setting up the apache Solr extension
+ if test "$PHP_SOLR" != "no"; then
+ 
+ 	if test "$PHP_CURL" = "no"; then   
+-    	AC_MSG_ERROR([SOAP extension requires curl extension, add --with-curl])                
++    	AC_MSG_ERROR([SOLR extension requires curl extension, add --with-curl])                
+ 	fi
+   
+ 	if test "$PHP_LIBXML" = "no"; then   
+-    	AC_MSG_ERROR([SOAP extension requires LIBXML extension, add --enable-libxml])                
++    	AC_MSG_ERROR([SOLR extension requires LIBXML extension, add --enable-libxml])                
+ 	fi
+ 
+ 	PHP_SETUP_LIBXML(SOLR_SHARED_LIBADD, [
+@@ -100,7 +100,7 @@ if test "$PHP_SOLR" != "no"; then
+                              solr_functions_response.c \
+     						 solr_functions_debug.c], 
+     						 $ext_shared)
+-    PHP_SUBST(SOAP_SHARED_LIBADD)
++    PHP_SUBST(SOLR_SHARED_LIBADD)
+   ], [
+     AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
+   ])

Added: head/www/pecl-solr/files/patch-php_solr.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/pecl-solr/files/patch-php_solr.c	Fri Feb  1 07:56:38 2013	(r311357)
@@ -0,0 +1,11 @@
+--- php_solr.c.orig	2013-01-28 00:00:42.000000000 +0800
++++ php_solr.c	2013-01-28 00:00:54.000000000 +0800
+@@ -879,8 +879,6 @@ static zend_function_entry solr_utils_me
+ 
+ /* {{{ solr_module_deps  */
+ static zend_module_dep solr_module_deps[] = {
+-    ZEND_MOD_REQUIRED(PHP_CURL_EXTENSION_NAME)
+-    ZEND_MOD_REQUIRED(PHP_LIBXML_EXTENSION_NAME)
+ 
+     { NULL, NULL, NULL }
+ };

Added: head/www/pecl-solr/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/pecl-solr/pkg-descr	Fri Feb  1 07:56:38 2013	(r311357)
@@ -0,0 +1,6 @@
+The Apache Solr PHP extension is an extremely fast,
+light-weight, feature-rich library that allows PHP
+applications to communicate easily and efficiently
+with Apache Solr server instances using an object-oriented API.
+
+WWW: http://pecl.php.net/package/solr/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 Vanilla I. Shu freebsd_committer freebsd_triage 2013-02-01 07:57:09 UTC
State Changed
From-To: open->closed

Committed, thanks.