substitute the right directory into tex-site.el

found by fulvio ciriaco (oivulf at gmail)
This commit is contained in:
steven 2008-05-07 05:10:30 +00:00
parent d27262d161
commit 3e5124a6c9
2 changed files with 20 additions and 6 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.6 2007/10/01 11:42:30 steven Exp $
# $OpenBSD: Makefile,v 1.7 2008/05/07 05:10:30 steven Exp $
COMMENT= extensible emacs interface for TeX
DISTNAME= auctex-11.14
PKGNAME= ${DISTNAME}p1
PKGNAME= ${DISTNAME}p2
CATEGORIES= print
HOMEPAGE= http://www.gnu.org/software/auctex/

View File

@ -1,7 +1,15 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2004/02/21 01:41:12 pvalchev Exp $
--- Makefile.orig 2004-02-03 14:20:52.000000000 -0700
+++ Makefile 2004-02-03 14:20:52.000000000 -0700
@@ -121,7 +121,7 @@ contrib:
$OpenBSD: patch-Makefile,v 1.2 2008/05/07 05:10:30 steven Exp $
--- Makefile.orig Sun Dec 15 03:15:42 2002
+++ Makefile Wed May 7 07:06:32 2008
@@ -20,6 +20,7 @@ lispdir = $(prefix)/share/emacs/site-lisp
# Where the AUC TeX emacs lisp files go.
aucdir=$(lispdir)/auctex
+finalaucdir=$(TRUEPREFIX)/share/emacs/site-lisp/auctex
# Name of your emacs binary
EMACS=emacs
@@ -121,12 +122,12 @@ contrib:
# $(ELC) hilit-LaTeX.el # Doesn't compile without X
install-lisp: some
@ -10,3 +18,9 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2004/02/21 01:41:12 pvalchev Exp $
if [ -f $(lispdir)/tex-site.el ]; \
then \
echo "Leaving old tex-site.el alone."; \
else \
- sed -e 's#@AUCDIR#$(aucdir)/#' tex-site.el \
+ sed -e 's#@AUCDIR#$(finalaucdir)/#' tex-site.el \
> $(lispdir)/tex-site.el ; \
fi
if [ ! -d $(aucdir) ]; then mkdir $(aucdir); else true; fi ;