Ravenports generated: 22 Apr 2019 10:04
[ravenports.git] / bucket_CA / php73-readline
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php73-readline
4 VERSION=                7.3.4
5 KEYWORDS=               lang www php devel
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 7.3 extension: readline library interface
8 HOMEPAGE=               http://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-7.3.4.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,73 readline
21
22 DISTNAME=               php-7.3.4/ext/{{PHP_MODNAME}}
23 EXTRACT_HEAD[1]=        {{TAR}} -xf
24 EXTRACT_TAIL[1]=        php-7.3.4/ext/{{PHP_MODNAME}}
25
26 FPC_EQUIVALENT=         devel/php73-readline
27
28 CONFIGURE_ARGS=         --with-readline={{LOCALBASE}}
29
30 [FILE:58:descriptions/desc.single]
31 This package contains the readline extension for PHP 7.3.
32
33
34 [FILE:95:distinfo]
35 6fe79fa1f8655f98ef6708cde8751299796d6c1e225081011f4104625b923b83     11977004 php-7.3.4.tar.xz
36
37
38 [FILE:1023:patches/patch-config.m4]
39 --- config.m4.orig      2019-02-05 13:10:04 UTC
40 +++ config.m4
41 @@ -3,13 +3,8 @@ dnl config.m4 for extension readline
42  PHP_ARG_WITH(libedit,for libedit readline replacement,
43  [  --with-libedit[=DIR]      Include libedit readline replacement (CLI/CGI only)])
44  
45 -if test "$PHP_LIBEDIT" = "no"; then
46    PHP_ARG_WITH(readline,for readline support,
47    [  --with-readline[=DIR]     Include readline support (CLI/CGI only)])
48 -else
49 -  dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
50 -  php_with_readline=no
51 -fi
52  
53  if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
54    for i in $PHP_READLINE /usr/local /usr; do
55 @@ -64,6 +59,13 @@ if test "$PHP_READLINE" && test "$PHP_RE
56    ],[],[
57      -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
58    ])
59 +
60 +  PHP_CHECK_LIBRARY(readline, rl_completion_matches,
61 +  [
62 +    AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
63 +  ],[],[
64 +    -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
65 +  ])
66  
67    PHP_CHECK_LIBRARY(readline, rl_completion_matches,
68    [
69
70
71 [FILE:226:patches/patch-readline_cli.c]
72 --- readline_cli.c.orig 2019-02-05 13:10:04 UTC
73 +++ readline_cli.c
74 @@ -21,6 +21,10 @@
75  #include "config.h"
76  #endif
77  
78 +#ifdef HAVE_CONFIG_H
79 +#include "config.h"
80 +#endif
81 +
82  #include "php.h"
83  
84  #ifndef HAVE_RL_COMPLETION_MATCHES
85