aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/reposurgeon.rb
blob: 5d9c1d219fc7c6ce703257a841b4cb8342e8f986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Reposurgeon < Formula
  homepage 'http://www.catb.org/esr/reposurgeon/'
  url 'http://www.catb.org/~esr/reposurgeon/reposurgeon-2.11.tar.gz'
  sha1 '135582528f95794eac84e6392e3300b3e6ee9dd2'

  depends_on 'asciidoc'
  depends_on 'xmlto'

  def install
    ENV['XML_CATALOG_FILES'] = "#{etc}/xml/catalog"
    system "make"
    tools = %w{reposurgeon repopuller repodiffer}
    bin.install tools
    man1.install tools.map { |m| "#{m}.1" }
  end
end