Skip to content

Instantly share code, notes, and snippets.

View peterlynch's full-sized avatar

Peter Lynch peterlynch

View GitHub Profile
@peterlynch
peterlynch / sonatype-books-osx.md
Last active January 26, 2018 17:21
Sonatype Book Toolset Setup on Mac OSX Using brew.sh

OSX Book Environment - Without the Virtual Machine

This was an experiment to see if you could build the Sonatype Books without a virtual machine, using only OSX Sierra and the book toolset installed directly into the OS.

It seems to be possible, but the caveat is that it is very different than what our CI system uses. Therefore relying on it solely could introduce subtle issues overtime. The CI and Docbuntu approach is going to continue to be the standard to be relied upon for final verification.

@peterlynch
peterlynch / dblatex.rb
Created November 6, 2016 12:00
Homebrew dblatex.rb formulae for dblatex 0.3.9 patched suitable for building Sonatype Books
require 'formula'
# BEFORE INSTALLING THIS FORMULA:
# 1.) Install BasicTex from https://www.tug.org/mactex/
# 2.) Make yourself the owner of the tex installation directory:
# $ sudo chown -R "$(id -un):$(id -gn)" /usr/local/texlive
# 3.) Update tlmgr and install required packages
# $ tlmgr update --self
# $ tlmgr install appendix changebar footmisc multirow overpic stmaryrd subfigure titlesec wasysym
#
@peterlynch
peterlynch / dblatex.rb
Created November 5, 2016 16:15 — forked from dustinschultz/dblatex.rb
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}"