Bug 59553 - teTeX installs texdoctk without depending on p5-Tk
Summary: teTeX installs texdoctk without depending on p5-Tk
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 15:40 UTC by Rong-En Fan
Modified: 2006-05-20 17:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rong-En Fan 2003-11-21 15:40:18 UTC
	teTeX installs texdoctk, which is a perl script that uses
	p5-Tk, but ports doesn't install it for me.

Fix: 

I'm not sure whethere teTeX should always depeneds on p5-Tk
	or use an options toggleing this. So, leave to maintainer.
How-To-Repeat: 	install teTeX and run texdoctk
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2003-11-21 15:57:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

Over to maintainer.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2004-05-27 07:20:50 UTC
State Changed
From-To: open->feedback

Has there been any progress on this one?
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2004-07-20 14:42:13 UTC
A dependency on p5-Tk would be very unfortunate since it requires perl 5.8.
Maybe somebody can come up with a wrapper who suggest to install the port  
and points out the caveat?

Volker
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2004-07-22 07:06:02 UTC
Responsible Changed
From-To: demon->hrs

Over to current maintainer.
Comment 5 Rong-En Fan 2006-05-02 02:00:35 UTC
On Tue, Jul 20, 2004 at 03:42:13PM +0200, Volker Stolz wrote:
> A dependency on p5-Tk would be very unfortunate since it requires perl 5.8.
> Maybe somebody can come up with a wrapper who suggest to install the port  
> and points out the caveat?
> 
> Volker

How about the one below? If maintainter does not think this is
a good idea, I suggest at least we show some words in the pkg-message.

Let's finish this old PR :-)

Regards,
Rong-En Fan
===========================================
diff -ruN --exclude=CVS /usr/ports/print/teTeX-base/Makefile /home/rafan/tmp/ports/teTeX-base/Makefile
--- /usr/ports/print/teTeX-base/Makefile	Wed Mar 29 04:01:41 2006
+++ /home/rafan/tmp/ports/teTeX-base/Makefile	Tue May  2 08:16:48 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	teTeX-base
 PORTVERSION=	3.0
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	print
 MASTER_SITES=	${MASTER_SITE_TEX_CTAN} \
 		ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:1
@@ -171,6 +171,8 @@
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/utils/texinfo/util/texi2dvi ${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/utils/texinfo/util/texi2pdf ${PREFIX}/bin
+	${MV} -f ${PREFIX}/bin/texdoctk ${PREFIX}/bin/texdoctk.real
+	${INSTALL_SCRIPT} ${FILESDIR}/texdoctk.wrapper ${PREFIX}/bin/texdoctk
 	${MKTEXLSR}
 	@${ECHO_MSG}
 	@${CAT} ${PKGMESSAGE}
diff -ruN --exclude=CVS /usr/ports/print/teTeX-base/files/texdoctk.wrapper /home/rafan/tmp/ports/teTeX-base/files/texdoctk.wrapper
--- /usr/ports/print/teTeX-base/files/texdoctk.wrapper	Thu Jan  1 08:00:00 1970
+++ /home/rafan/tmp/ports/teTeX-base/files/texdoctk.wrapper	Tue May  2 06:26:52 2006
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Check if Tk module installed or not.
+perl -MTk -e '' 2>/dev/null
+
+if [ $? -ne 0 ]; then
+	echo "You don't have perl module Tk installed. To use $0,"
+	echo "install the x11-toolkits/p5-Tk port (requires Perl 5.8 or higher)."
+	echo "Then, try it again."
+	exit 1
+fi
+
+exec texdoctk.real "$@"
diff -ruN --exclude=CVS /usr/ports/print/teTeX-base/pkg-plist /home/rafan/tmp/ports/teTeX-base/pkg-plist
--- /usr/ports/print/teTeX-base/pkg-plist	Thu Mar  3 01:58:32 2005
+++ /home/rafan/tmp/ports/teTeX-base/pkg-plist	Tue May  2 06:27:26 2006
@@ -86,6 +86,7 @@
 bin/texconfig-sys
 bin/texdoc
 bin/texdoctk
+bin/texdoctk.real
 bin/texexec
 bin/texlinks
 bin/updmap
===========================================
Comment 6 Hiroki Sato freebsd_committer freebsd_triage 2006-05-20 17:41:48 UTC
State Changed
From-To: feedback->closed

Committed with some modification.  Thank you for submitting!