c665eac117
Is it a DSL? No. But people call it that apparently. To add a dependency: class Doe <Formula depends_on 'ray' depends_on 'mee' => :optional depends_on 'far' => :recommended depends_on Sew.new end Sew would be a formula you have defined in this Formula file. This is useful, eg. see Python's formula. Formula specified in this fashion cannot be linked into the HOMEBREW_PREFIX, they are considered private libraries. This allows you to create custom installations that are very specific to your formula. More features to come, like specifying versions
18 lines
463 B
Ruby
18 lines
463 B
Ruby
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'
|
|
|
|
depends_on 'p7zip'
|
|
|
|
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
|