2012-12-24 20:29:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ptex < Formula
|
|
|
|
homepage 'http://ptex.us'
|
2013-05-22 02:08:19 +00:00
|
|
|
url 'https://github.com/wdas/ptex/archive/v2.0.42.tar.gz'
|
|
|
|
sha1 '0dc69452c42ccd4a2e24d931f7a9f2d24b7e60da'
|
2012-12-24 20:29:30 +00:00
|
|
|
|
|
|
|
# fix utils/Makefile not to expect a git repo for version info
|
2014-03-20 19:05:17 +00:00
|
|
|
patch :DATA
|
2012-12-24 20:29:30 +00:00
|
|
|
|
|
|
|
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)
|