mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Add STAGEDIR support.
This commit is contained in:
parent
8097ae3ab7
commit
dd2b329114
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332522
@ -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 <bsd.port.pre.mk>
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
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 <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
11
textproc/latex2html/files/patch-config-install.pl
Normal file
11
textproc/latex2html/files/patch-config-install.pl
Normal file
@ -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 _)) {
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user