Created
May 15, 2013 17:46
-
-
Save dotemacs/5585866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Opendetex < Formula | |
homepage 'https://code.google.com/p/opendetex/' | |
url 'https://opendetex.googlecode.com/files/opendetex-2.8.1.tar.bz2' | |
sha1 'd62d39d383eec66ba945090616d1d10b853a98fb' | |
def install | |
inreplace "Makefile", "/usr/local/bin", prefix | |
system "make", "install" | |
end | |
end | |
__END__ | |
diff --git a/Makefile.orig b/Makefile | |
index 4f014a5..9969c3a 100644 | |
--- a/Makefile.orig | |
+++ b/Makefile | |
@@ -130,8 +130,10 @@ install: detex | |
# install -c -m 775 -o binary -g staff -s detex ${DESTDIR} | |
# rm -f ${DESTDIR}/delatex | |
# ln ${DESTDIR}/detex ${DESTDIR}/delatex | |
- sudo install detex /usr/local/bin | |
- sudo install detex /usr/local/bin/delatex | |
+ mkdir -p ${DESTDIR}/{bin,share/man/man1} | |
+ install detex ${DESTDIR}/bin | |
+ ln -s ${DESTDIR}/bin/detex ${DESTDIR}/bin/delatex | |
+ install detex.1l ${DESTDIR}/share/man/man1/detex.1 | |
clean: | |
-rm -f a.out core *.s *.o ERRS errs .,* .emacs_[0-9]* | |
diff --git a/detex.1l.orig b/detex.1l | |
index 93e7100..c368daa 100644 | |
--- a/detex.1l.orig | |
+++ b/detex.1l | |
@@ -1,4 +1,4 @@ | |
-.TH DETEX 1L "12 August 1993" "Purdue University" | |
+.TH DETEX 1 "12 August 1993" "Purdue University" | |
.SH NAME | |
detex \- a filter to strip \fITeX\fP commands from a .tex file. | |
.SH SYNOPSIS | |
@@ -103,7 +103,7 @@ The old functionality can be essentially duplicated by using the | |
.B \-s | |
option. | |
.SH SEE ALSO | |
-tex(1L) | |
+tex(1) | |
.SH DIAGNOSTICS | |
Nesting of \\input is allowed but the number of opened files must not | |
exceed the system's limit on the number of simultaneously opened files. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment