Skip to content

Instantly share code, notes, and snippets.

@akrennmair
Created February 24, 2011 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save akrennmair/842785 to your computer and use it in GitHub Desktop.
Save akrennmair/842785 to your computer and use it in GitHub Desktop.
require 'formula'
class Newsbeuter <Formula
url 'http://www.newsbeuter.org/downloads/newsbeuter-2.4.tar.gz'
homepage 'http://www.newsbeuter.org/'
md5 '67fd0d44a55e10ed1ba15b197262a35f'
depends_on 'stfl'
depends_on 'curl'
depends_on 'sqlite'
depends_on 'libxml2'
depends_on 'gettext'
def patches
DATA
end
def install
system "make"
system "make install prefix=#{prefix}"
end
end
__END__
diff --git a/config.sh b/config.sh
index 21d8d04..0b0c44c 100755
--- a/config.sh
+++ b/config.sh
@@ -80,3 +80,5 @@ check_pkg "libcurl" || check_custom "libcurl" "curl-config" || fail "libcurl"
check_pkg "libxml-2.0" || check_custom "libxml2" "xml2-config" || fail "libxml2"
check_pkg "stfl" "" "--static" || fail "stfl"
all_aboard_the_fail_boat
+echo "CXXFLAGS+=$CPPFLAGS" >> config.mk
+echo "LDFLAGS+=$LDFLAGS" >> config.mk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment