summaryrefslogtreecommitdiff
path: root/homebrew/woff2
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/woff2
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/woff2')
-rw-r--r--homebrew/woff2/.beer40
-rw-r--r--homebrew/woff2/.make.sh-auto5
-rw-r--r--homebrew/woff2/_metadata/description1
-rw-r--r--homebrew/woff2/_metadata/homepage1
-rw-r--r--homebrew/woff2/_metadata/name1
-rw-r--r--homebrew/woff2/_metadata/version1
-rwxr-xr-xhomebrew/woff2/download.sh1
7 files changed, 50 insertions, 0 deletions
diff --git a/homebrew/woff2/.beer b/homebrew/woff2/.beer
new file mode 100644
index 000000000..db1dd2e18
--- /dev/null
+++ b/homebrew/woff2/.beer
@@ -0,0 +1,40 @@
+{
+ "name": "Woff2",
+ "description": "Utilities to create and convert Web Open Font File (WOFF) files",
+ "url": "https://github.com/google/woff2/archive/v1.0.2.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/google/woff2",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "brotli",
+ "build-depend": false
+ }
+ ],
+ "resource": [
+ {
+ "name": "roboto_1",
+ "url": "https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxP.ttf"
+ },
+ {
+ "name": "roboto_2",
+ "url": "https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2"
+ }
+ ],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "args = std_cmake_args + %W[",
+ "-DCMAKE_INSTALL_NAME_DIR=#{opt_lib}",
+ "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON",
+ "]",
+ "system \"cmake\", \".\", *args",
+ "system \"make\", \"install\"",
+ "bin.install \"woff2_info\", \"woff2_decompress\", \"woff2_compress\""
+ ],
+ "version": "1.0.2",
+ "file": "woff2.rb"
+} \ No newline at end of file
diff --git a/homebrew/woff2/.make.sh-auto b/homebrew/woff2/.make.sh-auto
new file mode 100644
index 000000000..3ac184665
--- /dev/null
+++ b/homebrew/woff2/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+args = std_cmake_args + %W[-DCMAKE_INSTALL_NAME_DIR=#{opt_lib} -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON ]
+cmake . *args
+make DESTDIR=${PKG_DEST} install
+bin.install "woff2_info", "woff2_decompress", "woff2_compress"
diff --git a/homebrew/woff2/_metadata/description b/homebrew/woff2/_metadata/description
new file mode 100644
index 000000000..2de47de41
--- /dev/null
+++ b/homebrew/woff2/_metadata/description
@@ -0,0 +1 @@
+Utilities to create and convert Web Open Font File (WOFF) files
diff --git a/homebrew/woff2/_metadata/homepage b/homebrew/woff2/_metadata/homepage
new file mode 100644
index 000000000..e58c3cf38
--- /dev/null
+++ b/homebrew/woff2/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/google/woff2
diff --git a/homebrew/woff2/_metadata/name b/homebrew/woff2/_metadata/name
new file mode 100644
index 000000000..7614225b7
--- /dev/null
+++ b/homebrew/woff2/_metadata/name
@@ -0,0 +1 @@
+Woff2
diff --git a/homebrew/woff2/_metadata/version b/homebrew/woff2/_metadata/version
new file mode 100644
index 000000000..6d7de6e6a
--- /dev/null
+++ b/homebrew/woff2/_metadata/version
@@ -0,0 +1 @@
+1.0.2
diff --git a/homebrew/woff2/download.sh b/homebrew/woff2/download.sh
new file mode 100755
index 000000000..54aca9a99
--- /dev/null
+++ b/homebrew/woff2/download.sh
@@ -0,0 +1 @@
+wget https://github.com/google/woff2/archive/v1.0.2.tar.gz \ No newline at end of file