2013-11-18 21:49:25 +00:00
|
|
|
# Based on:
|
2015-02-23 14:09:21 +00:00
|
|
|
# Apple Open Source: https://opensource.apple.com/source/cvs/cvs-45/
|
2013-11-18 21:49:25 +00:00
|
|
|
# MacPorts: https://trac.macports.org/browser/trunk/dports/devel/cvs/Portfile
|
|
|
|
# Creating a useful testcase: http://mrsrl.stanford.edu/~brian/cvstutorial/
|
|
|
|
|
|
|
|
class Cvs < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Version control system"
|
2015-02-23 14:09:21 +00:00
|
|
|
homepage "http://cvs.nongnu.org/"
|
|
|
|
url "https://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "78853613b9a6873a30e1cc2417f738c330e75f887afdaf7b3d0800cb19ca515e"
|
2013-11-18 21:49:25 +00:00
|
|
|
|
2014-06-01 20:25:14 +00:00
|
|
|
bottle do
|
2015-09-23 08:40:37 +00:00
|
|
|
cellar :any_skip_relocation
|
2014-12-06 18:20:01 +00:00
|
|
|
revision 1
|
2015-09-23 08:40:37 +00:00
|
|
|
sha256 "c454f576c58dbabc3d3ce4af4974dfdcf47c4232af3de9275f171a93dbdf264a" => :el_capitan
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "3b6a02a69d14c6a6476727ade22b47a542dae280df6375a9bce9374a21176f86" => :yosemite
|
|
|
|
sha256 "ff6b161b7379b44bf42635828f45e7f43c932d2be9fbf9691714f2f4a356ec7f" => :mavericks
|
|
|
|
sha256 "cbabf7f11bb08b7018117f5b45dda26d55a0584f9ef7e00c0a134bbbe1284655" => :mountain_lion
|
2014-06-01 20:25:14 +00:00
|
|
|
end
|
|
|
|
|
2014-04-03 14:11:51 +00:00
|
|
|
keg_only :provided_until_xcode5
|
2013-11-18 21:49:25 +00:00
|
|
|
|
2014-03-17 17:11:57 +00:00
|
|
|
{
|
2015-10-07 16:46:21 +00:00
|
|
|
"PR5178707" => "732495a63f9ef2c12997686df5e7567c2dd4dc0128c4349aadd9e6540cf5e368",
|
|
|
|
"ea" => "54e99f44fde6d1502e03afc33cfced576109697d5d9d734e24296cb45743ad98",
|
|
|
|
"endian" => "9538a7bb6a614b29b171b87df079491b9985ef7b626b8ff6f2afb6656b6fdb52",
|
|
|
|
"fixtest-client-20" => "22f6dddce9f8cc42f275fa297c73025c78738d4ee02c6240bb0a71ee09a38425",
|
|
|
|
"fixtest-recase" => "2485b4b89383120e3a6e8762a8decc29fc5adba8a1fb4cfa0a5f3e43aff60511",
|
|
|
|
"i18n" => "3c8c3e7be584b2f8224570acdba2f6b0a72564c2358deadcf576a6d91e1d99a5",
|
|
|
|
"initgroups" => "22640ec9ddedb21d69c924231a44b6875e9af7b50d848da66ed6b614741bd0d6",
|
|
|
|
"nopic" => "4a3b82984d7738d98d612d6951fded58e5513cb941ec82727c9f4e7786fa879d",
|
|
|
|
"remove-info" => "daa6c899a12ccd7737ddd96c16130d2c65aeb7e79aeee1dd867e9ccb744b650e",
|
|
|
|
"remove-libcrypto" => "7c739b061b892a0a3fd0ce4542257c661713e7fb854a77e2b34b8e192197338d",
|
|
|
|
"tag" => "f44dc8e9406824990b87e46aa4ed6b75c3884a9b376b408ae2ef62fdabf0d929",
|
|
|
|
"zlib" => "15067f80b61f98eee9907fc18c037857f6b949bd7f5faa79ce8b3a822ef01bca",
|
2014-03-17 17:11:57 +00:00
|
|
|
}.each do |name, sha|
|
|
|
|
patch :p0 do
|
2015-02-23 14:09:21 +00:00
|
|
|
url "https://opensource.apple.com/source/cvs/cvs-45/patches/#{name}.diff?txt"
|
2015-10-07 16:46:21 +00:00
|
|
|
sha256 sha
|
2014-03-17 17:11:57 +00:00
|
|
|
end
|
2013-11-18 21:49:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--infodir=#{info}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--with-gssapi",
|
|
|
|
"--enable-pam",
|
|
|
|
"--enable-encryption",
|
|
|
|
"--with-external-zlib",
|
|
|
|
"--enable-case-sensitivity",
|
|
|
|
"--with-editor=vim",
|
|
|
|
"ac_cv_func_working_mktime=no"
|
|
|
|
system "make"
|
|
|
|
ENV.deparallelize
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-03-17 16:12:54 +00:00
|
|
|
cvsroot = testpath/"cvsroot"
|
|
|
|
cvsroot.mkpath
|
2013-11-18 21:49:25 +00:00
|
|
|
system "#{bin}/cvs", "-d", cvsroot, "init"
|
|
|
|
|
|
|
|
mkdir "cvsexample" do
|
2014-03-17 16:12:54 +00:00
|
|
|
ENV["CVSROOT"] = cvsroot
|
|
|
|
system "#{bin}/cvs", "import", "-m", "dir structure", "cvsexample", "homebrew", "start"
|
2013-11-18 21:49:25 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|