aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJonathan Ragan-Kelley2012-12-24 15:29:30 -0500
committerAdam Vandenberg2013-01-14 21:44:47 -0800
commitf9e297a3fe0381e281d6728857acfa8c425fb024 (patch)
tree0c443c50a2d38d677d5fb70558d7e5db9bdd2a7d /Library
parent87f468238a79a93f5c48ec54708ba601a97b7a33 (diff)
downloadhomebrew-f9e297a3fe0381e281d6728857acfa8c425fb024.tar.bz2
Ptex 2.0.32
Closes #16735. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ptex.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/ptex.rb b/Library/Formula/ptex.rb
new file mode 100644
index 000000000..78013b752
--- /dev/null
+++ b/Library/Formula/ptex.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class Ptex < Formula
+ homepage 'http://ptex.us'
+ url 'https://github.com/wdas/ptex/archive/v2.0.32.tar.gz'
+ sha1 '2e720684d025e948364ebd56ecd00a4934d3a9d6'
+
+ # fix utils/Makefile not to expect a git repo for version info
+ def patches
+ DATA
+ end
+
+ def install
+ ENV.deparallelize # not parallel safe due to weird dep without rules for ../ptex/libPtex.a in utils/Makefile
+ system 'make -C src'
+ prefix.install Dir['install/*']
+ end
+end
+
+__END__
+diff --git a/src/utils/Makefile b/src/utils/Makefile
+index 7638871..08a491a 100644
+--- a/src/utils/Makefile
++++ b/src/utils/Makefile
+@@ -38,8 +38,8 @@ all: install $(ALL)
+ clean:
+ rm -f $(ALL) $(INSTALLPATHS)
+
+-PTEX_SHA = $(shell git rev-list --max-count=1 HEAD)
+-PTEX_VER = $(shell git describe $(PTEX_SHA)) ($(PTEX_SHA))
++PTEX_SHA = 2f04c865fc921c4f90c581f1b6c04c566865c98a
++PTEX_VER = v2.0.32 ($(PTEX_SHA))
+
+ ptxinfo: ptxinfo.cpp $(PTEX)
+ $(CXX) $(CXXFLAGS) -DPTEX_VER='"$(PTEX_VER)"' $^ -o $@ $(LIBS)