Ravenports generated: 13 Dec 2023 00:13
[ravenports.git] / bucket_EB / php80-readline
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php80-readline
4 VERSION=                8.0.30
5 KEYWORDS=               lang www php devel
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 8.0 extension: readline library interface
8 HOMEPAGE=               https://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-8.0.30.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   php:ext,80 readline cpe
21
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}}
25
26 CPE_PRODUCT=            php
27 CPE_VENDOR=             php
28 FPC_EQUIVALENT=         devel/php80-readline
29
30 CONFIGURE_ARGS=         --with-readline={{LOCALBASE}}
31
32 [FILE:58:descriptions/desc.single]
33 This package contains the readline extension for PHP 8.0.
34
35
36 [FILE:96:distinfo]
37 216ab305737a5d392107112d618a755dc5df42058226f1670e9db90e77d777d9     10821076 php-8.0.30.tar.xz
38
39
40 [FILE:1113:patches/patch-config.m4]
41 --- config.m4.orig      2019-11-10 23:33:34 UTC
42 +++ config.m4
43 @@ -3,16 +3,10 @@ PHP_ARG_WITH([libedit],
44    [AS_HELP_STRING([--with-libedit],
45      [Include libedit readline replacement (CLI/CGI only)])])
46  
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)])])
52 -else
53 -  dnl "register" the --with-readline option to prevent invalid "unknown
54 -  dnl configure option" warning
55 -  php_with_readline=no
56 -fi
57  
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, [ ])
63  
64 +  PHP_CHECK_LIBRARY(readline, rl_completion_matches,
65 +  [
66 +    AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
67 +  ],[],[
68 +    -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
69 +  ])
70 +
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])
74
75
76 [FILE:226:patches/patch-readline_cli.c]
77 --- readline_cli.c.orig 2019-11-10 23:33:34 UTC
78 +++ readline_cli.c
79 @@ -21,6 +21,10 @@
80  #include "config.h"
81  #endif
82  
83 +#ifdef HAVE_CONFIG_H
84 +#include "config.h"
85 +#endif
86 +
87  #include "php.h"
88  
89  #ifndef HAVE_RL_COMPLETION_MATCHES
90