Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Forked from dustinschultz/dblatex.rb
Last active April 8, 2017 01:37
Show Gist options
  • Save jj1bdx/cd021cc7883300162de7 to your computer and use it in GitHub Desktop.
Save jj1bdx/cd021cc7883300162de7 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.10/dblatex-0.3.10.tar.bz2'
homepage 'http://dblatex.sourceforge.net'
sha256 '6fd696b740e0044ae1caf843d225d98c01b6ed916550384544e7e31c0c6a2cfa'
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:
## Install Homebrew - ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
## Install MacTex - http://tug.org/mactex/
brew install asciidoc
brew edit dblatex
## copy and paste content here https://gist.github.com/dustinschultz/6544364
brew install dblatex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment