Ravenports generated: 10 Jan 2018 09:56
[ravenports.git] / bucket_2F / php72-phar
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php72-phar
4 VERSION=                7.2.1
5 KEYWORDS=               lang www php archivers
6 VARIANTS=               standard
7 SDESC[standard]=        PHP 7.2 extension: phar PHP Archive
8 HOMEPAGE=               http://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-7.2.1.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,72
23 PHP_EXTENSIONS=         hash
24
25 DISTNAME=               php-7.2.1/ext/{{PHP_MODNAME}}
26 EXTRACT_HEAD[1]=        {{TAR}} -xf
27 EXTRACT_TAIL[1]=        php-7.2.1/ext/{{PHP_MODNAME}}
28
29 FPC_EQUIVALENT=         archivers/php72-phar
30
31 CONFIGURE_ARGS=         --enable-phar
32                         --with-pcre-dir={{LOCALBASE}}
33
34 [FILE:95:distinfo]
35 6c6cf82fda6660ed963821eb0525214bb3547e8e29f447b9c15b2d8e6efd8822     12094840 php-7.2.1.tar.xz
36
37
38 [FILE:1219:patches/patch-config.m4]
39 --- config.m4.orig      2016-06-21 19:56:50 UTC
40 +++ config.m4
41 @@ -4,8 +4,38 @@ dnl config.m4 for extension phar
42  PHP_ARG_ENABLE(phar, for phar archive support,
43  [  --disable-phar          Disable phar support], yes)
44  
45 +PHP_ARG_WITH(pcre-dir, pcre install prefix,
46 +[  --with-pcre-dir           PHAR: pcre install prefix], no, no)
47 +
48 +
49  if test "$PHP_PHAR" != "no"; then
50 +
51 +  dnl This is PECL build, check if bundled PCRE library is used
52 +  old_CPPFLAGS=$CPPFLAGS
53 +  CPPFLAGS=$INCLUDES
54 +  AC_EGREP_CPP(yes,[
55 +#include <main/php_config.h>
56 +#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
57 +yes
58 +#endif
59 +  ],[
60 +    PHP_PCRE_REGEX=yes
61 +  ],[
62 +    AC_EGREP_CPP(yes,[
63 +#include <main/php_config.h>
64 +#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
65 +yes
66 +#endif
67 +    ],[
68 +      PHP_PCRE_REGEX=pecl
69 +      PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
70 +    ],[
71 +      PHP_PCRE_REGEX=no
72 +    ])
73 +  ])
74 +
75    PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
76 +  PHP_HASH=yes
77    AC_MSG_CHECKING([for phar openssl support])
78    if test "$PHP_HASH_SHARED" != "yes"; then
79      if test "$PHP_HASH" != "no"; then
80
81
82 [FILE:332:patches/patch-phar.c]
83 --- phar.c.orig 2016-06-21 19:56:49 UTC
84 +++ phar.c
85 @@ -3589,7 +3589,7 @@ static const zend_module_dep phar_deps[]
86         ZEND_MOD_OPTIONAL("openssl")
87         ZEND_MOD_OPTIONAL("zlib")
88         ZEND_MOD_OPTIONAL("standard")
89 -#if defined(HAVE_HASH) && !defined(COMPILE_DL_HASH)
90 +#if defined(HAVE_HASH)
91         ZEND_MOD_REQUIRED("hash")
92  #endif
93  #if HAVE_SPL
94