Ravenports generated: 02 Oct 2023 22:25
[ravenports.git] / bucket_4E / php81-simplexml
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php81-simplexml
4 VERSION=                8.1.24
5 KEYWORDS=               lang www php textproc
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 8.1 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-8.1.24.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,81 pkgconfig cpe pcre:build
21 GNOME_COMPONENTS=       libxml2
22
23 DISTNAME=               php-8.1.24/ext/{{PHP_MODNAME}}
24 EXTRACT_HEAD[1]=        {{TAR}} -xf
25 EXTRACT_TAIL[1]=        php-8.1.24/ext/{{PHP_MODNAME}}
26
27 CPE_PRODUCT=            php
28 CPE_VENDOR=             php
29 FPC_EQUIVALENT=         textproc/php81-simplexml
30
31 CONFIGURE_ARGS=         --enable-simplexml
32                         --with-pcre-dir={{LOCALBASE}}
33                         --with-libxml-dir={{LOCALBASE}}
34
35 [FILE:59:descriptions/desc.single]
36 This package contains the simplexml extension for PHP 8.1.
37
38
39 [FILE:96:distinfo]
40 ee61f6232bb29bd2e785daf325d2177f2272bf80d086c295a724594e710bce3d     11793756 php-8.1.24.tar.xz
41
42
43 [FILE:1001:patches/patch-config.m4]
44 --- config.m4.orig      2023-01-31 15:13:17 UTC
45 +++ config.m4
46 @@ -4,8 +4,39 @@ PHP_ARG_ENABLE([simplexml],
47      [Disable SimpleXML support])],
48    [yes])
49  
50 +PHP_ARG_ENABLE([pcre-dir],
51 +  [pcre install prefix],
52 +  [AS_HELP_STRING([--with-pcre-dir],
53 +    [SimpleXML: pcre install dir])],
54 +  [no],
55 +  [no])
56 +
57  if test "$PHP_SIMPLEXML" != "no"; then
58  
59 +  dnl This is PECL build, check if bundled PCRE library is used
60 +  old_CPPFLAGS=$CPPFLAGS
61 +  CPPFLAGS=$INCLUDES
62 +  AC_EGREP_CPP(yes,[
63 +#include <main/php_config.h>
64 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
65 +yes
66 +#endif
67 +  ],[
68 +    PHP_PCRE_REGEX=yes
69 +  ],[
70 +    AC_EGREP_CPP(yes,[
71 +#include <main/php_config.h>
72 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
73 +yes
74 +#endif
75 +    ],[
76 +      PHP_PCRE_REGEX=pecl
77 +      PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
78 +    ],[
79 +      PHP_PCRE_REGEX=no
80 +    ])
81 +  ])
82 +
83    if test "$PHP_LIBXML" = "no"; then
84      AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --with-libxml])
85    fi
86