summaryrefslogtreecommitdiff
path: root/homebrew/trr
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/trr')
-rw-r--r--homebrew/trr/.beer40
-rw-r--r--homebrew/trr/.make.sh-auto11
-rw-r--r--homebrew/trr/_metadata/description1
-rw-r--r--homebrew/trr/_metadata/homepage1
-rw-r--r--homebrew/trr/_metadata/name1
-rw-r--r--homebrew/trr/_metadata/version1
-rwxr-xr-xhomebrew/trr/download.sh1
7 files changed, 56 insertions, 0 deletions
diff --git a/homebrew/trr/.beer b/homebrew/trr/.beer
new file mode 100644
index 000000000..3b049723b
--- /dev/null
+++ b/homebrew/trr/.beer
@@ -0,0 +1,40 @@
+{
+ "name": "Trr",
+ "description": "Type training program for emacs users",
+ "url": "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/trr22/trr22_0.99-5.tar.gz",
+ "mirror": null,
+ "homepage": "https://code.google.com/archive/p/trr22/",
+ "depends": [
+ {
+ "depend": "nkf",
+ "build-depend": true
+ },
+ {
+ "depend": "apel",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "system \"make\", \"clean\"",
+ "cp Dir[\"#{Formula[\"apel\"].opt_elisp}/**/*.el\"], buildpath",
+ "system \"nkf\", \"-w\", \"--overwrite\", buildpath/\"CONTENTS\"",
+ "inreplace buildpath/\"CONTENTS\", \"EmacsLisp\", \"Elisp_programs\"",
+ "system \"make\", \"clean\"",
+ "cp Dir[\"#{Formula[\"apel\"].opt_elisp}/**/*.elc\"], buildpath",
+ "texts = \"The_Constitution_Of_JAPAN Constitution_of_the_USA Iccad_90 C_programs Elisp_programs Java_programs Ocaml_programs Python_programs\"",
+ "inreplace buildpath/\"Makefile\", \"japanese = t\", \"japanese = nil\"",
+ "system \"make\", \"install\",",
+ "\"CC=#{ENV.cc}\",",
+ "\"TRRDIR=#{prefix}\",",
+ "\"INFODIR=#{info}\",",
+ "\"BINDIR=#{bin}\",",
+ "\"TEXTS=#{texts}\",",
+ "\"LISPDIR=#{elisp}\"",
+ "(prefix/\"record\").install Dir[\"record/*\"]"
+ ],
+ "version": "22_0.99",
+ "file": "trr.rb"
+} \ No newline at end of file
diff --git a/homebrew/trr/.make.sh-auto b/homebrew/trr/.make.sh-auto
new file mode 100644
index 000000000..d073efd00
--- /dev/null
+++ b/homebrew/trr/.make.sh-auto
@@ -0,0 +1,11 @@
+pkg:setup
+make clean
+cp Dir["#{Formula["apel"].opt_elisp}/**/*.el"], buildpath
+nkf -w --overwrite buildpath/"CONTENTS"
+inreplace buildpath/"CONTENTS", "EmacsLisp", "Elisp_programs"
+make clean
+cp Dir["#{Formula["apel"].opt_elisp}/**/*.elc"], buildpath
+texts = "The_Constitution_Of_JAPAN Constitution_of_the_USA Iccad_90 C_programs Elisp_programs Java_programs Ocaml_programs Python_programs"
+inreplace buildpath/"Makefile", "japanese = t", "japanese = nil"
+make DESTDIR=${PKG_DEST} install CC=${PKG_TARG}-clang TRRDIR=${PKG_TAPF} INFODIR=#{info} BINDIR=#{bin} TEXTS=#{texts} LISPDIR=#{elisp}
+(prefix/"record").install Dir["record/*"]
diff --git a/homebrew/trr/_metadata/description b/homebrew/trr/_metadata/description
new file mode 100644
index 000000000..c61346e54
--- /dev/null
+++ b/homebrew/trr/_metadata/description
@@ -0,0 +1 @@
+Type training program for emacs users
diff --git a/homebrew/trr/_metadata/homepage b/homebrew/trr/_metadata/homepage
new file mode 100644
index 000000000..9ce82a25b
--- /dev/null
+++ b/homebrew/trr/_metadata/homepage
@@ -0,0 +1 @@
+https://code.google.com/archive/p/trr22/
diff --git a/homebrew/trr/_metadata/name b/homebrew/trr/_metadata/name
new file mode 100644
index 000000000..58f295061
--- /dev/null
+++ b/homebrew/trr/_metadata/name
@@ -0,0 +1 @@
+Trr
diff --git a/homebrew/trr/_metadata/version b/homebrew/trr/_metadata/version
new file mode 100644
index 000000000..c8f9c8869
--- /dev/null
+++ b/homebrew/trr/_metadata/version
@@ -0,0 +1 @@
+22_0.99
diff --git a/homebrew/trr/download.sh b/homebrew/trr/download.sh
new file mode 100755
index 000000000..5dce8005b
--- /dev/null
+++ b/homebrew/trr/download.sh
@@ -0,0 +1 @@
+wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/trr22/trr22_0.99-5.tar.gz \ No newline at end of file