From owner-svn-ports-all@FreeBSD.ORG Thu Nov 22 18:51:51 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01008A97; Thu, 22 Nov 2012 18:51:50 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C8F608FC0C; Thu, 22 Nov 2012 18:51:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAMIpoDm043814; Thu, 22 Nov 2012 18:51:50 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAMIpowG043808; Thu, 22 Nov 2012 18:51:50 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201211221851.qAMIpowG043808@svn.freebsd.org> From: Pawel Pekala Date: Thu, 22 Nov 2012 18:51:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307663 - in head/devel: . pecl-inotify pecl-inotify/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2012 18:51:51 -0000 Author: pawel Date: Thu Nov 22 18:51:49 2012 New Revision: 307663 URL: http://svnweb.freebsd.org/changeset/ports/307663 Log: The inotify extension allows to use inotify functions in a PHP script. WWW: http://pecl.php.net/package/inotify PR: ports/169506 Submitted by: Gasol Wu Feature safe: yes Added: head/devel/pecl-inotify/ head/devel/pecl-inotify/Makefile (contents, props changed) head/devel/pecl-inotify/distinfo (contents, props changed) head/devel/pecl-inotify/files/ head/devel/pecl-inotify/files/patch-config.m4 (contents, props changed) head/devel/pecl-inotify/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Nov 22 18:21:12 2012 (r307662) +++ head/devel/Makefile Thu Nov 22 18:51:49 2012 (r307663) @@ -3067,6 +3067,7 @@ SUBDIR += pecl-hidef SUBDIR += pecl-htscanner SUBDIR += pecl-inclued + SUBDIR += pecl-inotify SUBDIR += pecl-intl SUBDIR += pecl-libevent SUBDIR += pecl-mcve Added: head/devel/pecl-inotify/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-inotify/Makefile Thu Nov 22 18:51:49 2012 (r307663) @@ -0,0 +1,25 @@ +# Created by: Gasol Wu +# $FreeBSD$ + +PORTNAME= inotify +PORTVERSION= 0.1.6 +CATEGORIES= devel +MASTER_SITES= http://pecl.php.net/get/ +PKGNAMEPREFIX= pecl- +EXTRACT_SUFX= .tgz +DIST_SUBDIR= PECL + +MAINTAINER= gasol.wu@gmail.com +COMMENT= This extension allows to use inotify functions in a PHP scripts + +LICENSE= PHP301 + +LIB_DEPENDS= inotify:${PORTSDIR}/devel/libinotify + +USE_PHP= yes +USE_PHP_BUILD= yes +USE_PHPIZE= yes +USE_PHPEXT= yes +IGNORE_WITH_PHP=4 + +.include Added: head/devel/pecl-inotify/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-inotify/distinfo Thu Nov 22 18:51:49 2012 (r307663) @@ -0,0 +1,2 @@ +SHA256 (PECL/inotify-0.1.6.tgz) = 979f80a25d4eb0de282617ffc0df46f07346a8383f310b9b943e48992e5b494e +SIZE (PECL/inotify-0.1.6.tgz) = 8568 Added: head/devel/pecl-inotify/files/patch-config.m4 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-inotify/files/patch-config.m4 Thu Nov 22 18:51:49 2012 (r307663) @@ -0,0 +1,67 @@ +--- ./config.m4.orig 2012-05-04 17:51:20.000000000 +0800 ++++ ./config.m4 2012-06-27 12:05:19.620198000 +0800 +@@ -1,22 +1,52 @@ + dnl $Id: config.m4 262896 2008-07-17 19:11:16Z lbarnaud $ + dnl config.m4 for extension inotify + +-PHP_ARG_ENABLE(inotify, whether to enable inotify support, +-[ --enable-inotify Enable inotify support]) ++PHP_ARG_WITH(inotify, whether to enable inotify support, ++[ --with-inotify Enable inotify support]) + + if test "$PHP_INOTIFY" != "no"; then ++ SEARCH_PATH="/usr /usr/local" ++ SEARCH_FOR="/sys/inotify.h" + +- AC_TRY_RUN([ +- #include +- void testfunc(int (*passedfunc)()) { +- } +- int main() { +- testfunc(inotify_init); +- return 0; +- } +- ],[],[ +- AC_MSG_ERROR(Your system does not support inotify) ++ if test "$PHP_INOTIFY" = "yes"; then ++ AC_MSG_CHECKING([for libinotify headers in default path]) ++ for i in $SEARCH_PATH ; do ++ if test -r $i/include/$SEARCH_FOR; then ++ LIBINOTIFY_DIR=$i ++ AC_MSG_RESULT(found in $i) ++ fi ++ done ++ else ++ AC_MSG_CHECKING([for libinotify headers in $PHP_INOTIFY]) ++ if test -r $PHP_INOTIFY/$SEARCH_FOR; then ++ LIBINOTIFY_DIR=$PHP_INOTIFY ++ AC_MSG_RESULT([found]) ++ fi ++ fi ++ ++ if test -z "$LIBINOTIFY_DIR"; then ++ AC_MSG_RESULT([not found]) ++ AC_MSG_ERROR([Cannot find libevent headers]) ++ fi ++ ++ PHP_ADD_INCLUDE($LIBINOTIFY_DIR/include) ++ ++ LIBNAME=inotify ++ LIBSYMBOL=inotify_init ++ ++ if test "x$PHP_LIBDIR" = "x"; then ++ PHP_LIBDIR=lib ++ fi ++ ++ PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, ++ [ ++ PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $LIBINOTIFY_DIR/$PHP_LIBDIR, LIBINOTIFY_SHARED_LIBADD) ++ ],[ ++ AC_MSG_ERROR([Your system does not support inotify]) ++ ],[ ++ -L$LIBINOTIFY_DIR/$PHP_LIBDIR + ]) + ++ PHP_SUBST(LIBINOTIFY_SHARED_LIBADD) + PHP_NEW_EXTENSION(inotify, inotify.c, $ext_shared) + fi Added: head/devel/pecl-inotify/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pecl-inotify/pkg-descr Thu Nov 22 18:51:49 2012 (r307663) @@ -0,0 +1,3 @@ +The inotify extension allows to use inotify functions in a PHP script. + +WWW: http://pecl.php.net/package/inotify