2009-12-28 12:21:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gwenhywfar <Formula
|
2010-09-21 09:24:52 +00:00
|
|
|
url 'http://www2.aquamaniac.de/sites/download/download.php?package=01&release=54&file=01&dummy=gwenhywfar-4.0.1.tar.gz'
|
2009-12-28 12:21:22 +00:00
|
|
|
homepage 'http://gwenhywfar.sourceforge.net/'
|
2010-09-21 09:24:52 +00:00
|
|
|
md5 '513ea7b5b22edf512fa7d825ef544954'
|
2009-12-28 12:21:22 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-07-24 04:34:02 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gnutls'
|
2009-12-28 12:21:22 +00:00
|
|
|
|
2010-09-21 09:24:52 +00:00
|
|
|
def options
|
2010-09-19 17:21:57 +00:00
|
|
|
[[
|
|
|
|
"--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"
|
|
|
|
]]
|
2010-09-21 09:24:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
2009-12-28 12:21:22 +00:00
|
|
|
def install
|
2010-09-21 09:24:52 +00:00
|
|
|
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
|
2009-12-28 12:21:22 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|