diff options
Diffstat (limited to 'homebrew/pcrexx')
-rw-r--r-- | homebrew/pcrexx/.beer | 65 | ||||
-rw-r--r-- | homebrew/pcrexx/.make.sh-auto | 6 | ||||
-rw-r--r-- | homebrew/pcrexx/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/pcrexx/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/pcrexx/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/pcrexx/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/pcrexx/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/pcrexx/patches.sh | 20 |
8 files changed, 96 insertions, 0 deletions
diff --git a/homebrew/pcrexx/.beer b/homebrew/pcrexx/.beer new file mode 100644 index 000000000..9cce106f6 --- /dev/null +++ b/homebrew/pcrexx/.beer @@ -0,0 +1,65 @@ +{ + "name": "Pcrexx", + "description": "C++ wrapper for the Perl Compatible Regular Expressions", + "url": "https://www.daemon.de/idisk/Apps/pcre++/pcre++-0.9.5.tar.gz", + "mirror": null, + "homepage": "https://www.daemon.de/PCRE", + "depends": [ + { + "depend": "autoconf", + "build-depend": true + }, + { + "depend": "automake", + "build-depend": true + }, + { + "depend": "libtool", + "build-depend": true + }, + { + "depend": "pcre", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/libpcre++/pcre++.h b/libpcre++/pcre++.h\n", + "index d80b387..21869fc 100644\n", + "--- a/libpcre++/pcre++.h\n", + "+++ b/libpcre++/pcre++.h\n", + "@@ -47,11 +47,11 @@\n", + " #include <map>\n", + " #include <stdexcept>\n", + " #include <iostream>\n", + "+#include <clocale>\n", + " \n", + " \n", + " extern \"C\" {\n", + " #include <pcre.h>\n", + "- #include <locale.h>\n", + " }\n", + " \n", + " namespace pcrepp {\n" + ] + } + ], + "install": [ + "pcre = Formula[\"pcre\"]", + "system \"autoreconf\", \"-fvi\"", + "system \"./configure\", \"--disable-debug\",", + "\"--disable-dependency-tracking\",", + "\"--disable-silent-rules\",", + "\"--prefix=#{prefix}\",", + "\"--with-pcre-lib=#{pcre.opt_lib}\",", + "\"--with-pcre-include=#{pcre.opt_include}\"", + "system \"make\", \"install\"", + "mv man3/\"Pcre.3\", man3/\"pcre++.3\"" + ], + "version": "0.9.5", + "file": "pcre++.rb" +}
\ No newline at end of file diff --git a/homebrew/pcrexx/.make.sh-auto b/homebrew/pcrexx/.make.sh-auto new file mode 100644 index 000000000..2a43ff115 --- /dev/null +++ b/homebrew/pcrexx/.make.sh-auto @@ -0,0 +1,6 @@ +pkg:setup +pcre = Formula["pcre"] +autoreconf -fvi +pkg:configure --disable-dependency-tracking --disable-silent-rules --with-pcre-lib=#{pcre.opt_lib} --with-pcre-include=#{pcre.opt_include} +make DESTDIR=${PKG_DEST} install +mv man3/"Pcre.3", man3/"pcre++.3" diff --git a/homebrew/pcrexx/_metadata/description b/homebrew/pcrexx/_metadata/description new file mode 100644 index 000000000..c87e13fee --- /dev/null +++ b/homebrew/pcrexx/_metadata/description @@ -0,0 +1 @@ +C++ wrapper for the Perl Compatible Regular Expressions diff --git a/homebrew/pcrexx/_metadata/homepage b/homebrew/pcrexx/_metadata/homepage new file mode 100644 index 000000000..104001f84 --- /dev/null +++ b/homebrew/pcrexx/_metadata/homepage @@ -0,0 +1 @@ +https://www.daemon.de/PCRE diff --git a/homebrew/pcrexx/_metadata/name b/homebrew/pcrexx/_metadata/name new file mode 100644 index 000000000..e13268073 --- /dev/null +++ b/homebrew/pcrexx/_metadata/name @@ -0,0 +1 @@ +Pcrexx diff --git a/homebrew/pcrexx/_metadata/version b/homebrew/pcrexx/_metadata/version new file mode 100644 index 000000000..b0bb87854 --- /dev/null +++ b/homebrew/pcrexx/_metadata/version @@ -0,0 +1 @@ +0.9.5 diff --git a/homebrew/pcrexx/download.sh b/homebrew/pcrexx/download.sh new file mode 100755 index 000000000..43c66722e --- /dev/null +++ b/homebrew/pcrexx/download.sh @@ -0,0 +1 @@ +wget https://www.daemon.de/idisk/Apps/pcre++/pcre++-0.9.5.tar.gz
\ No newline at end of file diff --git a/homebrew/pcrexx/patches.sh b/homebrew/pcrexx/patches.sh new file mode 100755 index 000000000..c74633f9a --- /dev/null +++ b/homebrew/pcrexx/patches.sh @@ -0,0 +1,20 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +diff --git a/libpcre++/pcre++.h b/libpcre++/pcre++.h +index d80b387..21869fc 100644 +--- a/libpcre++/pcre++.h ++++ b/libpcre++/pcre++.h +@@ -47,11 +47,11 @@ + #include <map> + #include <stdexcept> + #include <iostream> ++#include <clocale> + + + extern "C" { + #include <pcre.h> +- #include <locale.h> + } + + namespace pcrepp { +EOF |