Let tex-texdoc honor the x11 option.diff -r1.1.1.1 -r1.2 pkgsrc/print/tex-texdoc/Makefile
(minskim)
@@ -1,26 +1,23 @@ | @@ -1,26 +1,23 @@ | |||
1 | # $NetBSD: Makefile,v 1.1.1.1 2012/02/09 21:20:31 minskim Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2012/04/25 15:47:49 minskim Exp $ | |
2 | 2 | |||
3 | DISTNAME= texdoc | 3 | DISTNAME= texdoc | |
4 | PKGNAME= tex-${DISTNAME:S/./-/}-2011 | 4 | PKGNAME= tex-${DISTNAME:S/./-/}-2011 | |
5 | TEXLIVE_REV= 24354 | 5 | TEXLIVE_REV= 24354 | |
6 | 6 | |||
7 | MAINTAINER= minskim@NetBSD.org | 7 | MAINTAINER= minskim@NetBSD.org | |
8 | COMMENT= Documentation access for TeX distributions | 8 | COMMENT= Documentation access for TeX distributions | |
9 | LICENSE= gnu-gpl-v3 | 9 | LICENSE= gnu-gpl-v3 | |
10 | 10 | |||
11 | CONFLICTS+= teTeX-bin<3.0nb50 | 11 | CONFLICTS+= teTeX-bin<3.0nb50 | |
12 | DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk | |||
13 | 12 | |||
14 | REPLACE_PERL= bin/texdoctk | |||
15 | REPLACE_TEXLUA= bin/texdoc | 13 | REPLACE_TEXLUA= bin/texdoc | |
16 | TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf ${PREFIX}/share/texmf-dist | 14 | TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf ${PREFIX}/share/texmf-dist | |
17 | 15 | |||
18 | .include "../../print/texlive/package.mk" | 16 | .include "../../print/texlive/package.mk" | |
17 | .include "options.mk" | |||
19 | 18 | |||
20 | post-extract: | 19 | post-extract: extract-texdoctk | |
21 | ${MKDIR} ${WRKSRC}/bin | 20 | ${MKDIR} ${WRKSRC}/bin | |
22 | ${MV} ${WRKSRC}/texmf/scripts/tetex/texdoctk.pl ${WRKSRC}/bin/texdoctk | |||
23 | ${RMDIR} ${WRKSRC}/texmf/scripts/tetex | |||
24 | ${MV} ${WRKSRC}/texmf/scripts/texdoc/texdoc.tlu ${WRKSRC}/bin/texdoc | 21 | ${MV} ${WRKSRC}/texmf/scripts/texdoc/texdoc.tlu ${WRKSRC}/bin/texdoc | |
25 | 22 | |||
26 | .include "../../mk/bsd.pkg.mk" | 23 | .include "../../mk/bsd.pkg.mk" |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2012/02/09 21:20:31 minskim Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2012/04/25 15:47:49 minskim Exp $ | |
2 | bin/texdoc | 2 | bin/texdoc | |
3 | bin/texdoctk | 3 | ${PLIST.x11}bin/texdoctk | |
4 | share/texmf-dist/texdoc/texdoc.cnf | 4 | share/texmf-dist/texdoc/texdoc.cnf | |
5 | share/texmf/scripts/texdoc/Data.meta.lua | 5 | share/texmf/scripts/texdoc/Data.meta.lua | |
6 | share/texmf/scripts/texdoc/Data.tlpdb.lua | 6 | share/texmf/scripts/texdoc/Data.tlpdb.lua | |
7 | share/texmf/scripts/texdoc/alias.tlu | 7 | share/texmf/scripts/texdoc/alias.tlu | |
8 | share/texmf/scripts/texdoc/config.tlu | 8 | share/texmf/scripts/texdoc/config.tlu | |
9 | share/texmf/scripts/texdoc/constants.tlu | 9 | share/texmf/scripts/texdoc/constants.tlu | |
10 | share/texmf/scripts/texdoc/functions.tlu | 10 | share/texmf/scripts/texdoc/functions.tlu | |
11 | share/texmf/scripts/texdoc/main.tlu | 11 | share/texmf/scripts/texdoc/main.tlu | |
12 | share/texmf/scripts/texdoc/score.tlu | 12 | share/texmf/scripts/texdoc/score.tlu | |
13 | share/texmf/scripts/texdoc/search.tlu | 13 | share/texmf/scripts/texdoc/search.tlu | |
14 | share/texmf/scripts/texdoc/texdoclib.tlu | 14 | share/texmf/scripts/texdoc/texdoclib.tlu | |
15 | share/texmf/scripts/texdoc/view.tlu | 15 | share/texmf/scripts/texdoc/view.tlu | |
16 | share/texmf/texdoctk/texdocrc-win32.defaults | 16 | share/texmf/texdoctk/texdocrc-win32.defaults |
# $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