aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2015-04-20 14:45:24 +0100
committerMike McQuaid2015-04-24 18:35:05 +0100
commit270b65d62c384b9e5d27378e861d7bbf535b8d0c (patch)
tree7b3346e985dda4e7e21ff03c68371835903eb730
parentd4739a089cf9092eda3bafe3103b2fcc4ccae62d (diff)
downloadhomebrew-270b65d62c384b9e5d27378e861d7bbf535b8d0c.tar.bz2
tex: migrate formulae to Homebrew/tex
Migrate the mandatory Tex dependants to Homebrew/tex. Part 1 of #38819.
-rw-r--r--Library/Formula/auctex.rb68
-rw-r--r--Library/Formula/chktex.rb21
-rw-r--r--Library/Formula/latex-mk.rb15
-rw-r--r--Library/Formula/pdfjam.rb17
-rw-r--r--Library/Formula/pplatex.rb18
5 files changed, 0 insertions, 139 deletions
diff --git a/Library/Formula/auctex.rb b/Library/Formula/auctex.rb
deleted file mode 100644
index 2881806c0..000000000
--- a/Library/Formula/auctex.rb
+++ /dev/null
@@ -1,68 +0,0 @@
-class Auctex < Formula
- homepage "https://www.gnu.org/software/auctex/"
- url "http://ftpmirror.gnu.org/auctex/auctex-11.88.tar.gz"
- mirror "https://ftp.gnu.org/gnu/auctex/auctex-11.88.tar.gz"
- sha1 "098a9751c4e00812e61d62a0184a07d9753904df"
-
- head do
- url "git://git.savannah.gnu.org/auctex.git"
- depends_on "autoconf" => :build
- end
-
- depends_on :tex
-
- option "with-emacs=", "Path to an emacs binary"
-
- def which_emacs
- emacs = ARGV.value("with-emacs") || which("emacs").to_s
- fail "#{emacs} not found" unless File.exist? emacs
- emacs
- end
-
- def install
- # configure fails if the texmf dir is not there yet
- brew_texmf = share/"texmf"
- brew_texmf.mkpath
-
- system "./autogen.sh" if build.head?
-
- system "./configure", "--prefix=#{prefix}",
- "--with-texmf-dir=#{brew_texmf}",
- "--with-emacs=#{which_emacs}",
- "--with-lispdir=#{share}/emacs/site-lisp"
-
- system "make"
- ENV.deparallelize # Needs a serialized install
- system "make", "install"
- end
-
- def caveats
- # check if the used emacs is in HOMEBREW_PREFIX/bin
- # for which case HOMEBREW_PREFIX/share/emacs/site-lisp should already
- # be by default in the load-path
- if which_emacs.index("#{HOMEBREW_PREFIX}/bin")
- dot_emacs = <<-EOS
- (require 'tex-site)
- EOS
- else
- dot_emacs = <<-EOS
- (add-to-list 'load-path "#{HOMEBREW_PREFIX}/share/emacs/site-lisp")
- (require 'tex-site)
- EOS
- end
-
- <<-EOS.undent
- texmf files installed into:
- #{HOMEBREW_PREFIX}/share/texmf/
-
- You can add it to your TEXMFHOME using:
- sudo tlmgr conf texmf TEXMFHOME "~/Library/texmf:#{HOMEBREW_PREFIX}/share/texmf"
-
- Emacs package installed into:
- #{HOMEBREW_PREFIX}/share/emacs/site-lisp
-
- To activate, add the following to your .emacs:
-#{dot_emacs}
- EOS
- end
-end
diff --git a/Library/Formula/chktex.rb b/Library/Formula/chktex.rb
deleted file mode 100644
index 11d8f3eb7..000000000
--- a/Library/Formula/chktex.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-class Chktex < Formula
- homepage "http://www.nongnu.org/chktex/"
- url "http://download.savannah.gnu.org/releases/chktex/chktex-1.7.2.tar.gz"
- sha256 "d7f37985e3a122990f2a29fe7cac5d1f31acb1e50035457ef7ceb07c30550158"
-
- depends_on :tex
-
- def install
- system "./configure", "--prefix=#{prefix}"
- system "make", "install"
- end
-
- test do
- (testpath/"test.tex").write <<-EOS.undent
- \begin{document}
- Hello world
- \end{document}
- EOS
- system bin/"chktex", "test.tex"
- end
-end
diff --git a/Library/Formula/latex-mk.rb b/Library/Formula/latex-mk.rb
deleted file mode 100644
index 0c88e418d..000000000
--- a/Library/Formula/latex-mk.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'formula'
-
-class LatexMk < Formula
- homepage 'http://latex-mk.sourceforge.net/index.html'
- url 'https://downloads.sourceforge.net/project/latex-mk/latex-mk/latex-mk-2.1/latex-mk-2.1.tar.gz'
- sha1 '8460fd1f3c716e5759828c2a5af76eeafbce8d10'
-
- depends_on :tex
-
- def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
- system "make install"
- end
-end
diff --git a/Library/Formula/pdfjam.rb b/Library/Formula/pdfjam.rb
deleted file mode 100644
index fc871aa3f..000000000
--- a/Library/Formula/pdfjam.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-class Pdfjam < Formula
- homepage "https://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam"
- url "https://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/pdfjam_208.tgz"
- sha256 "c731c598cfad076c985526ff89cbf34423a216101aa5e2d753a71de119ecc0f3"
- version "2.08"
-
- depends_on :tex
-
- def install
- bin.install Dir["bin/*"]
- man.install "man1"
- end
-
- test do
- system "#{bin}/pdfjam", "-h"
- end
-end
diff --git a/Library/Formula/pplatex.rb b/Library/Formula/pplatex.rb
deleted file mode 100644
index 1c38e7900..000000000
--- a/Library/Formula/pplatex.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-class Pplatex < Formula
- homepage "http://www.stefant.org/web/projects/software/pplatex.html"
- url "https://dl.dropbox.com/u/12697903/pplatex/pplatex-1.0-rc1-src.tar.gz"
- sha1 "d437c64a8263eeb45ded4f57df8cce29080a92d0"
-
- depends_on "scons" => :build
- depends_on "pcre"
- depends_on :tex
-
- def install
- scons "PCREPATH=#{Formula["pcre"].opt_prefix}"
- bin.install "bin/pplatex", "bin/ppdflatex"
- end
-
- test do
- system "#{bin}/pplatex", "-h"
- end
-end