summaryrefslogtreecommitdiff
path: root/homebrew/cweb
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/cweb')
-rw-r--r--homebrew/cweb/.beer26
-rw-r--r--homebrew/cweb/.make.sh-auto6
-rw-r--r--homebrew/cweb/_metadata/description1
-rw-r--r--homebrew/cweb/_metadata/homepage1
-rw-r--r--homebrew/cweb/_metadata/name1
-rw-r--r--homebrew/cweb/_metadata/version1
-rwxr-xr-xhomebrew/cweb/download.sh1
7 files changed, 37 insertions, 0 deletions
diff --git a/homebrew/cweb/.beer b/homebrew/cweb/.beer
new file mode 100644
index 000000000..38b9f5fe0
--- /dev/null
+++ b/homebrew/cweb/.beer
@@ -0,0 +1,26 @@
+{
+ "name": "Cweb",
+ "description": "Literate documentation system for C, C++, and Java",
+ "url": "https://cs.stanford.edu/pub/cweb/cweb-3.64b.tar.gz",
+ "mirror": "https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb-3.64b.tar.gz",
+ "homepage": "https://cs.stanford.edu/~knuth/cweb.html",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "ENV.deparallelize",
+ "macrosdir = share/\"texmf/tex/generic\"",
+ "cwebinputs = lib/\"cweb\"",
+ "[bin, man1, macrosdir, elisp, cwebinputs].each(&:mkpath)",
+ "system \"make\", \"install\",",
+ "\"DESTDIR=#{bin}/\",",
+ "\"MANDIR=#{man1}\",",
+ "\"MANEXT=1\",",
+ "\"MACROSDIR=#{macrosdir}\",",
+ "\"EMACSDIR=#{elisp}\",",
+ "\"CWEBINPUTS=#{cwebinputs}\""
+ ],
+ "version": "3.64",
+ "file": "cweb.rb"
+} \ No newline at end of file
diff --git a/homebrew/cweb/.make.sh-auto b/homebrew/cweb/.make.sh-auto
new file mode 100644
index 000000000..2de7dfa2f
--- /dev/null
+++ b/homebrew/cweb/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+ENV.deparallelize
+macrosdir = share/"texmf/tex/generic"
+cwebinputs = lib/"cweb"
+[bin, man1, macrosdir, elisp, cwebinputs].each(&:mkpath)
+make DESTDIR=${PKG_DEST} install DESTDIR=#{bin}/ MANDIR=#{man1} MANEXT=1 MACROSDIR=#{macrosdir} EMACSDIR=#{elisp} CWEBINPUTS=#{cwebinputs}
diff --git a/homebrew/cweb/_metadata/description b/homebrew/cweb/_metadata/description
new file mode 100644
index 000000000..6f4890912
--- /dev/null
+++ b/homebrew/cweb/_metadata/description
@@ -0,0 +1 @@
+Literate documentation system for C, C++, and Java
diff --git a/homebrew/cweb/_metadata/homepage b/homebrew/cweb/_metadata/homepage
new file mode 100644
index 000000000..88e971602
--- /dev/null
+++ b/homebrew/cweb/_metadata/homepage
@@ -0,0 +1 @@
+https://cs.stanford.edu/~knuth/cweb.html
diff --git a/homebrew/cweb/_metadata/name b/homebrew/cweb/_metadata/name
new file mode 100644
index 000000000..02a252818
--- /dev/null
+++ b/homebrew/cweb/_metadata/name
@@ -0,0 +1 @@
+Cweb
diff --git a/homebrew/cweb/_metadata/version b/homebrew/cweb/_metadata/version
new file mode 100644
index 000000000..84e5800bb
--- /dev/null
+++ b/homebrew/cweb/_metadata/version
@@ -0,0 +1 @@
+3.64
diff --git a/homebrew/cweb/download.sh b/homebrew/cweb/download.sh
new file mode 100755
index 000000000..18f6d0ce3
--- /dev/null
+++ b/homebrew/cweb/download.sh
@@ -0,0 +1 @@
+wget https://cs.stanford.edu/pub/cweb/cweb-3.64b.tar.gz || wget https://www.ctan.org/tex-archive/web/c_cpp/cweb/cweb-3.64b.tar.gz \ No newline at end of file