aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBenjamin Weber2013-07-05 20:45:43 +0200
committerAdam Vandenberg2013-07-09 09:45:02 -0700
commitf695f8cfa9c2cfb5c8f2ba89832cc2d664e256ac (patch)
treea2ace688098549f485c533aa14b9a7bf8c8d0c79 /Library
parentbdb3267f5584fe4276b0fbd3cb999f42ace8bdb0 (diff)
downloadhomebrew-f695f8cfa9c2cfb5c8f2ba89832cc2d664e256ac.tar.bz2
snownews 1.5.12
Closes #21026. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/snownews.rb43
1 files changed, 43 insertions, 0 deletions
diff --git a/Library/Formula/snownews.rb b/Library/Formula/snownews.rb
new file mode 100644
index 000000000..8097ddfd7
--- /dev/null
+++ b/Library/Formula/snownews.rb
@@ -0,0 +1,43 @@
+require 'formula'
+
+class Snownews < Formula
+ homepage 'https://kiza.eu/software/snownews'
+ url 'https://kiza.eu/media/software/snownews/snownews-1.5.12.tar.gz'
+ sha1 'b3addaac25c2c093aa5e60b8b89e50e7d7450bcf'
+
+ option 'without-nls', "Build without translations"
+
+ depends_on 'gettext' unless build.without? 'nls'
+
+ # Fix zlib linking issue on OS X
+ # snownews author assisted on quest creating this working Formula.
+ # Author is aware of the issue tackled. However, no statement has been made whether
+ # any future release will change to a more (homebrew) robust = cleaner = simpler basis.
+ # homebrew reference added on 2013-07-06 to https://kiza.eu/software/snownews/downloading
+ def patches
+ DATA
+ end
+
+ def install
+ args = ["--prefix=#{prefix}"]
+ args << "--disable-nls" if build.without? 'nls'
+
+ system "./configure", *args
+ system "make", "install", "EXTRA_LDFLAGS=#{ENV.ldflags}", "CC=#{ENV.cc}"
+ end
+end
+
+__END__
+diff --git a/configure b/configure
+index a752cd6..296a282 100755
+--- a/configure
++++ b/configure
+@@ -33,7 +33,7 @@ if (lc($os) eq "linux") {
+ if ($use_nls == 1) {
+ $ldflags .= ' -lintl ';
+ }
+- $ldflags .= ' -liconv';
++ $ldflags .= ' -liconv -lz';
+ } elsif (lc($os) =~ /cygwin/) {
+ print "Configuring for a Cygwin system... ";
+ $cflags = $cflags.' -DSTATIC_CONST_ICONV -I/usr/include/libxml2';