1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/math/pari-devel/files/patch-af
Mark Linimon 39e1c1961c Workaround for problems installing this port on systems with emacs
already installed.  While here, fixed plist.

PR:		ports/62029
Submitted by:	Yoshiaki Uchikawa <yoshiaki@kt.rim.or.jp> (maintainer)
2004-01-31 08:10:58 +00:00

95 lines
3.1 KiB
Plaintext

--- config/Makefile.SH.orig Wed Dec 17 07:44:36 2003
+++ config/Makefile.SH Wed Jan 28 23:21:55 2004
@@ -255,9 +255,12 @@
INCLUDEDIR= \$(DESTDIR)$includedir
LIBDIR = \$(DESTDIR)$libdir
BINDIR = \$(DESTDIR)$bindir
-MANDIR = \$(DESTDIR)$mandir
+MANDIR = \$(DESTDIR)\${PREFIX}/man/man1
EMACSDIR = \$(DESTDIR)$emacsdir
-DATADIR = \$(DESTDIR)$datadir
+#DATADIR = \$(DESTDIR)$datadir
+ALLDIR =\${PREFIX}/share/doc/pari
+READMEDIR = \$(ALLDIR)
+DATADIR = \$(ALLDIR)
SYSDATADIR= \$(DESTDIR)$sysdatadir
EXDIR = \$(DATADIR)/examples
@@ -403,7 +406,7 @@
-\$(RM) \$(MANDIR)/pari.1
-\$(LN) gp.1 \$(MANDIR)/pari.1
-install-misc: $install_emacs_files
+install-misc: $install_emacs_files install-top
-mkdir -p \$(MISCDIR) \$(BINDIR)
\$(INSTALL_PROGRAM) $misc/tex2mail \$(BINDIR)
\$(INSTALL_DATA) $doc/tex2mail.1 \$(MANDIR)
@@ -416,6 +419,19 @@
\$(INSTALL_DATA) $misc/pari.xpm \$(MISCDIR)
\$(INSTALL_PROGRAM) $misc/xgp \$(MISCDIR)
+install-top::
+ -mkdir -p \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/AUTHORS \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/Announce.2.1 \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/CHANGES \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/COMPAT \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/COPYING \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/CVS.txt \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/MACHINES \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/NEW \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/README \$(READMEDIR)
+ \$(INSTALL_DATA) $TOP/TODO \$(READMEDIR)
+
install-cfg::
-mkdir -p \$(SYSDATADIR) \$(DATADIR)/PARI
\$(INSTALL_DATA) $desc/pari.desc \$(DATADIR)
@@ -424,7 +440,7 @@
install-doc::
-mkdir -p \$(BINDIR) \$(DOCDIR)
- -cd $doc; \$(MAKE) all
+# -cd $doc; \$(MAKE) all
-\$(INSTALL_PROGRAM) $doc/gphelp \$(BINDIR)
-\$(INSTALL_DATA) $doc/Makefile \$(DOCDIR)
-\$(INSTALL_DATA) $doc/translations \$(DOCDIR)
@@ -442,10 +458,10 @@
-\$(INSTALL_DATA) $doc/usersch4.tex \$(DOCDIR)
-\$(INSTALL_DATA) $doc/usersch5.tex \$(DOCDIR)
-\$(INSTALL_DATA) $doc/paricfg.tex \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/users.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/tutorial.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/refcard.dvi \$(DOCDIR)
- -\$(INSTALL_DATA) $doc/refcard.ps \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/users.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/tutorial.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/refcard.dvi \$(DOCDIR)
+# -\$(INSTALL_DATA) $doc/refcard.ps \$(DOCDIR)
install-examples:
-mkdir -p \$(EXDIR)
@@ -540,15 +556,16 @@
if test -n "$emacs"; then
cat >> $file << EOT
-elc:
- @echo "Byte-Compiling elisp files..."
- -cd $emx; $emacs -batch \
- --eval '(setq load-path (append (list ".") load-path))' \
- -f batch-byte-compile *.el
+#elc:
+# @echo "Byte-Compiling elisp files..."
+# -cd $emx; $emacs -batch \
+# --eval '(setq load-path (append (list ".") load-path))' \
+# -f batch-byte-compile *.el
-$install_emacs_files: elc
+$install_emacs_files: #elc
-mkdir -p \$(EMACSDIR)
- -cd $emx; for f in *.elc *.el pariemacs.txt; do \
+# -cd $emx; for f in *.elc *.el pariemacs.txt; do \
+ -cd $emx; for f in *.el pariemacs.txt; do \
\$(INSTALL_DATA) \$\$f \$(EMACSDIR); \
done
EOT