aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-16 21:35:22 -0500
committerJack Nagel2014-03-16 23:09:20 -0500
commit598e28f7d98d57a2219c57d6a99d65ef93997134 (patch)
tree112840a30a0675b79de8631be590211d80b1067e
parent3a9ccec60a7c8633809e66762b753bf1027804bc (diff)
downloadhomebrew-598e28f7d98d57a2219c57d6a99d65ef93997134.tar.bz2
povray: use checksummed patches
-rw-r--r--Library/Formula/povray.rb56
1 files changed, 34 insertions, 22 deletions
diff --git a/Library/Formula/povray.rb b/Library/Formula/povray.rb
index 67a00a438..80b07efb8 100644
--- a/Library/Formula/povray.rb
+++ b/Library/Formula/povray.rb
@@ -6,36 +6,48 @@ class Povray < Formula
sha1 '1d160d45e69d096e4c22f3b034dcc9ee94d22208'
depends_on :macos => :lion
-
depends_on :autoconf
depends_on :automake
-
depends_on :libpng
depends_on 'boost'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'openexr' => :optional
- def patches
- {
- :p0 => [
- # Patches lseek64 => lseek
- "https://trac.macports.org/export/113876/trunk/dports/graphics/povray/files/patch-lseek64.diff",
- # Fixes configure script's stat usage, automake subdir
- "https://trac.macports.org/export/113876/trunk/dports/graphics/povray/files/patch-unix-configure.ac.diff",
- # prebuild.sh doesn't create Makefile.in properly
- "https://trac.macports.org/export/113876/trunk/dports/graphics/povray/files/patch-unix-prebuild.sh.diff",
- # missing sys/types.h header include
- "https://trac.macports.org/export/113887/trunk/dports/graphics/povray/files/patch-vfe-uint.diff"
- ],
- # Fixes some compiler warnings; comes from the upstream repo,
- # should be in next release.
- :p1 => [
- "https://github.com/POV-Ray/povray/commit/b3846f5723745e6e7926883ec6bc404922a900e6.patch",
- # Replaces references to shared_ptr with boost::shared_ptr
- "https://gist.github.com/mistydemeo/7633971/raw/ef285191f9da25aa73806d1200611b8c955ab873/boost-sharedptr.diff"
- ]
- }
+ # Patches lseek64 => lseek
+ patch :p0 do
+ url "https://trac.macports.org/export/113876/trunk/dports/graphics/povray/files/patch-lseek64.diff"
+ sha1 "c033cf8b8ac1ff6ea6be1778250ea532b280be99"
+ end
+
+ # Fixes configure script's stat usage, automake subdir
+ patch :p0 do
+ url "https://trac.macports.org/export/113876/trunk/dports/graphics/povray/files/patch-unix-configure.ac.diff"
+ sha1 "61444d4391c62e90935ddcc845f0c05fd4feac3b"
+ end
+
+ # prebuild.sh doesn't create Makefile.in properly
+ patch :p0 do
+ url "https://trac.macports.org/export/113876/trunk/dports/graphics/povray/files/patch-unix-prebuild.sh.diff"
+ sha1 "52eefd89818d5aac58e67e5f9dfc74853cbc65e6"
+ end
+
+ # missing sys/types.h header include
+ patch :p0 do
+ url "https://trac.macports.org/export/113887/trunk/dports/graphics/povray/files/patch-vfe-uint.diff"
+ sha1 "da064ef1046184f4b4caa770d6ff9a5abb0d3f94"
+ end
+
+ # Fixes some compiler warnings; comes from the upstream repo, should be in next release.
+ patch do
+ url "https://github.com/POV-Ray/povray/commit/b3846f5723745e6e7926883ec6bc404922a900e6.patch"
+ sha1 "ccb75f8fd80020828d51451538d9079ff94f8a02"
+ end
+
+ # Replaces references to shared_ptr with boost::shared_ptr
+ patch do
+ url "https://gist.github.com/mistydemeo/7633971/raw/ef285191f9da25aa73806d1200611b8c955ab873/boost-sharedptr.diff"
+ sha1 "8d38908f41eab4da61d1d892ee030bff0bfefeaa"
end
def install