From root@gits.dyndns.org  Mon Oct  8 21:13:55 2001
Return-Path: <root@gits.dyndns.org>
Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73])
	by hub.freebsd.org (Postfix) with ESMTP id 6735637B405
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Oct 2001 21:13:54 -0700 (PDT)
Received: (qmail 34462059 invoked by uid 0); 9 Oct 2001 04:13:52 -0000
Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender <root@gits.dyndns.org>)
          by 212.198.2.73 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <nik@freebsd.org>; 9 Oct 2001 04:13:52 -0000
Received: (from root@localhost)
	by gits.dyndns.org (8.11.6/8.11.6) id f994DpE00967;
	Tue, 9 Oct 2001 06:13:51 +0200 (CEST)
	(envelope-from root)
Message-Id: <200110090413.f994DpE00967@gits.dyndns.org>
Date: Tue, 9 Oct 2001 06:13:51 +0200 (CEST)
From: Cyrille Lefevre <clefevre@citeweb.net>
Reply-To: Cyrille Lefevre <clefevre@citeweb.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: nik@freebsd.org
Subject: print/jadetex is missing mktexlsr in pkg-plist
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31151
>Category:       ports
>Synopsis:       print/jadetex is missing mktexlsr in pkg-plist
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    nik
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 08 21:20:01 PDT 2001
>Closed-Date:    Mon Dec 3 12:16:05 PST 2001
>Last-Modified:  Mon Dec 03 12:16:14 PST 2001
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 4.4-RC i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 4.4-RC FreeBSD 4.4-RC #7: Thu Sep 20 12:40:17 CEST 2001 root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM i386

>Description:
	mktexlsr is well called from Makefile but not from the pkg-plist.
	this cause jadetex to not be recognized by tex at runtime.

	Makefile
		MAINTAINER email adress fixed
		PREFIX changed to LOCALBASE where needed
		pkg-message handling added
		do-install rewritten (long lines wrapped)
	pkg-message
		/usr/local changed to LOCALBASE
	pkg-plist
		@comment $FreeBSD$ added
		@exec mktexlsr added
>How-To-Repeat:
	pkg_add -r jadetex
	tex "&jadetex" ' \nonstopmode\input{article.tex-ps}'
>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/print/jadetex/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile	2001/09/11 02:59:19	1.19
+++ Makefile	2001/10/09 04:08:26
@@ -11,29 +11,42 @@
 MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	jadetex
 
-MAINTAINER=		nik
+MAINTAINER=		nik@FreeBSD.org
 
 BUILD_DEPENDS=		hugelatex:${PORTSDIR}/print/hugelatex
 LIB_DEPENDS=		png.5:${PORTSDIR}/graphics/png
 RUN_DEPENDS=		tex:${PORTSDIR}/print/teTeX
 
-MAKE_ENV=		TEXMFCNF=${FILESDIR}:${PREFIX}/share/texmf/web2c
+MAKE_ENV=		TEXMFCNF=${FILESDIR}:${LOCALBASE}/share/texmf/web2c
 
 WRKSRC=			${WRKDIR}/${PORTNAME}
-MESSAGE=		${WRKDIR}/pkg-message
 
-post-extract:
+MESSAGE=		${PKGDIR}/pkg-message
+PKGMESSAGE=		${WRKDIR}/pkg-message
+
+post-patch: patch-makefile patch-message
+
+patch-makefile:
 	@${ECHO} all: betterdefault > ${WRKSRC}/Makefile.tmp
 	@${ECHO} betterdefault: jadetex.fmt pdfjadetex.fmt >> ${WRKSRC}/Makefile.tmp
 	@${CAT} ${WRKSRC}/Makefile >> ${WRKSRC}/Makefile.tmp
 	@${MV} ${WRKSRC}/Makefile.tmp ${WRKSRC}/Makefile
 
+patch-message:
+	@${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${MESSAGE} > ${PKGMESSAGE}
+
 do-install:
-	@(cd ${WRKSRC} && ${INSTALL_DATA} jadetex.fmt pdfjadetex.fmt `kpsewhich -expand-var '$$TEXMFMAIN'`/web2c && ${MKDIR} -m 555 `kpsewhich -expand-var '$$TEXMFMAIN'`/tex/jadetex && ${INSTALL_DATA} dsssl.def jadetex.ltx `kpsewhich -expand-var '$$TEXMFMAIN'`/tex/jadetex)
+	@cd ${WRKSRC}; TEXMFMAIN=$$(kpsewhich -expand-var '$$TEXMFMAIN'); \
+	 ${INSTALL_DATA} jadetex.fmt pdfjadetex.fmt $$TEXMFMAIN/web2c; \
+	 ${MKDIR} -m 555 $$TEXMFMAIN/tex/jadetex; \
+	 ${INSTALL_DATA} dsssl.def jadetex.ltx $$TEXMFMAIN/tex/jadetex
+
+post-install: rebuild-tex-database display-message
+
+rebuild-tex-database:
+	${LOCALBASE}/bin/mktexlsr
 
-post-install:
-	${PREFIX}/bin/mktexlsr
-	@${SED} -e 's,/usr/local,${PREFIX},' ${PKGMESSAGE} > ${MESSAGE}
-	@${CAT} ${MESSAGE}
+display-message:
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-message
===================================================================
RCS file: /home/ncvs/ports/print/jadetex/pkg-message,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pkg-message
--- pkg-message	1998/12/08 21:08:28	1.1.1.1
+++ pkg-message	2001/10/09 04:04:35
@@ -1,6 +1,6 @@
 JadeTeX uses quite a lot of TeX's resources.  You may find it
 necessary to increase the size of some of TeX's resource pools by
-editing the file /usr/local/share/texmf/web2c/texmf.cnf with any text
+editing the file %%LOCALBASE%%/share/texmf/web2c/texmf.cnf with any text
 editor.
 
 For example, to typeset the FreeBSD Handbook with JadeTeX, change the
@@ -11,6 +11,6 @@
 	  max_strings = 70000
 	  save_size = 10000
 
-If you change /usr/local/share/texmf/web2c/texmf.cnf, delete the word
+If you change %%LOCALBASE%%/share/texmf/web2c/texmf.cnf, delete the word
 "original" on line 1 of the file.  This will prevent future
 installations of TeX from overwriting changes you've made.
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/print/jadetex/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist	2001/01/03 17:20:20	1.3
+++ pkg-plist	2001/10/09 04:11:03
@@ -1,6 +1,8 @@
+@comment $FreeBSD$
 share/texmf/tex/jadetex/dsssl.def
 share/texmf/tex/jadetex/jadetex.ltx
 share/texmf/web2c/jadetex.fmt
 share/texmf/web2c/pdfjadetex.fmt
 @dirrm share/texmf/tex/jadetex
+@exec %D/bin/mktexlsr
 @unexec %D/bin/mktexlsr
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->nik 
Responsible-Changed-By: petef 
Responsible-Changed-When: Mon Oct 8 21:43:10 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31151 
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Mon Dec 3 12:16:05 PST 2001 
State-Changed-Why:  
Fixed.  Ta. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31151 
>Unformatted:
