diff options
| author | Fabian Jakobs | 2009-08-31 11:26:02 +0200 |
|---|---|---|
| committer | Max Howell | 2009-08-31 18:08:30 +0100 |
| commit | dd69d0ad927827de0dfa74ae389d6b4cdb489104 (patch) | |
| tree | f800d6b55e72c78597473c873477ccbda85da1dc /Library | |
| parent | 9ab3d894d93c50c2d68e842856760d92cee1bc3d (diff) | |
| download | homebrew-dd69d0ad927827de0dfa74ae389d6b4cdb489104.tar.bz2 | |
Universal unpacker (unp) formula
unp is a small perl script which makes extraction of any archive files a bit
easier. It support several compressors and archiver programs, chooses the
right one(s) automatically and extracts one or more files in one go.
Signed Off By: Max Howell <max@methylblue.com>
I amended the formula slightly to use Homebrew's install functions, and
Homebrew's automatic installation for README, etc. files.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/unp.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/unp.rb b/Library/Formula/unp.rb new file mode 100644 index 000000000..50ab9ea8c --- /dev/null +++ b/Library/Formula/unp.rb @@ -0,0 +1,20 @@ +require 'brewkit' + +class Unp <Formula + @url='http://ftp.de.debian.org/debian/pool/main/u/unp/unp_1.0.11.tar.gz' + @homepage='http://packages.debian.org/de/etch/unp' + @md5='ecea662bd7e7efe7f7e2213bf21d9646' + + def deps + BinaryDep.new 'p7zip' + end + + def install + bin.install %w[unp ucat] + man1.install "debian/unp.1" + + FileUtils.mv 'debian/README.debian', 'README' + FileUtils.mv 'debian/copyright', 'COPYING' + FileUtils.mv 'debian/changelog', 'ChangeLog' + end +end |
