diff options
author | minskim <minskim@pkgsrc.org> | 2012-04-25 15:47:49 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2012-04-25 15:47:49 +0000 |
commit | 8163355fbde219b0b68736a877c730158cce9123 (patch) | |
tree | 737d4ddb9f6a1aecb10c8734ef8a9601c8beaf9a /print/tex-texdoc | |
parent | 0ae0f7192fd98227f8fa96a278f1e98ed13dce4d (diff) | |
download | pkgsrc-8163355fbde219b0b68736a877c730158cce9123.tar.gz |
Let tex-texdoc honor the x11 option.
Diffstat (limited to 'print/tex-texdoc')
-rw-r--r-- | print/tex-texdoc/Makefile | 9 | ||||
-rw-r--r-- | print/tex-texdoc/PLIST | 4 | ||||
-rw-r--r-- | print/tex-texdoc/options.mk | 23 |
3 files changed, 28 insertions, 8 deletions
diff --git a/print/tex-texdoc/Makefile b/print/tex-texdoc/Makefile index d17a794668f..fc8c5fa4973 100644 --- a/print/tex-texdoc/Makefile +++ b/print/tex-texdoc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2012/02/09 21:20:31 minskim Exp $ +# $NetBSD: Makefile,v 1.2 2012/04/25 15:47:49 minskim Exp $ DISTNAME= texdoc PKGNAME= tex-${DISTNAME:S/./-/}-2011 @@ -9,18 +9,15 @@ COMMENT= Documentation access for TeX distributions LICENSE= gnu-gpl-v3 CONFLICTS+= teTeX-bin<3.0nb50 -DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk -REPLACE_PERL= bin/texdoctk REPLACE_TEXLUA= bin/texdoc TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf ${PREFIX}/share/texmf-dist .include "../../print/texlive/package.mk" +.include "options.mk" -post-extract: +post-extract: extract-texdoctk ${MKDIR} ${WRKSRC}/bin - ${MV} ${WRKSRC}/texmf/scripts/tetex/texdoctk.pl ${WRKSRC}/bin/texdoctk - ${RMDIR} ${WRKSRC}/texmf/scripts/tetex ${MV} ${WRKSRC}/texmf/scripts/texdoc/texdoc.tlu ${WRKSRC}/bin/texdoc .include "../../mk/bsd.pkg.mk" diff --git a/print/tex-texdoc/PLIST b/print/tex-texdoc/PLIST index 18a7f574607..411baec8e12 100644 --- a/print/tex-texdoc/PLIST +++ b/print/tex-texdoc/PLIST @@ -1,6 +1,6 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2012/02/09 21:20:31 minskim Exp $ +@comment $NetBSD: PLIST,v 1.2 2012/04/25 15:47:49 minskim Exp $ bin/texdoc -bin/texdoctk +${PLIST.x11}bin/texdoctk share/texmf-dist/texdoc/texdoc.cnf share/texmf/scripts/texdoc/Data.meta.lua share/texmf/scripts/texdoc/Data.tlpdb.lua diff --git a/print/tex-texdoc/options.mk b/print/tex-texdoc/options.mk new file mode 100644 index 00000000000..12db67183ec --- /dev/null +++ b/print/tex-texdoc/options.mk @@ -0,0 +1,23 @@ +# $NetBSD: options.mk,v 1.1 2012/04/25 15:47:49 minskim Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.tex-texdoc +PKG_SUPPORTED_OPTIONS+= x11 +PKG_SUGGESTED_OPTIONS+= x11 + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= x11 +.if !empty(PKG_OPTIONS:Mx11) +DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk + +PLIST.x11= yes +REPLACE_PERL= bin/texdoctk + +extract-texdoctk: + ${MKDIR} ${WRKSRC}/bin + ${MV} ${WRKSRC}/texmf/scripts/tetex/texdoctk.pl ${WRKSRC}/bin/texdoctk + ${RMDIR} ${WRKSRC}/texmf/scripts/tetex +.else +extract-texdoctk: + ${RM} -rf ${WRKSRC}/texmf/scripts/tetex +.endif |