Bug 12410 - latex2html port asume perl is in /usr/local/bin
Summary: latex2html port asume perl is in /usr/local/bin
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: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-06-27 12:50 UTC by k
Modified: 1999-06-28 11:00 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 k 1999-06-27 12:50:00 UTC
 	The latex2html port in $(PORTS)/textproc asume that perl is located in 
	/usr/local/bin. 
	
	head -n 1 `which latex2html` gives #!/usr/local/bin/perl 
 	which should be #!/usr/bin/perl on a new system with perl 
	in the base system.	

	I don't know the correct way to fix this. I guess that $(PERL) 
	should be used somehow, but where?
Comment 1 cpiazza freebsd_committer freebsd_triage 1999-06-28 07:03:50 UTC
State Changed
From-To: open->closed

Fixed, thanks! 

Comment 2 Johan.Karlsson 1999-06-28 10:52:06 UTC
When trying to run after a fresh install, I noted that there are more
places this needs to be done in this port.

Here is a diff (which _is_ cut-n-pasted):

*** Makefile.orig       Mon Jun 28 11:40:15 1999
--- Makefile    Mon Jun 28 11:44:17 1999
***************
*** 27,32 ****
--- 27,38 ----
  
  post-patch:
        @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/latex2html
+       @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/configure-pstoimg
+       @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/install-test
+       @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/makemap
+       @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/pstoimg
+       @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/pstoimg_nopipes
+       @${PERL} -pi -e 's:/usr/local/bin/perl:${PERL}:'
${WRKSRC}/texexpand
  
  do-install:
        @${MKDIR} ${PREFIX}/share/latex2html


/Johan
-- 
Johan Karlsson              Phone : +46 (0)920 720 16 
Systemteknik, Datalogi      Fax   : +46 (0)920 721 91 
Luleå Tekniska Universitet  E-mail: Johan.Karlsson@SM.LuTH.SE
S-971 87 LULEÅ, SWEDEN