2012-12-17 09:23:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rdup < Formula
|
|
|
|
homepage 'http://miek.nl/projects/rdup/index.html'
|
|
|
|
url 'http://miek.nl/projects/rdup/rdup-1.1.14.tar.bz2'
|
|
|
|
sha1 '49dc7570122bfa362f36a26a2ffa8bfe8ad55182'
|
|
|
|
|
2013-02-10 06:28:17 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-12-17 09:23:55 +00:00
|
|
|
depends_on 'nettle'
|
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'glib'
|
2013-05-12 01:17:08 +00:00
|
|
|
depends_on 'libarchive'
|
2013-11-11 05:03:08 +00:00
|
|
|
depends_on 'mcrypt'
|
2012-12-17 09:23:55 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
|
|
|
|
# let rdup know that we actually have dirfd
|
|
|
|
system "echo '#define HAVE_DIRFD 1' >> config.h"
|
|
|
|
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
# tell rdup to archive itself, then let rdup-tr make a tar archive of it,
|
|
|
|
# and test with tar and grep whether the resulting tar archive actually
|
|
|
|
# contains rdup
|
|
|
|
system "#{bin}/rdup /dev/null #{bin}/rdup | #{bin}/rdup-tr -O tar | tar tvf - | grep #{bin}/rdup"
|
|
|
|
end
|
|
|
|
end
|