2011-08-09 04:38:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Star < Formula
|
2014-06-28 20:06:58 +00:00
|
|
|
homepage 'http://cdrecord.org/private/star.html'
|
|
|
|
url 'https://downloads.sourceforge.net/project/s-tar/star-1.5.3.tar.bz2'
|
|
|
|
sha1 '9f94130c6cfab48a2b37fcd5a9ab21bb5c9b52a2'
|
2011-08-09 04:38:42 +00:00
|
|
|
|
2011-11-30 02:55:55 +00:00
|
|
|
depends_on "smake" => :build
|
2011-08-09 04:38:42 +00:00
|
|
|
|
|
|
|
def install
|
2013-11-14 00:56:52 +00:00
|
|
|
ENV.delete 'MAKEFLAGS' # smake does not like -j
|
|
|
|
|
|
|
|
system "smake", "GMAKE_NOWARN=true", "INS_BASE=#{prefix}", "INS_RBASE=#{prefix}", "install"
|
2011-09-02 20:16:52 +00:00
|
|
|
|
|
|
|
# Remove symlinks that override built-in utilities
|
2012-02-10 06:12:35 +00:00
|
|
|
(bin+'gnutar').unlink
|
|
|
|
(bin+'tar').unlink
|
|
|
|
(man1+'gnutar.1').unlink
|
2013-01-04 21:18:27 +00:00
|
|
|
|
2013-11-14 00:56:52 +00:00
|
|
|
# Remove useless files
|
|
|
|
lib.rmtree
|
|
|
|
include.rmtree
|
|
|
|
|
|
|
|
# Remove conflicting files
|
|
|
|
%w{makefiles makerules}.each { |f| (man5/"#{f}.5").unlink }
|
2011-08-09 04:38:42 +00:00
|
|
|
end
|
|
|
|
end
|