aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rdup.rb
diff options
context:
space:
mode:
authorJack Nagel2013-05-11 20:17:08 -0500
committerJack Nagel2013-05-11 20:17:08 -0500
commit26de887471f319698d3e878215b5672f3b6b3336 (patch)
tree437bec95e15f953e2d92f908f9f46d8b1bfd905b /Library/Formula/rdup.rb
parentb9b985f400001f13f6e7d419383e6bc693c9a68f (diff)
downloadhomebrew-26de887471f319698d3e878215b5672f3b6b3336.tar.bz2
rdup: use keg-only libarchive
Diffstat (limited to 'Library/Formula/rdup.rb')
-rw-r--r--Library/Formula/rdup.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/Library/Formula/rdup.rb b/Library/Formula/rdup.rb
index 90b7da226..060ba370a 100644
--- a/Library/Formula/rdup.rb
+++ b/Library/Formula/rdup.rb
@@ -1,16 +1,5 @@
require 'formula'
-class LibarchiveHeader < Formula
- url 'https://raw.github.com/libarchive/libarchive/8076b31490c90aaf0edccecf760004c30bd95edc/libarchive/archive.h'
- sha1 '03c57e135cad9ca9d52604324d798ca1115838ce'
- version '3.0.4'
-end
-class LibarchiveEntryHeader < Formula
- url 'https://raw.github.com/libarchive/libarchive/8076b31490c90aaf0edccecf760004c30bd95edc/libarchive/archive_entry.h'
- sha1 '7eaee18321409fbb249cb59e9997757c740d7ecf'
- version '3.0.4'
-end
-
class Rdup < Formula
homepage 'http://miek.nl/projects/rdup/index.html'
url 'http://miek.nl/projects/rdup/rdup-1.1.14.tar.bz2'
@@ -21,22 +10,16 @@ class Rdup < Formula
depends_on 'nettle'
depends_on 'pcre'
depends_on 'glib'
+ depends_on 'libarchive'
def install
ENV.deparallelize
- # to pick up locally downloaded libarchive headers
- ENV.append 'CFLAGS', "-I."
system "./configure", "--prefix=#{prefix}"
# let rdup know that we actually have dirfd
system "echo '#define HAVE_DIRFD 1' >> config.h"
- # get required libarchive headers (they don't come with OS X,
- # although libarchive itself is there)
- LibarchiveHeader.new.brew { cp "archive.h", buildpath }
- LibarchiveEntryHeader.new.brew { cp "archive_entry.h", buildpath }
-
system "make", "install"
end