aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xaw3d.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-21 19:00:12 -0800
committerAdam Vandenberg2012-02-21 19:00:12 -0800
commit3a6beed6e1cc73b22f73145773a23e059b556022 (patch)
tree7dc06f647f85b76c9f746f15cf4c89f776d0113c /Library/Formula/xaw3d.rb
parent0f28c93f0e586994fdd15620e29c57c35c44dd2a (diff)
downloadhomebrew-3a6beed6e1cc73b22f73145773a23e059b556022.tar.bz2
xaw3d: audit and style issues
Diffstat (limited to 'Library/Formula/xaw3d.rb')
-rw-r--r--Library/Formula/xaw3d.rb44
1 files changed, 23 insertions, 21 deletions
diff --git a/Library/Formula/xaw3d.rb b/Library/Formula/xaw3d.rb
index e6960651c..de1173714 100644
--- a/Library/Formula/xaw3d.rb
+++ b/Library/Formula/xaw3d.rb
@@ -1,35 +1,37 @@
require 'formula'
class Xaw3d < Formula
- url 'ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-1.5E.tar.gz'
homepage 'http://freshmeat.net/projects/xaw3d'
- md5 '29ecfdcd6bcf47f62ecfd672d31269a1'
+ url 'ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-1.5E.tar.gz'
version '1.5E'
+ md5 '29ecfdcd6bcf47f62ecfd672d31269a1'
- depends_on 'imake'
+ depends_on 'imake' => :build
def install
ENV.x11
- chdir 'lib/Xaw3d'
- inreplace 'Imakefile', 'XCOMM EXTRA_INCLUDES', 'EXTRA_INCLUDES'
- mkdir 'X11'
- chdir 'X11' do
- ln_s '..', 'Xaw3d'
- end
+ inreplace 'lib/Xaw3d/Imakefile', 'XCOMM EXTRA_INCLUDES', 'EXTRA_INCLUDES'
+ cd 'lib/Xaw3d' do
+ mkdir 'X11'
+ cd 'X11' do
+ # TODO - surely this symlink can be made without the cd
+ ln_s '..', 'Xaw3d'
+ end
- system 'xmkmf'
+ system 'xmkmf'
- # force usage of /usr/X11/lib when linking, and install into the Cellar
- # apparently s.change_make_var! silently fails when Makefile variables
- # are preceded by whitespace, so do it manually
- inreplace 'Makefile' do |s|
- s.gsub! 'LDPRELIB = -L$(USRLIBDIR)', 'LDPRELIB = -L$(USRLIBDIR) $(LDFLAGS)'
- s.gsub! 'USRLIBDIR = /usr/local/lib', "USRLIBDIR = #{lib}"
- s.gsub! 'SHLIBDIR = /usr/local/lib', "SHLIBDIR = #{lib}"
- s.gsub! 'INCROOT = /usr/local/include', "INCROOT = #{include}"
- end
+ # force usage of /usr/X11/lib when linking, and install into the Cellar
+ # apparently s.change_make_var! silently fails when Makefile variables
+ # are preceded by whitespace, so do it manually
+ inreplace 'Makefile' do |s|
+ s.gsub! 'LDPRELIB = -L$(USRLIBDIR)', 'LDPRELIB = -L$(USRLIBDIR) $(LDFLAGS)'
+ s.gsub! 'USRLIBDIR = /usr/local/lib', "USRLIBDIR = #{lib}"
+ s.gsub! 'SHLIBDIR = /usr/local/lib', "SHLIBDIR = #{lib}"
+ s.gsub! 'INCROOT = /usr/local/include', "INCROOT = #{include}"
+ end
- system 'make'
- system 'make install'
+ system 'make'
+ system 'make install'
+ end
end
end