diff options
| author | Misty De Meo | 2013-12-01 23:01:24 -0800 |
|---|---|---|
| committer | Misty De Meo | 2013-12-01 23:03:34 -0800 |
| commit | b0ebf9288ea60f09783217e8971b8c6fbb530397 (patch) | |
| tree | 78fd6290d37dc9603f0d0be285d3fbfc5a65b019 /Library | |
| parent | 7f29c760b935b0b19157eb73e15e90682e959762 (diff) | |
| download | homebrew-b0ebf9288ea60f09783217e8971b8c6fbb530397.tar.bz2 | |
nkf 2.1.3
Also use inreplace and make variables to avoid needing a patch.
Fixes #24860.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nkf.rb | 58 |
1 files changed, 7 insertions, 51 deletions
diff --git a/Library/Formula/nkf.rb b/Library/Formula/nkf.rb index 7d92e8253..15f72b99c 100644 --- a/Library/Formula/nkf.rb +++ b/Library/Formula/nkf.rb @@ -2,58 +2,14 @@ require 'formula' class Nkf < Formula homepage 'http://sourceforge.jp/projects/nkf/' - url 'http://dl.sourceforge.jp/nkf/53171/nkf-2.1.2.tar.gz' - sha1 'ca301d84e57787f566c933c2a1511f600183c8f1' - - def patches - # Makefile patch - DATA - end + url 'http://dl.sourceforge.jp/nkf/59912/nkf-2.1.3.tar.gz' + sha1 'cb491b63b1a984dd6015e4946ac9579de132be6f' def install - ENV['prefix'] = prefix - system 'make' - system 'make install' + inreplace 'Makefile', "$(prefix)/man", "$(prefix)/share/man" + system 'make', "CC=#{ENV.cc}" + # Have to specify mkdir -p here since the intermediate directories + # don't exist in an empty prefix + system "make", "install", "prefix=#{prefix}", "MKDIR=mkdir -p" end end - -__END__ -diff --git a/Makefile b/Makefile ---- a/Makefile -+++ b/Makefile -@@ -1,4 +1,4 @@ --CC = cc -+#CC = cc - CFLAGS = -g -O2 -Wall -pedantic - # CFLAGS = -O3 - SHAR = shar -@@ -7,7 +7,7 @@ - RM = rm -rf - VERSION = 2.1.2 - MKDIR = mkdir --prefix = /usr/local -+#prefix = /usr/local - - .PHONY: clean install test tar shar - -@@ -35,13 +35,14 @@ - - install: - -$(MKDIR) $(prefix)/bin -- -$(MKDIR) $(prefix)/man -- -$(MKDIR) $(prefix)/man/man1 -- -$(MKDIR) $(prefix)/man/ja -- -$(MKDIR) $(prefix)/man/ja/man1 -+ -$(MKDIR) $(prefix)/share -+ -$(MKDIR) $(prefix)/share/man -+ -$(MKDIR) $(prefix)/share/man/man1 -+ -$(MKDIR) $(prefix)/share/man/ja -+ -$(MKDIR) $(prefix)/share/man/ja/man1 - cp -f nkf $(prefix)/bin/ -- cp -f nkf.1 $(prefix)/man/man1/ -- cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1 -+ cp -f nkf.1 $(prefix)/share/man/man1/ -+ cp -f nkf.1j $(prefix)/share/man/ja/man1/nkf.1 - - shar: - -mkdir nkf-$(VERSION) |
