pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/tex-texdoc Let tex-texdoc honor the x11 option.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/118b3f240f45
branches:  trunk
changeset: 602983:118b3f240f45
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Wed Apr 25 15:47:49 2012 +0000

description:
Let tex-texdoc honor the x11 option.

diffstat:

 print/tex-texdoc/Makefile   |   9 +++------
 print/tex-texdoc/PLIST      |   4 ++--
 print/tex-texdoc/options.mk |  23 +++++++++++++++++++++++
 3 files changed, 28 insertions(+), 8 deletions(-)

diffs (69 lines):

diff -r 563dc9296100 -r 118b3f240f45 print/tex-texdoc/Makefile
--- a/print/tex-texdoc/Makefile Wed Apr 25 15:47:19 2012 +0000
+++ b/print/tex-texdoc/Makefile Wed Apr 25 15:47:49 2012 +0000
@@ -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 @@
 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 -r 563dc9296100 -r 118b3f240f45 print/tex-texdoc/PLIST
--- a/print/tex-texdoc/PLIST    Wed Apr 25 15:47:19 2012 +0000
+++ b/print/tex-texdoc/PLIST    Wed Apr 25 15:47:49 2012 +0000
@@ -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 -r 563dc9296100 -r 118b3f240f45 print/tex-texdoc/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/tex-texdoc/options.mk       Wed Apr 25 15:47:49 2012 +0000
@@ -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



Home | Main Index | Thread Index | Old Index