Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
keegnotrub committed Oct 7, 2013
0 parents commit 7ce9492
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
Empty file added .gitignore
Empty file.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Heroku Buildpack for Ghostscript

Currently installs Ghostscript 9.10 on Heroku Cedar.

## Install

# Use heroku-buildpack-multi
$ cd /path/to/your-app
$ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

# Create a .buildpack file with including ghostscript
$ cd /path/to/your-app
$ cat .buildpack
https://github.com/heroku/heroku-buildpack-ruby.git
https://github.com/elbongurk/heroku-buildpack-ghostscript.git

# Push changes to deploy
$ git push
10 changes: 10 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>

echo "-----> Installing Ghostscript 9.10"

cd $1
curl http://vulcan-elbongurk.herokuapp.com/output/7720a18a-a89c-4ab0-8555-ef80378d1240 -s -o gs.tgz
mkdir -p vendor/gs
tar -C vendor/gs -xvf gs.tgz

6 changes: 6 additions & 0 deletions bin/detect
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# bin/detect <build-dir>

echo "Ghostscript 9.10"
exit 0

8 changes: 8 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# bin/release <build-dir>

cat <<EOF
---
config_vars:
PATH: /app/vendor/gs/bin:$PATH
EOF

0 comments on commit 7ce9492

Please sign in to comment.