2010-06-27 18:48:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pcrexx < Formula
|
2010-06-27 18:48:32 +00:00
|
|
|
homepage 'http://www.daemon.de/PCRE'
|
2012-02-24 22:51:33 +00:00
|
|
|
url 'http://www.daemon.de/idisk/Apps/pcre++/pcre++-0.9.5.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '7cb640555c6adf34bf366139b22f6d1a66bd1fb0'
|
2010-06-27 18:48:32 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
2013-08-07 16:16:17 +00:00
|
|
|
pcre = Formula.factory('pcre').opt_prefix
|
2012-02-24 22:51:33 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
2013-08-07 16:16:17 +00:00
|
|
|
"--with-pcre-dir-lib=#{pcre}"
|
2010-06-27 18:48:32 +00:00
|
|
|
system "make install"
|
2013-08-18 06:05:00 +00:00
|
|
|
|
|
|
|
# Pcre++ ships Pcre.3, which causes a conflict with pcre.3 from pcre
|
|
|
|
# in case-insensitive file system. Rename it to pcre++.3 to avoid
|
|
|
|
# this problem.
|
|
|
|
mv man3/'Pcre.3', man3/'pcre++.3'
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
The man page has been renamed to pcre++.3 to avoid conflicts with
|
|
|
|
pcre in case-insensitive file system. Please use "man pcre++"
|
|
|
|
instead.
|
|
|
|
EOS
|
2010-06-27 18:48:32 +00:00
|
|
|
end
|
|
|
|
end
|