Skip to content

Instantly share code, notes, and snippets.

@dustinschultz
Created September 12, 2013 21:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save dustinschultz/6544364 to your computer and use it in GitHub Desktop.
Save dustinschultz/6544364 to your computer and use it in GitHub Desktop.
Homebrew dblatex patched
require 'formula'
class Dblatex < Formula
env :userpaths
url 'http://downloads.sourceforge.net/project/dblatex/dblatex/dblatex-0.3.4/dblatex-0.3.4.tar.bz2'
homepage 'http://dblatex.sourceforge.net'
md5 'a511a2eaa55757b341e4c46353c5c681'
def install
system "python", "setup.py", "install", "--prefix=#{prefix}", "--install-scripts=#{bin}"
end
def patches
#Fixes attr error install_layout
DATA
end
end
__END__
diff --git a/setup.py b/setup.py
index 2fa793f..a842cc0 100644
--- a/setup.py
+++ b/setup.py
@@ -365,10 +365,7 @@ class Install(install):
raise OSError("not found: %s" % ", ".join(mis_stys))
def run(self):
- if self.install_layout == "deb":
- db = DebianInstaller(self)
- else:
- db = None
+ db = None
if not(db) and not(self.nodeps):
try:
@thefinnomenon
Copy link

MD5 is no longer accepted so to use this script you have to change the md5 line to sha256 '2009c8de332edca9edc75b42cd623834f2bb45e512b6975f98a0e3032a1f1c88'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment