homebrew-core/Formula/pcre++.rb
Xiyue Deng 78bbda3802 Pcre++: rename man page to avoid conflict with pcre.
* The man page of pcre++ is named Pcre.3, while there is one named
  pcre.3 in pcre package. This is problem for case-insensitive file
  system which is widely used across Mac OS X systems. Rename it to
  pcre++ and add caveat about this change.

Closes Homebrew/homebrew#21968.
2013-08-18 15:25:59 -07:00

31 lines
965 B
Ruby

require 'formula'
class Pcrexx < Formula
homepage 'http://www.daemon.de/PCRE'
url 'http://www.daemon.de/idisk/Apps/pcre++/pcre++-0.9.5.tar.gz'
sha1 '7cb640555c6adf34bf366139b22f6d1a66bd1fb0'
depends_on 'pcre'
def install
pcre = Formula.factory('pcre').opt_prefix
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--with-pcre-dir-lib=#{pcre}"
system "make install"
# 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
end
end