add no_x11 flavour

This commit is contained in:
jakob 2001-03-30 15:53:13 +00:00
parent a568b7ec3f
commit c77f5047ee
5 changed files with 44 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.14 2001/03/30 14:49:37 jakob Exp $ # $OpenBSD: Makefile,v 1.15 2001/03/30 15:53:13 jakob Exp $
COMMENT= convert memos written in XML to the RFC format COMMENT= convert memos written in XML to the RFC format
@ -19,18 +19,36 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= wish8.3::x11/tk/8.3 \
${PREFIX}/lib/tcl8.3/TclXML::textproc/TclXML \
NO_BUILD= Yes
WRKDIST= ${WRKDIR} WRKDIST= ${WRKDIR}
DOCS= README.xml README.txt \ DOCS= README.xml README.txt \
rfc2629-author.xml rfc2629-author.txt \ rfc2629-author.xml rfc2629-author.txt \
rfc2629.dtd rfc2629.dtd
RUN_DEPENDS= tclsh8.3::lang/tcl/8.3 \
${PREFIX}/lib/tcl8.3/TclXML::textproc/TclXML \
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L} == "no_x11"
USE_X11= No
.else
USE_X11= Yes
RUN_DEPENDS+= wish8.3::x11/tk/8.3
.endif
do-build:
.if ${FLAVOR:L} == "no_x11"
sed s,y0y0y0,${PREFIX}, ${FILESDIR}/xml2rfc.no_x11 >${WRKSRC}/xml2rfc
.else
sed s,y0y0y0,${PREFIX}, ${FILESDIR}/xml2rfc >${WRKSRC}/xml2rfc
.endif
do-install: do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/xml2rfc.tcl ${PREFIX}/bin/xml2rfc @${INSTALL_SCRIPT} ${WRKSRC}/xml2rfc ${PREFIX}/bin/xml2rfc
@${INSTALL_DATA_DIR} ${PREFIX}/share/xml2rfc
@${INSTALL_DATA} ${WRKSRC}/xml2rfc.tcl ${PREFIX}/share/xml2rfc
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xml2rfc @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xml2rfc
.for file in ${DOCS} .for file in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xml2rfc @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xml2rfc

View File

@ -0,0 +1,5 @@
#!y0y0y0/bin/wish8.3
#
# $Id: xml2rfc,v 1.1 2001/03/30 15:53:13 jakob Exp $
source y0y0y0/share/xml2rfc/xml2rfc.tcl

View File

@ -0,0 +1,7 @@
#!y0y0y0/bin/tclsh8.3
#
# $Id: xml2rfc.no_x11,v 1.1 2001/03/30 15:53:13 jakob Exp $
source y0y0y0/share/xml2rfc/xml2rfc.tcl
xml2rfc [lindex $argv 0] [lindex $argv 1]

View File

@ -1,10 +1,11 @@
--- xml2rfc.tcl.orig Sat Oct 21 05:18:14 2000 --- xml2rfc.tcl.orig Fri Mar 30 17:09:11 2001
+++ xml2rfc.tcl Fri Feb 2 14:01:25 2001 +++ xml2rfc.tcl Fri Mar 30 17:09:15 2001
@@ -1,6 +1,4 @@ @@ -1,8 +1,3 @@
-#!/bin/sh -#!/bin/sh
-# the next line restarts using wish \ -# the next line restarts using wish \
-exec wish8.0 "$0" "$0" "$@" -exec wish8.0 "$0" "$0" "$@"
+#!/usr/local/bin/wish8.3 -
-
#
# xml2rfc.cgi - convert technical memos written using XML to TXT/HTML/NROFF
# #

View File

@ -1,4 +1,5 @@
bin/xml2rfc bin/xml2rfc
share/xml2rfc/xml2rfc.tcl
share/doc/xml2rfc/README.xml share/doc/xml2rfc/README.xml
share/doc/xml2rfc/README.txt share/doc/xml2rfc/README.txt
share/doc/xml2rfc/rfc2629-author.xml share/doc/xml2rfc/rfc2629-author.xml