Skip to content

Instantly share code, notes, and snippets.

@ches
Created April 25, 2011 16:08
Show Gist options
  • Select an option

  • Save ches/940725 to your computer and use it in GitHub Desktop.

Select an option

Save ches/940725 to your computer and use it in GitHub Desktop.
pms homebrew formula
diff --git a/Library/Formula/pms.rb b/Library/Formula/pms.rb
index f5d8d13..66a748c 100644
--- a/Library/Formula/pms.rb
+++ b/Library/Formula/pms.rb
@@ -5,12 +5,18 @@ class Pms <Formula
homepage 'http://pms.sourceforge.net'
md5 '8ebd65c5e6e33cd0ca79817a5e823805'
+ depends_on 'pkg-config' => :build
depends_on 'glib'
- depends_on 'ncursesw'
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ gettext = Formula.factory('gettext')
+ ENV.append "CPPFLAGS", "-I#{gettext.include}"
+ ENV.append "LDFLAGS", "-L#{gettext.lib}"
+ ENV.append "LIBS", "-lintl"
+ ENV.append "PATH", gettext.bin, ":"
+ system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
-end
\ No newline at end of file
+end
+
require 'formula'
class Pms <Formula
url 'https://downloads.sourceforge.net/project/pms/pms/0.42/pms-0.42.tar.bz2'
homepage 'http://pms.sourceforge.net'
md5 '8ebd65c5e6e33cd0ca79817a5e823805'
depends_on 'pkg-config' => :build
depends_on 'glib'
def install
gettext = Formula.factory('gettext')
ENV.append "CPPFLAGS", "-I#{gettext.include}"
ENV.append "LDFLAGS", "-L#{gettext.lib}"
ENV.append "LIBS", "-lintl"
ENV.append "PATH", gettext.bin, ":"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment