ports/54372: new port: FoilTeX - a collection of LaTeX files for making foils/slides
Stefan Walter
sw at gegenunendlich.de
Fri Nov 7 10:10:20 UTC 2003
The following reply was made to PR ports/54372; it has been noted by GNATS.
From: Stefan Walter <sw at gegenunendlich.de>
To: freebsd-gnats-submit at freebsd.org
Cc:
Subject: Re: ports/54372: new port: FoilTeX - a collection of LaTeX files for making foils/slides
Date: Fri, 7 Nov 2003 11:04:17 +0100
I hope these are the last changes. This patch is against the last shar I
sent.
Changes:
- Create a pkg-install script for automatic execution of mktexlsr when
installing via pkg_add
- Call that script from the post-install target
- Remove the obsolete pkg-message
--- beginning of foiltex-final.patch ---
diff -urN foiltex.alt/Makefile foiltex/Makefile
--- foiltex.alt/Makefile Fri Nov 7 10:46:20 2003
+++ foiltex/Makefile Fri Nov 7 10:44:34 2003
@@ -1,5 +1,5 @@
# New ports collection makefile for: foiltex
-# Date created: 05 November 2003
+# Date created: 07 November 2003
# Whom: Stefan Walter <sw at gegenunendlich.de>
#
# $FreeBSD$
@@ -57,6 +57,7 @@
@${INSTALL_DATA} ${FOIL_FILES} ${FOIL_DIR}
post-install:
- @${LOCALBASE}/bin/mktexlsr
+ ${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \
+ ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff -urN foiltex.alt/pkg-install foiltex/pkg-install
--- foiltex.alt/pkg-install Thu Jan 1 01:00:00 1970
+++ foiltex/pkg-install Fri Nov 7 10:39:46 2003
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+[ -z "${LOCALBASE}" ] && LOCALBASE=/usr/local
+
+if [ "$2" = "POST-INSTALL" ]; then
+ echo "Updating content cache to let LaTeX know about the new style files:"
+ if [ -x ${LOCALBASE}/bin/mktexlsr ]; then
+ ${LOCALBASE}/bin/mktexlsr
+ else
+ echo "Could not find mktexlsr. Please run it manually to update"
+ echo "LaTeX's content cache, or you won't be able to use the"
+ echo "new style files."
+ fi
+fi
diff -urN foiltex.alt/pkg-message foiltex/pkg-message
--- foiltex.alt/pkg-message Fri Nov 7 10:46:20 2003
+++ foiltex/pkg-message Thu Jan 1 01:00:00 1970
@@ -1,5 +0,0 @@
-*********************************************
-You will probably need to update the content
-cache (e.g. by running 'mktexlsr') before you
-can use the style files of this package.
-*********************************************
--- end of foiltex-final.patch ---
More information about the freebsd-ports-bugs
mailing list