Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2014 15:21:59 +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: r345736 - in head/net: . pecl-apn pecl-apn/files
Message-ID:  <201402231521.s1NFLx5A091576@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Feb 23 15:21:58 2014
New Revision: 345736
URL: http://svnweb.freebsd.org/changeset/ports/345736
QAT: https://qat.redports.org/buildarchive/r345736/

Log:
  - Add pecl-apn 1.0.3
  - While I'm here, add IGNORE_WITH_PHP
  
  apn is a PHP extension to introduce simple yet powerful interface for sending
  push notifications to iOS and OS X devices from within your PHP code.
  
  WWW: http://libcapn.org/php-apn/
  
  PR:		ports/186938
  Submitted by:	Gasol Wu <gasol.wu@gmail.com>

Added:
  head/net/pecl-apn/
  head/net/pecl-apn/Makefile   (contents, props changed)
  head/net/pecl-apn/distinfo   (contents, props changed)
  head/net/pecl-apn/files/
  head/net/pecl-apn/files/patch-config.m4   (contents, props changed)
  head/net/pecl-apn/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Sun Feb 23 15:21:17 2014	(r345735)
+++ head/net/Makefile	Sun Feb 23 15:21:58 2014	(r345736)
@@ -855,6 +855,7 @@
     SUBDIR += pear-XML_RPC
     SUBDIR += pear-XML_RPC2
     SUBDIR += pecl-amqp
+    SUBDIR += pecl-apn
     SUBDIR += pecl-cvsclient
     SUBDIR += pecl-geoip
     SUBDIR += pecl-gupnp

Added: head/net/pecl-apn/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/Makefile	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,25 @@
+# Created by: Gasol Wu <gasol.wu@gmail.com>
+# $FreeBSD$
+
+PORTNAME=	apn
+PORTVERSION=	1.0.3
+CATEGORIES=	net pear
+MASTER_SITES=	http://pecl.php.net/get/
+PKGNAMEPREFIX=	pecl-
+EXTRACT_SUFX=	.tgz
+DIST_SUBDIR=	PECL
+
+MAINTAINER=	gasol.wu@gmail.com
+COMMENT=	Extension to interact with Apple Push Notification Service
+
+LICENSE=	PHP301
+
+LIB_DEPENDS=	libcapn.so:${PORTSDIR}/net/libcapn
+
+USE_PHP=	yes
+USE_PHPIZE=	yes
+USE_PHPEXT=	yes
+CONFIGURE_ARGS=	--with-apn=${LOCALBASE}
+IGNORE_WITH_PHP=52
+
+.include <bsd.port.mk>

Added: head/net/pecl-apn/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/distinfo	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,2 @@
+SHA256 (PECL/apn-1.0.3.tgz) = 1d554f1a79dbc86212e0abd97b380ae9ee66e073969deb522941bc7866a3c3ca
+SIZE (PECL/apn-1.0.3.tgz) = 14406

Added: head/net/pecl-apn/files/patch-config.m4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/files/patch-config.m4	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,31 @@
+--- ./config.m4.orig	2014-02-20 16:43:19.000000000 +0800
++++ ./config.m4	2014-02-21 09:06:40.000000000 +0800
+@@ -37,16 +37,16 @@
+       AC_MSG_ERROR([libcapn is not found. Please visit to http://www.libcapn.org/php-apn for more information])
+     fi
+ 
+-    APN_INCDIR=$APN_DIR/include/capn
++    APN_INCDIR=$APN_DIR/include
+ 
+     SEARCH_LIBS_PATH="/usr/local/lib /usr/lib /usr/lib64 /usr/local/lib64"
+     SEARCH_LIB_FILE=libcapn.$SHLIB_SUFFIX_NAME
+-    if test -r $PHP_APN/capn/$SEARCH_LIB_FILE; then
++    if test -r $PHP_APN/$SEARCH_LIB_FILE; then
+         APN_LIBDIR=$PHP_APN
+     else
+       AC_MSG_CHECKING([for $SEARCH_LIB_FILE in default path])
+       for i in $SEARCH_LIBS_PATH; do
+-        if test -r $i/capn/$SEARCH_LIB_FILE; then
++        if test -r $i/$SEARCH_LIB_FILE; then
+            APN_LIBDIR=$i
+            AC_MSG_RESULT(found in $i)
+            break
+@@ -59,7 +59,7 @@
+       AC_MSG_ERROR([libcapn is not found. Please visit to http://www.libcapn.org/php-apn for more information])
+     fi
+ 
+-    APN_LIBDIR=$APN_LIBDIR/capn
++    APN_LIBDIR=$APN_LIBDIR
+ 
+     PHP_ADD_INCLUDE($APN_INCDIR)
+     PHP_ADD_LIBRARY_WITH_PATH(capn, $APN_LIBDIR, APN_SHARED_LIBADD)

Added: head/net/pecl-apn/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pecl-apn/pkg-descr	Sun Feb 23 15:21:58 2014	(r345736)
@@ -0,0 +1,4 @@
+apn is a PHP extension to introduce simple yet powerful interface for sending
+push notifications to iOS and OS X devices from within your PHP code.
+
+WWW: http://libcapn.org/php-apn/



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