homebrew-core/Formula/star.rb
Misty De Meo 3fa817152e star: adjust files to remove
For some reason (possibly the smake version bump?), star no longer
produces a tar.1 manpage, though it does still try to install a tar
symlink.

Additionally it turns out that many of the files it installs are
generic smake headers/libraries, which clash either with the versions
installed by smake itself or by those installed by other smake-based
software, e.g. cdrtools. Since they don't need to be necessary to use
star, all of those are now removed at the end of the build.
2013-01-04 17:23:48 -04:00

26 lines
788 B
Ruby

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
# Remove generic smake files that clash with smake's versions
(include/'schily').rmtree
%w[libschily.a libdeflt.a libfind.a].each do |file|
(lib/file).unlink
end
(lib/'profiled').rmtree
end
end