Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2003 02:10:21 -0800 (PST)
From:      Stefan Walter <sw@gegenunendlich.de>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/54335: new port: PPower4 - Post processor for PDF presentations made with (La)TeX
Message-ID:  <200311071010.hA7AAL66015534@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/54335; it has been noted by GNATS.

From: Stefan Walter <sw@gegenunendlich.de>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/54335: new port: PPower4 - Post processor for PDF presentations made with (La)TeX
Date: Fri, 7 Nov 2003 11:07:14 +0100

 As with the foiltex port - I hope this is the final version. Changes:
 - Add a pkg-install script for automatic execution of mktexlsr when
   installing via pkg_add
 - Call that script from post-install
 - Remove the obsolete pkg-message
 
 --- beginning of ppower4-final.patch ---
 diff -urN ppower4.alt/Makefile ppower4/Makefile
 --- ppower4.alt/Makefile	Fri Nov  7 10:48:58 2003
 +++ ppower4/Makefile	Fri Nov  7 10:52:40 2003
 @@ -1,5 +1,5 @@
  # New ports collection makefile for:	ppower4
 -# Date created:		10 July 2003
 +# Date created:		07 November 2003
  # Whom:			Stefan Walter <sw@gegenunendlich.de>
  #
  # $FreeBSD$
 @@ -60,6 +60,7 @@
  	@${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4
  
  post-install:
 -	@${LOCALBASE}/bin/mktexlsr
 +	${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \
 +		${PKGNAME} POST-INSTALL
  
  .include <bsd.port.mk>
 diff -urN ppower4.alt/pkg-install ppower4/pkg-install
 --- ppower4.alt/pkg-install	Thu Jan  1 01:00:00 1970
 +++ ppower4/pkg-install	Fri Nov  7 10:49:11 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 ppower4.alt/pkg-message ppower4/pkg-message
 --- ppower4.alt/pkg-message	Fri Nov  7 10:48:58 2003
 +++ ppower4/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 ppower4-final.patch ---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311071010.hA7AAL66015534>