cvs: use "apply" for patching

cvs-1.12.13.tar.bz2 extracts to cvs-45 with the patch files found in
cvs-45/patches, so each patch file must be supplied to "apply" as
"patches/foo.diff" – the relative path within the extracted directory.

Closes Homebrew/homebrew#47614.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
ilovezfs 2016-01-25 08:22:07 -08:00 committed by Mike McQuaid
parent b045cbb20a
commit 446c6b2ebe

View file

@ -20,24 +20,21 @@ class Cvs < Formula
keg_only :provided_until_xcode5
{
"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",
}.each do |name, sha|
patch :p0 do
url "https://opensource.apple.com/source/cvs/cvs-45/patches/#{name}.diff?txt"
sha256 sha
end
patch :p0 do
url "https://opensource.apple.com/tarballs/cvs/cvs-45.tar.gz"
sha256 "4d200dcf0c9d5044d85d850948c88a07de83aeded5e14fa1df332737d72dc9ce"
apply "patches/PR5178707.diff",
"patches/ea.diff",
"patches/endian.diff",
"patches/fixtest-client-20.diff",
"patches/fixtest-recase.diff",
"patches/i18n.diff",
"patches/initgroups.diff",
"patches/nopic.diff",
"patches/remove-libcrypto.diff",
"patches/remove-info.diff",
"patches/tag.diff",
"patches/zlib.diff"
end
def install