[Midnightbsd-cvs] mports [20657] trunk/devel: add readline
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Nov 6 18:05:45 EST 2015
Revision: 20657
http://svnweb.midnightbsd.org/mports/?rev=20657
Author: laffer1
Date: 2015-11-06 18:05:45 -0500 (Fri, 06 Nov 2015)
Log Message:
-----------
add readline
Modified Paths:
--------------
trunk/devel/Makefile
Added Paths:
-----------
trunk/devel/php55-readline/
trunk/devel/php55-readline/Makefile
trunk/devel/php55-readline/files/
trunk/devel/php55-readline/files/patch-config.m4
trunk/devel/php55-readline/files/patch-readline_cli.c
trunk/devel/php56-readline/
trunk/devel/php56-readline/Makefile
trunk/devel/php56-readline/files/
trunk/devel/php56-readline/files/patch-config.m4
trunk/devel/php56-readline/files/patch-readline_cli.c
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2015-11-06 22:57:33 UTC (rev 20656)
+++ trunk/devel/Makefile 2015-11-06 23:05:45 UTC (rev 20657)
@@ -396,10 +396,12 @@
SUBDIR += php55-gettext
SUBDIR += php55-json
SUBDIR += php55-pcntl
+SUBDIR += php55-readline
SUBDIR += php55-tokenizer
SUBDIR += php56-gettext
SUBDIR += php56-json
SUBDIR += php56-pcntl
+SUBDIR += php56-readline
SUBDIR += php56-tokenizer
SUBDIR += physfs
SUBDIR += pkgconf
Added: trunk/devel/php55-readline/Makefile
===================================================================
--- trunk/devel/php55-readline/Makefile (rev 0)
+++ trunk/devel/php55-readline/Makefile 2015-11-06 23:05:45 UTC (rev 20657)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php55
+
+PKGNAMESUFFIX= -readline
+
+.include "${MASTERDIR}/Makefile"
Property changes on: trunk/devel/php55-readline/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/php55-readline/files/patch-config.m4
===================================================================
--- trunk/devel/php55-readline/files/patch-config.m4 (rev 0)
+++ trunk/devel/php55-readline/files/patch-config.m4 2015-11-06 23:05:45 UTC (rev 20657)
@@ -0,0 +1,38 @@
+--- config.m4.orig 2013-08-20 06:46:43.000000000 +0200
++++ config.m4 2013-08-27 16:01:29.000000000 +0200
+@@ -5,13 +5,8 @@
+ PHP_ARG_WITH(libedit,for libedit readline replacement,
+ [ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)])
+
+-if test "$PHP_LIBEDIT" = "no"; then
+ PHP_ARG_WITH(readline,for readline support,
+ [ --with-readline[=DIR] Include readline support (CLI/CGI only)])
+-else
+- dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
+- php_with_readline=no
+-fi
+
+ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
+ for i in $PHP_READLINE /usr/local /usr; do
+@@ -67,6 +62,13 @@
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+ ])
+
++ PHP_CHECK_LIBRARY(readline, rl_completion_matches,
++ [
++ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
++ ],[],[
++ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
++ ])
++
+ AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
+
+ elif test "$PHP_LIBEDIT" != "no"; then
+@@ -118,7 +120,6 @@
+ fi
+
+ if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
+- AC_CHECK_FUNCS([rl_completion_matches])
+ PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli)
+ PHP_SUBST(READLINE_SHARED_LIBADD)
+ fi
Property changes on: trunk/devel/php55-readline/files/patch-config.m4
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/php55-readline/files/patch-readline_cli.c
===================================================================
--- trunk/devel/php55-readline/files/patch-readline_cli.c (rev 0)
+++ trunk/devel/php55-readline/files/patch-readline_cli.c 2015-11-06 23:05:45 UTC (rev 20657)
@@ -0,0 +1,13 @@
+--- readline_cli.c.orig 2012-03-02 16:40:26.000000000 +0100
++++ readline_cli.c 2012-03-02 16:40:43.000000000 +0100
+@@ -19,6 +19,10 @@
+
+ /* $Id: readline_cli.c 321634 2012-01-01 13:15:04Z felipe $ */
+
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ #include "php.h"
+
+ #ifndef HAVE_RL_COMPLETION_MATCHES
Property changes on: trunk/devel/php55-readline/files/patch-readline_cli.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/php56-readline/Makefile
===================================================================
--- trunk/devel/php56-readline/Makefile (rev 0)
+++ trunk/devel/php56-readline/Makefile 2015-11-06 23:05:45 UTC (rev 20657)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php56
+
+PKGNAMESUFFIX= -readline
+
+.include "${MASTERDIR}/Makefile"
Property changes on: trunk/devel/php56-readline/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/php56-readline/files/patch-config.m4
===================================================================
--- trunk/devel/php56-readline/files/patch-config.m4 (rev 0)
+++ trunk/devel/php56-readline/files/patch-config.m4 2015-11-06 23:05:45 UTC (rev 20657)
@@ -0,0 +1,38 @@
+--- config.m4.orig 2013-08-20 06:46:43.000000000 +0200
++++ config.m4 2013-08-27 16:01:29.000000000 +0200
+@@ -5,13 +5,8 @@
+ PHP_ARG_WITH(libedit,for libedit readline replacement,
+ [ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)])
+
+-if test "$PHP_LIBEDIT" = "no"; then
+ PHP_ARG_WITH(readline,for readline support,
+ [ --with-readline[=DIR] Include readline support (CLI/CGI only)])
+-else
+- dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
+- php_with_readline=no
+-fi
+
+ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
+ for i in $PHP_READLINE /usr/local /usr; do
+@@ -67,6 +62,13 @@
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+ ])
+
++ PHP_CHECK_LIBRARY(readline, rl_completion_matches,
++ [
++ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
++ ],[],[
++ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
++ ])
++
+ AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
+
+ elif test "$PHP_LIBEDIT" != "no"; then
+@@ -118,7 +120,6 @@
+ fi
+
+ if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
+- AC_CHECK_FUNCS([rl_completion_matches])
+ PHP_NEW_EXTENSION(readline, readline.c readline_cli.c, $ext_shared, cli)
+ PHP_SUBST(READLINE_SHARED_LIBADD)
+ fi
Property changes on: trunk/devel/php56-readline/files/patch-config.m4
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/php56-readline/files/patch-readline_cli.c
===================================================================
--- trunk/devel/php56-readline/files/patch-readline_cli.c (rev 0)
+++ trunk/devel/php56-readline/files/patch-readline_cli.c 2015-11-06 23:05:45 UTC (rev 20657)
@@ -0,0 +1,13 @@
+--- readline_cli.c.orig 2012-03-02 16:40:26.000000000 +0100
++++ readline_cli.c 2012-03-02 16:40:43.000000000 +0100
+@@ -19,6 +19,10 @@
+
+ /* $Id: readline_cli.c 321634 2012-01-01 13:15:04Z felipe $ */
+
++#ifdef HAVE_CONFIG_H
++#include "config.h"
++#endif
++
+ #include "php.h"
+
+ #ifndef HAVE_RL_COMPLETION_MATCHES
Property changes on: trunk/devel/php56-readline/files/patch-readline_cli.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list