diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/phpat71 | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/phpat71')
-rw-r--r-- | homebrew/phpat71/.beer | 197 | ||||
-rw-r--r-- | homebrew/phpat71/.make.sh-auto | 6 | ||||
-rw-r--r-- | homebrew/phpat71/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/phpat71/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/phpat71/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/phpat71/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/phpat71/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/phpat71/patches.sh | 65 |
8 files changed, 273 insertions, 0 deletions
diff --git a/homebrew/phpat71/.beer b/homebrew/phpat71/.beer new file mode 100644 index 000000000..deb92c75a --- /dev/null +++ b/homebrew/phpat71/.beer @@ -0,0 +1,197 @@ +{ + "name": "PhpAT71", + "description": "General-purpose scripting language", + "url": "https://php.net/get/php-7.1.28.tar.xz/from/this/mirror", + "mirror": null, + "homepage": "https://secure.php.net/", + "depends": [ + { + "depend": "httpd", + "build-depend": false + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "apr", + "build-depend": false + }, + { + "depend": "apr-util", + "build-depend": false + }, + { + "depend": "aspell", + "build-depend": false + }, + { + "depend": "autoconf", + "build-depend": false + }, + { + "depend": "curl-openssl", + "build-depend": false + }, + { + "depend": "freetds", + "build-depend": false + }, + { + "depend": "freetype", + "build-depend": false + }, + { + "depend": "gettext", + "build-depend": false + }, + { + "depend": "glib", + "build-depend": false + }, + { + "depend": "gmp", + "build-depend": false + }, + { + "depend": "icu4c", + "build-depend": false + }, + { + "depend": "jpeg", + "build-depend": false + }, + { + "depend": "libpng", + "build-depend": false + }, + { + "depend": "libpq", + "build-depend": false + }, + { + "depend": "libtool", + "build-depend": false + }, + { + "depend": "libzip", + "build-depend": false + }, + { + "depend": "mcrypt", + "build-depend": false + }, + { + "depend": "openldap", + "build-depend": false + }, + { + "depend": "openssl", + "build-depend": false + }, + { + "depend": "sqlite", + "build-depend": false + }, + { + "depend": "tidy-html5", + "build-depend": false + }, + { + "depend": "unixodbc", + "build-depend": false + }, + { + "depend": "webp", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/acinclude.m4 b/acinclude.m4\n", + "index 168c465f8d..6c087d152f 100644\n", + "--- a/acinclude.m4\n", + "+++ b/acinclude.m4\n", + "@@ -441,7 +441,11 @@ dnl\n", + " dnl Adds a path to linkpath/runpath (LDFLAGS)\n", + " dnl\n", + " AC_DEFUN([PHP_ADD_LIBPATH],[\n", + "- if test \"$1\" != \"/usr/$PHP_LIBDIR\" && test \"$1\" != \"/usr/lib\"; then\n", + "+ case \"$1\" in\n", + "+ \"/usr/$PHP_LIBDIR\"|\"/usr/lib\"[)] ;;\n", + "+ /Library/Developer/CommandLineTools/SDKs/*/usr/lib[)] ;;\n", + "+ /Applications/Xcode*.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/*/usr/lib[)] ;;\n", + "+ *[)]\n", + " PHP_EXPAND_PATH($1, ai_p)\n", + " ifelse([$2],,[\n", + " _PHP_ADD_LIBPATH_GLOBAL([$ai_p])\n", + "@@ -452,8 +456,8 @@ AC_DEFUN([PHP_ADD_LIBPATH],[\n", + " else\n", + " _PHP_ADD_LIBPATH_GLOBAL([$ai_p])\n", + " fi\n", + "- ])\n", + "- fi\n", + "+ ]) ;;\n", + "+ esac\n", + " ])\n", + "\n", + " dnl\n", + "@@ -487,7 +491,11 @@ dnl add an include path.\n", + " dnl if before is 1, add in the beginning of INCLUDES.\n", + " dnl\n", + " AC_DEFUN([PHP_ADD_INCLUDE],[\n", + "- if test \"$1\" != \"/usr/include\"; then\n", + "+ case \"$1\" in\n", + "+ \"/usr/include\"[)] ;;\n", + "+ /Library/Developer/CommandLineTools/SDKs/*/usr/include[)] ;;\n", + "+ /Applications/Xcode*.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/*/usr/include[)] ;;\n", + "+ *[)]\n", + " PHP_EXPAND_PATH($1, ai_p)\n", + " PHP_RUN_ONCE(INCLUDEPATH, $ai_p, [\n", + " if test \"$2\"; then\n", + "@@ -495,8 +503,8 @@ AC_DEFUN([PHP_ADD_INCLUDE],[\n", + " else\n", + " INCLUDES=\"$INCLUDES -I$ai_p\"\n", + " fi\n", + "- ])\n", + "- fi\n", + "+ ]) ;;\n", + "+ esac\n", + " ])\n", + "\n", + " dnl internal, don't use\n", + "@@ -2411,7 +2419,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [\n", + " fi\n", + "\n", + " if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||\n", + "- test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME\n", + "+ test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME ||\n", + "+ test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.tbd\n", + " then\n", + " PHP_CHECK_LIBRARY($iconv_lib_name, libiconv, [\n", + " found_iconv=yes\n" + ] + } + ], + "install": [ + "pear_prefix = pkgshare/\"pear\"", + "pear_files = %W[", + "#{pear_prefix}/.depdblock", + "#{pear_prefix}/.filemap", + "#{pear_prefix}/.depdb", + "#{pear_prefix}/.lock", + "]", + "%W[", + "#{pear_prefix}/.channels", + "#{pear_prefix}/.channels/.alias", + "].each do |f|", + "chmod 0755, f", + "pear_files.concat(Dir[\"#{f}/*\"])" + ], + "version": "1.0-unknown", + "file": "php@7.1.rb" +}
\ No newline at end of file diff --git a/homebrew/phpat71/.make.sh-auto b/homebrew/phpat71/.make.sh-auto new file mode 100644 index 000000000..def9fa607 --- /dev/null +++ b/homebrew/phpat71/.make.sh-auto @@ -0,0 +1,6 @@ +pkg:setup +pear_prefix = pkgshare/"pear" +pear_files = %W[#{pear_prefix}/.depdblock #{pear_prefix}/.filemap #{pear_prefix}/.depdb #{pear_prefix}/.lock ] +%W[#{pear_prefix}/.channels #{pear_prefix}/.channels/.alias ].each do |f| +chmod 0755, f +pear_files.concat(Dir["#{f}/*"]) diff --git a/homebrew/phpat71/_metadata/description b/homebrew/phpat71/_metadata/description new file mode 100644 index 000000000..e92d5f929 --- /dev/null +++ b/homebrew/phpat71/_metadata/description @@ -0,0 +1 @@ +General-purpose scripting language diff --git a/homebrew/phpat71/_metadata/homepage b/homebrew/phpat71/_metadata/homepage new file mode 100644 index 000000000..df752a396 --- /dev/null +++ b/homebrew/phpat71/_metadata/homepage @@ -0,0 +1 @@ +https://secure.php.net/ diff --git a/homebrew/phpat71/_metadata/name b/homebrew/phpat71/_metadata/name new file mode 100644 index 000000000..d5dec7678 --- /dev/null +++ b/homebrew/phpat71/_metadata/name @@ -0,0 +1 @@ +PhpAT71 diff --git a/homebrew/phpat71/_metadata/version b/homebrew/phpat71/_metadata/version new file mode 100644 index 000000000..88fd7f442 --- /dev/null +++ b/homebrew/phpat71/_metadata/version @@ -0,0 +1 @@ +1.0-unknown diff --git a/homebrew/phpat71/download.sh b/homebrew/phpat71/download.sh new file mode 100755 index 000000000..40666e69f --- /dev/null +++ b/homebrew/phpat71/download.sh @@ -0,0 +1 @@ +wget https://php.net/get/php-7.1.28.tar.xz/from/this/mirror
\ No newline at end of file diff --git a/homebrew/phpat71/patches.sh b/homebrew/phpat71/patches.sh new file mode 100755 index 000000000..8505689cd --- /dev/null +++ b/homebrew/phpat71/patches.sh @@ -0,0 +1,65 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/acinclude.m4 b/acinclude.m4 +index 168c465f8d..6c087d152f 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -441,7 +441,11 @@ dnl + dnl Adds a path to linkpath/runpath (LDFLAGS) + dnl + AC_DEFUN([PHP_ADD_LIBPATH],[ +- if test "$1" != "/usr/$PHP_LIBDIR" && test "$1" != "/usr/lib"; then ++ case "$1" in ++ "/usr/$PHP_LIBDIR"|"/usr/lib"[)] ;; ++ /Library/Developer/CommandLineTools/SDKs/*/usr/lib[)] ;; ++ /Applications/Xcode*.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/*/usr/lib[)] ;; ++ *[)] + PHP_EXPAND_PATH($1, ai_p) + ifelse([$2],,[ + _PHP_ADD_LIBPATH_GLOBAL([$ai_p]) +@@ -452,8 +456,8 @@ AC_DEFUN([PHP_ADD_LIBPATH],[ + else + _PHP_ADD_LIBPATH_GLOBAL([$ai_p]) + fi +- ]) +- fi ++ ]) ;; ++ esac + ]) + + dnl +@@ -487,7 +491,11 @@ dnl add an include path. + dnl if before is 1, add in the beginning of INCLUDES. + dnl + AC_DEFUN([PHP_ADD_INCLUDE],[ +- if test "$1" != "/usr/include"; then ++ case "$1" in ++ "/usr/include"[)] ;; ++ /Library/Developer/CommandLineTools/SDKs/*/usr/include[)] ;; ++ /Applications/Xcode*.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/*/usr/include[)] ;; ++ *[)] + PHP_EXPAND_PATH($1, ai_p) + PHP_RUN_ONCE(INCLUDEPATH, $ai_p, [ + if test "$2"; then +@@ -495,8 +503,8 @@ AC_DEFUN([PHP_ADD_INCLUDE],[ + else + INCLUDES="$INCLUDES -I$ai_p" + fi +- ]) +- fi ++ ]) ;; ++ esac + ]) + + dnl internal, don't use +@@ -2411,7 +2419,8 @@ AC_DEFUN([PHP_SETUP_ICONV], [ + fi + + if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || +- test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME ++ test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME || ++ test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.tbd + then + PHP_CHECK_LIBRARY($iconv_lib_name, libiconv, [ + found_iconv=yes +EOF |