Skip to content

Instantly share code, notes, and snippets.

@alexreg
Created September 10, 2013 23:22
Show Gist options
  • Save alexreg/6517136 to your computer and use it in GitHub Desktop.
Save alexreg/6517136 to your computer and use it in GitHub Desktop.
require 'formula'
class Pdfmarks < Formula
homepage 'https://bitbucket.org/alexreg/pdfmarks'
url 'https://bitbucket.org/alexreg/pdfmarks/get/0.1.tar.gz'
sha1 '1d67193f754ec7f1149028c914e6d8fef92a7eaf'
def install
inreplace 'pdfmarks' do |s|
s.gsub! /source "common"/, "source \"#{libexec}/common\""
s.gsub! /"pdfmarks.ps"/, "\"#{share}/pdfmarks.ps\""
end
share.install('pdfmarks.gs')
libexec.install('common')
bin.install('pdfmarks')
end
test do
system "#{bin}/pdfmarks -h"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment