1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= php80-readline
5 KEYWORDS= lang www php devel
7 SDESC[standard]= PHP 8.0 extension: readline library interface
8 HOMEPAGE= https://php.net/
12 SITES[main]= PHP/distributions
13 DISTFILE[1]= php-8.0.30.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 USES= php:ext,80 readline cpe
22 DISTNAME= php-8.0.30/ext/{{PHP_MODNAME}}
23 EXTRACT_HEAD[1]= {{TAR}} -xf
24 EXTRACT_TAIL[1]= php-8.0.30/ext/{{PHP_MODNAME}}
28 FPC_EQUIVALENT= devel/php80-readline
30 CONFIGURE_ARGS= --with-readline={{LOCALBASE}}
32 [FILE:58:descriptions/desc.single]
33 This package contains the readline extension for PHP 8.0.
37 216ab305737a5d392107112d618a755dc5df42058226f1670e9db90e77d777d9 10821076 php-8.0.30.tar.xz
40 [FILE:1113:patches/patch-config.m4]
41 --- config.m4.orig 2019-11-10 23:33:34 UTC
43 @@ -3,16 +3,10 @@ PHP_ARG_WITH([libedit],
44 [AS_HELP_STRING([--with-libedit],
45 [Include libedit readline replacement (CLI/CGI only)])])
47 -if test "$PHP_LIBEDIT" = "no"; then
48 PHP_ARG_WITH([readline],
49 [for readline support],
50 [AS_HELP_STRING([[--with-readline[=DIR]]],
51 [Include readline support (CLI/CGI only)])])
53 - dnl "register" the --with-readline option to prevent invalid "unknown
54 - dnl configure option" warning
55 - php_with_readline=no
58 if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
59 for i in $PHP_READLINE /usr/local /usr; do
60 @@ -78,6 +72,13 @@ if test "$PHP_READLINE" && test "$PHP_RE
61 AC_DEFINE(HAVE_HISTORY_LIST, 1, [ ])
62 AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
64 + PHP_CHECK_LIBRARY(readline, rl_completion_matches,
66 + AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
68 + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
71 elif test "$PHP_LIBEDIT" != "no"; then
72 if test "$PHP_LIBEDIT" != "yes"; then
73 AC_MSG_WARN([libedit directory ignored, rely on pkg-config])
76 [FILE:226:patches/patch-readline_cli.c]
77 --- readline_cli.c.orig 2019-11-10 23:33:34 UTC
89 #ifndef HAVE_RL_COMPLETION_MATCHES