Ravenports generated: 30 Nov 2020 00:49
[ravenports.git] / bucket_64 / php73-simplexml
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php73-simplexml
4 VERSION=                7.3.25
5 KEYWORDS=               lang www php textproc
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 7.3 extension: simplexml XML->object converter
8 HOMEPAGE=               https://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-7.3.25.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          pcre:static:standard
21
22 USES=                   php:ext,73 pkgconfig cpe
23 GNOME_COMPONENTS=       libxml2
24
25 DISTNAME=               php-7.3.25/ext/{{PHP_MODNAME}}
26 EXTRACT_HEAD[1]=        {{TAR}} -xf
27 EXTRACT_TAIL[1]=        php-7.3.25/ext/{{PHP_MODNAME}}
28
29 CPE_PRODUCT=            php
30 CPE_VENDOR=             php
31 FPC_EQUIVALENT=         textproc/php73-simplexml
32
33 CONFIGURE_ARGS=         --enable-simplexml
34                         --with-pcre-dir={{LOCALBASE}}
35                         --with-libxml-dir={{LOCALBASE}}
36
37 [FILE:59:descriptions/desc.single]
38 This package contains the simplexml extension for PHP 7.3.
39
40
41 [FILE:96:distinfo]
42 c71c00ad03079efb78d1a6b8623ca4f725be697dbd9a46debacbcc9a2475f329     12136668 php-7.3.25.tar.xz
43
44
45 [FILE:1242:patches/patch-config.m4]
46 --- config.m4.orig      2018-11-06 10:48:36 UTC
47 +++ config.m4
48 @@ -4,6 +4,9 @@ dnl config.m4 for extension simplexml
49  PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support,
50  [  --disable-simplexml     Disable SimpleXML support], yes)
51  
52 +PHP_ARG_WITH(pcre-dir, pcre install prefix,
53 +[  --with-pcre-dir           SimpleXML: pcre install prefix], no, no)
54 +
55  if test -z "$PHP_LIBXML_DIR"; then
56    PHP_ARG_WITH(libxml-dir, libxml2 install dir,
57    [  --with-libxml-dir=DIR   SimpleXML: libxml2 install prefix], no, no)
58 @@ -11,6 +14,30 @@ fi
59  
60  if test "$PHP_SIMPLEXML" != "no"; then
61  
62 +  dnl This is PECL build, check if bundled PCRE library is used
63 +  old_CPPFLAGS=$CPPFLAGS
64 +  CPPFLAGS=$INCLUDES
65 +  AC_EGREP_CPP(yes,[
66 +#include <main/php_config.h>
67 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
68 +yes
69 +#endif
70 +  ],[
71 +    PHP_PCRE_REGEX=yes
72 +  ],[
73 +    AC_EGREP_CPP(yes,[
74 +#include <main/php_config.h>
75 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
76 +yes
77 +#endif
78 +    ],[
79 +      PHP_PCRE_REGEX=pecl
80 +      PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
81 +    ],[
82 +      PHP_PCRE_REGEX=no
83 +    ])
84 +  ])
85 +
86    if test "$PHP_LIBXML" = "no"; then
87      AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml])
88    fi
89