Created
April 24, 2010 18:16
-
-
Save zimbatm/377825 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
=begin | |
STATUS: gettext disabled, so no nls for you | |
It doesn't compile agains OSX's gettext and the gettext brew doesn't publish it's libraries and includes. | |
Otherwise, should work fine. | |
zimbatm | |
=end | |
class Getopt <Formula | |
url 'http://software.frodo.looijaard.name/getopt/files/getopt-1.1.4.tar.gz' | |
homepage 'http://software.frodo.looijaard.name/getopt/' | |
md5 '02188ca68da27c4175d6e9f3da732101' | |
def patches | |
{:p0 => DATA} | |
end | |
#depends_on "gettext" | |
def install | |
system "make" | |
system "make install prefix=\"#{prefix}\"" | |
end | |
end | |
__END__ | |
--- Makefile.orig 2010-04-24 20:11:13.000000000 +0200 | |
+++ Makefile 2010-04-24 20:11:33.000000000 +0200 | |
@@ -14,7 +14,7 @@ | |
LIBCGETOPT=1 | |
# Define this to 1 if you do not have the gettext routines | |
-WITHOUT_GETTEXT=0 | |
+WITHOUT_GETTEXT=1 | |
# For creating the archive | |
PACKAGE=getopt | |
@@ -33,7 +33,7 @@ | |
LANGUAGES = cs de es fr it ja nl pt_BR | |
MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) | |
-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX | |
+CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX | |
ifeq ($(LIBCGETOPT),0) | |
CPPFLAGS+=-I./gnu | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment