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

class Star < Formula
  homepage 'http://cdrecord.berlios.de/old/private/star.html'
  url 'ftp://ftp.berlios.de/pub/star/star-1.5.1.tar.bz2'
  sha1 '62ba0e0a995fc5deb492b025ecffe58735574b8a'

  depends_on "smake" => :build

  def install
    system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "MANDIR=share/man"
    system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "MANDIR=share/man", "install"

    # Remove symlinks that override built-in utilities
    (bin+'gnutar').unlink
    (bin+'tar').unlink
    (man1+'gnutar.1').unlink
    (man1+'tar.1').unlink
  end
end