600d0145b2
Version bump to 4.0.5 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
36 lines
928 B
Ruby
36 lines
928 B
Ruby
require 'formula'
|
|
|
|
class Gwenhywfar <Formula
|
|
url 'http://www.aquamaniac.de/sites/download/download.php?package=01&release=58&file=01&dummy=gwenhywfar-4.0.5.tar.gz'
|
|
homepage 'http://www.aqbanking.de/'
|
|
md5 'e9f707a2a01ec1b4fc1576b1c2f5980b'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'gettext'
|
|
depends_on 'gnutls'
|
|
|
|
def options
|
|
[[
|
|
"--with-gui=XX,...",
|
|
"Install gui support XX where XX is the name of the gui toolkit\n\te.g.: --with-gui=gtk\n\tAvailable gui toolkits are: qt, gtk"
|
|
]]
|
|
end
|
|
|
|
|
|
def install
|
|
guis = []
|
|
ARGV.options_only.select { |v| v =~ /--with-gui=/ }.uniq.each do |opt|
|
|
guis << opt.split('=')[1].split(',')
|
|
end
|
|
|
|
configure_args = [
|
|
"--prefix=#{prefix}",
|
|
"--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--with-guis='#{guis.flatten.join(' ')}'"
|
|
]
|
|
|
|
system "./configure", *configure_args
|
|
system "make install"
|
|
end
|
|
end
|