diff options
| author | Remko Tronçon | 2013-09-14 10:32:44 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-19 07:51:51 -0700 |
| commit | 9227b794526310b53bcb11bad32edf7cb0660f92 (patch) | |
| tree | 579b90f38adb700aed97b7900a07eb69adb7e1e6 /Library/Formula | |
| parent | 98910994323df8fc8067616d1f2e5c23022a61cb (diff) | |
| download | homebrew-9227b794526310b53bcb11bad32edf7cb0660f92.tar.bz2 | |
libswiften: also install Sluift (Lua interface)
Only enabled in HEAD builds for now
Closes #22593.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libswiften.rb | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/Library/Formula/libswiften.rb b/Library/Formula/libswiften.rb index bdfb573d4..45e2f3426 100644 --- a/Library/Formula/libswiften.rb +++ b/Library/Formula/libswiften.rb @@ -11,27 +11,39 @@ class Libswiften < Formula depends_on 'scons' => :build depends_on 'libidn' depends_on 'boost' + depends_on 'lua' => :recommended if build.head? # Patch to include lock from boost. Taken from # http://comments.gmane.org/gmane.linux.redhat.fedora.extras.cvs/957411 - def patches; DATA; end + def patches; DATA unless build.head?; end def install boost = Formula.factory("boost") libidn = Formula.factory("libidn") - system "scons", - "-j #{ENV.make_jobs}", - "V=1", "optimize=1", - "debug=0", - "allow_warnings=1", - "swiften_dll=1", - "boost_includedir=#{boost.include}", - "boost_libdir=#{boost.lib}", - "libidn_includedir=#{libidn.include}", - "libidn_libdir=#{libidn.lib}", - "SWIFTEN_INSTALLDIR=#{prefix}", - prefix + args = %W[ + -j #{ENV.make_jobs} + V=1 + optimize=1 debug=0 + allow_warnings=1 + swiften_dll=1 + boost_includedir=#{boost.include} + boost_libdir=#{boost.lib} + libidn_includedir=#{libidn.include} + libidn_libdir=#{libidn.lib} + SWIFTEN_INSTALLDIR=#{prefix} + ] + + if build.with? "lua" + lua = Formula.factory("lua") + args << "SLUIFT_INSTALLDIR=#{prefix}" + args << "lua_includedir=#{lua.include}" + args << "lua_libdir=#{lua.lib}" + end + + args << prefix + + system "scons", *args man1.install 'Swift/Packaging/Debian/debian/swiften-config.1' unless build.stable? end |
