summaryrefslogtreecommitdiff
path: root/homebrew/sile
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/sile')
-rw-r--r--homebrew/sile/.beer108
-rw-r--r--homebrew/sile/.make.sh-auto16
-rw-r--r--homebrew/sile/_metadata/description1
-rw-r--r--homebrew/sile/_metadata/homepage1
-rw-r--r--homebrew/sile/_metadata/name1
-rw-r--r--homebrew/sile/_metadata/version1
-rwxr-xr-xhomebrew/sile/download.sh1
7 files changed, 129 insertions, 0 deletions
diff --git a/homebrew/sile/.beer b/homebrew/sile/.beer
new file mode 100644
index 000000000..9e9233896
--- /dev/null
+++ b/homebrew/sile/.beer
@@ -0,0 +1,108 @@
+{
+ "name": "Sile",
+ "description": "Modern typesetting system inspired by TeX",
+ "url": "https://github.com/simoncozens/sile/releases/download/v0.9.5.1/sile-0.9.5.1.tar.bz2",
+ "mirror": null,
+ "homepage": "http://www.sile-typesetter.org/",
+ "depends": [
+ {
+ "depend": "autoconf",
+ "build-depend": true
+ },
+ {
+ "depend": "automake",
+ "build-depend": true
+ },
+ {
+ "depend": "libtool",
+ "build-depend": true
+ },
+ {
+ "depend": "luarocks",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "expat",
+ "build-depend": false
+ },
+ {
+ "depend": "fontconfig",
+ "build-depend": false
+ },
+ {
+ "depend": "harfbuzz",
+ "build-depend": false
+ },
+ {
+ "depend": "icu4c",
+ "build-depend": false
+ },
+ {
+ "depend": "libpng",
+ "build-depend": false
+ },
+ {
+ "depend": "lua",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ },
+ {
+ "depend": "zlib",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "lpeg",
+ "url": "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.1.tar.gz"
+ },
+ {
+ "name": "lua-zlib",
+ "url": "https://github.com/brimworks/lua-zlib/archive/v1.2.tar.gz"
+ },
+ {
+ "name": "luaexpat",
+ "url": "https://matthewwild.co.uk/projects/luaexpat/luaexpat-1.3.0.tar.gz"
+ },
+ {
+ "name": "luafilesystem",
+ "url": "https://github.com/keplerproject/luafilesystem/archive/v1_7_0_2.tar.gz"
+ },
+ {
+ "name": "luasocket",
+ "url": "https://github.com/diegonehab/luasocket/archive/v3.0-rc1.tar.gz"
+ },
+ {
+ "name": "luasec",
+ "url": "https://github.com/brunoos/luasec/archive/luasec-0.7.tar.gz"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "luapath = libexec/\"vendor\"",
+ "ENV[\"LUA_PATH\"] = \"#{luapath}/share/lua/5.3/?.lua;;#{luapath}/share/lua/5.3/lxp/?.lua\"",
+ "ENV[\"LUA_CPATH\"] = \"#{luapath}/lib/lua/5.3/?.so\"",
+ "resources.each do |r|",
+ "r.stage do",
+ "if r.name == \"lua-zlib\"",
+ "mv \"lua-zlib-1.1-0.rockspec\", \"lua-zlib-1.2-0.rockspec\"",
+ "system \"luarocks\", \"make\", \"#{r.name}-#{r.version}-0.rockspec\", \"--tree=#{luapath}\", \"ZLIB_DIR=/usr/local/opt/zlib\"",
+ "elsif r.name == \"luaexpat\"",
+ "system \"luarocks\", \"build\", r.name, \"--tree=#{luapath}\", \"EXPAT_DIR=/usr/local/opt/expat\"",
+ "elsif r.name == \"luasec\"",
+ "system \"luarocks\", \"build\", r.name, \"--tree=#{luapath}\", \"OPENSSL_DIR=/usr/local/opt/openssl\"",
+ "else",
+ "system \"luarocks\", \"build\", r.name, \"--tree=#{luapath}\"",
+ "end"
+ ],
+ "version": "0.9.5.1",
+ "file": "sile.rb"
+} \ No newline at end of file
diff --git a/homebrew/sile/.make.sh-auto b/homebrew/sile/.make.sh-auto
new file mode 100644
index 000000000..4e20f3441
--- /dev/null
+++ b/homebrew/sile/.make.sh-auto
@@ -0,0 +1,16 @@
+pkg:setup
+luapath = libexec/"vendor"
+ENV["LUA_PATH"] = "#{luapath}/share/lua/5.3/?.lua;;#{luapath}/share/lua/5.3/lxp/?.lua"
+ENV["LUA_CPATH"] = "#{luapath}/lib/lua/5.3/?.so"
+resources.each do |r|
+r.stage do
+if r.name == "lua-zlib"
+mv "lua-zlib-1.1-0.rockspec", "lua-zlib-1.2-0.rockspec"
+luarocks make #{r.name}-#{r.version}-0.rockspec --tree=#{luapath} ZLIB_DIR=/usr/local/opt/zlib
+elsif r.name == "luaexpat"
+luarocks build r.name --tree=#{luapath} EXPAT_DIR=/usr/local/opt/expat
+elsif r.name == "luasec"
+luarocks build r.name --tree=#{luapath} OPENSSL_DIR=/usr/local/opt/openssl
+else
+luarocks build r.name --tree=#{luapath}
+end
diff --git a/homebrew/sile/_metadata/description b/homebrew/sile/_metadata/description
new file mode 100644
index 000000000..a9662c628
--- /dev/null
+++ b/homebrew/sile/_metadata/description
@@ -0,0 +1 @@
+Modern typesetting system inspired by TeX
diff --git a/homebrew/sile/_metadata/homepage b/homebrew/sile/_metadata/homepage
new file mode 100644
index 000000000..a66be4fb0
--- /dev/null
+++ b/homebrew/sile/_metadata/homepage
@@ -0,0 +1 @@
+http://www.sile-typesetter.org/
diff --git a/homebrew/sile/_metadata/name b/homebrew/sile/_metadata/name
new file mode 100644
index 000000000..90c1764d1
--- /dev/null
+++ b/homebrew/sile/_metadata/name
@@ -0,0 +1 @@
+Sile
diff --git a/homebrew/sile/_metadata/version b/homebrew/sile/_metadata/version
new file mode 100644
index 000000000..06e679b44
--- /dev/null
+++ b/homebrew/sile/_metadata/version
@@ -0,0 +1 @@
+0.9.5.1
diff --git a/homebrew/sile/download.sh b/homebrew/sile/download.sh
new file mode 100755
index 000000000..a9f262772
--- /dev/null
+++ b/homebrew/sile/download.sh
@@ -0,0 +1 @@
+wget https://github.com/simoncozens/sile/releases/download/v0.9.5.1/sile-0.9.5.1.tar.bz2 \ No newline at end of file