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

class Star < Formula
  homepage 'http://cdrecord.org/private/star.html'
  url 'https://downloads.sourceforge.net/project/s-tar/star-1.5.3.tar.bz2'
  sha1 '9f94130c6cfab48a2b37fcd5a9ab21bb5c9b52a2'

  depends_on "smake" => :build

  def install
    ENV.deparallelize # smake does not like -j

    system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}", "install"

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

    # Remove useless files
    lib.rmtree
    include.rmtree

    # Remove conflicting files
    %w{makefiles makerules}.each { |f| (man5/"#{f}.5").unlink }
  end
end