Skip to content

Instantly share code, notes, and snippets.

@alexreg
Created September 10, 2013 23:18
Show Gist options
  • Save alexreg/6517114 to your computer and use it in GitHub Desktop.
Save alexreg/6517114 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 "#{prefix}/libexec/common"'
s.gsub! /"pdfmarks.ps"/, '"#{prefix}/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