From owner-svn-ports-head@FreeBSD.ORG Sat Nov 2 17:34:45 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 60AEEFD4; Sat, 2 Nov 2013 17:34:45 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDD42F9E; Sat, 2 Nov 2013 17:34:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA2HYjuv072856; Sat, 2 Nov 2013 17:34:45 GMT (envelope-from hrs@svn.freebsd.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA2HYihD072850; Sat, 2 Nov 2013 17:34:44 GMT (envelope-from hrs@svn.freebsd.org) Message-Id: <201311021734.rA2HYihD072850@svn.freebsd.org> From: Hiroki Sato Date: Sat, 2 Nov 2013 17:34:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332522 - in head/textproc/latex2html: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2013 17:34:45 -0000 Author: hrs Date: Sat Nov 2 17:34:44 2013 New Revision: 332522 URL: http://svnweb.freebsd.org/changeset/ports/332522 Log: Add STAGEDIR support. Added: head/textproc/latex2html/files/patch-config-install.pl (contents, props changed) Modified: head/textproc/latex2html/Makefile head/textproc/latex2html/pkg-plist Modified: head/textproc/latex2html/Makefile ============================================================================== --- head/textproc/latex2html/Makefile Sat Nov 2 17:26:11 2013 (r332521) +++ head/textproc/latex2html/Makefile Sat Nov 2 17:34:44 2013 (r332522) @@ -11,41 +11,34 @@ MASTER_SITE_SUBDIR= support/${PORTNAME} MAINTAINER= hrs@FreeBSD.org COMMENT= Convert LaTeX documents to HTML -BUILD_DEPENDS= ${LOCALBASE}/bin/dvips:${PORTSDIR}/print/dvipsk-tetex \ - ${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm +BUILD_DEPENDS= ${LOCALBASE}/bin/anytopnm:${PORTSDIR}/graphics/netpbm RUN_DEPENDS:= ${BUILD_DEPENDS} CONFLICTS= ja-latex2html-[0-9]* -USES= perl5 -USE_GHOSTSCRIPT= yes -USE_TEX= latex dvipsk -GNU_CONFIGURE= yes +USES= perl5 +USE_GHOSTSCRIPT=yes +USE_TEX= latex dvipsk texhash +GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-perl=${PERL} \ --disable-gif \ --shlibdir=${DATADIR} \ - --with-texpath=${PREFIX}/${TEXMFDIR}/tex/latex/html + --with-texpath=${PREFIX}/${TEXMFDIR}/tex/latex/html \ + --without-mktexlsr SUB_FILES= pkg-message -PLIST_SUB= TEXMFDIR=${TEXMFDIR} MKTEXLSR=${MKTEXLSR} - -MAN1= latex2html.1 - -TEXMFDIR= share/texmf -MKTEXLSR= ${LOCALBASE}/bin/mktexlsr +PLIST_SUB= TEXMFDIR=${TEXMFDIR} +TEXHASHDIRS= ${TEXMFDIR} PORTDOCS= FAQ INSTALL LICENSE README -NO_STAGE= yes -.include +OPTIONS_DEFINE= DOCS + +.include post-install: - ${INSTALL_MAN} ${FILESDIR}/latex2html.1 ${MANPREFIX}/man/man1 -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor + ${INSTALL_MAN} ${FILESDIR}/latex2html.1 ${STAGEDIR}${MANPREFIX}/man/man1 +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .endif - @${MKTEXLSR} ${PREFIX}/${TEXMFDIR} - @${CAT} ${PKGMESSAGE} -.include +.include Added: head/textproc/latex2html/files/patch-config-install.pl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/latex2html/files/patch-config-install.pl Sat Nov 2 17:34:44 2013 (r332522) @@ -0,0 +1,11 @@ +--- config/install.pl.orig 2002-11-29 20:49:01.000000000 +0900 ++++ config/install.pl 2013-11-03 02:31:07.000000000 +0900 +@@ -372,7 +372,7 @@ + + if($cfg{TEXPATH}) { + print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n"; +- unless(mkpath($cfg{TEXPATH})) { ++ unless(mkpath($ENV{DESTDIR}.$cfg{TEXPATH})) { + #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html + #$testpath =~ s/[$dd$dd][^$dd$dd]*$//; + #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) { Modified: head/textproc/latex2html/pkg-plist ============================================================================== --- head/textproc/latex2html/pkg-plist Sat Nov 2 17:26:11 2013 (r332521) +++ head/textproc/latex2html/pkg-plist Sat Nov 2 17:34:44 2013 (r332522) @@ -4,6 +4,7 @@ bin/pstoimg bin/texexpand lib/latex2html/cfgcache.pm lib/latex2html/l2hconf.pm +man/man1/latex2html.1.gz %%DATADIR%%/IndicTeX-HTML/README %%DATADIR%%/IndicTeX-HTML/bengali.perl %%DATADIR%%/IndicTeX-HTML/bengali.sty @@ -315,8 +316,6 @@ lib/latex2html/l2hconf.pm %%TEXMFDIR%%/tex/latex/html/techexplHTML.tex %%TEXMFDIR%%/tex/latex/html/url.sty %%TEXMFDIR%%/tex/latex/html/verbatimfiles.sty -@exec %%MKTEXLSR%% %D/%%TEXMFDIR%% -@unexec %%MKTEXLSR%% %D/%%TEXMFDIR%% @dirrm lib/latex2html @dirrm %%DATADIR%%/IndicTeX-HTML @dirrm %%DATADIR%%/L2hos