From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 25 12:40:10 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDB00106566B for ; Sun, 25 May 2008 12:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C9B5C8FC0C for ; Sun, 25 May 2008 12:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4PCe5EM034899 for ; Sun, 25 May 2008 12:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4PCe55p034892; Sun, 25 May 2008 12:40:05 GMT (envelope-from gnats) Resent-Date: Sun, 25 May 2008 12:40:05 GMT Resent-Message-Id: <200805251240.m4PCe55p034892@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B49B6106564A for ; Sun, 25 May 2008 12:39:31 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 165858FC0C for ; Sun, 25 May 2008 12:39:30 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 25 May 2008 12:39:28 -0000 Received: from g227129057.adsl.alicedsl.de (EHLO m2a2.dyndns.org) [92.227.129.57] by mail.gmx.net (mp053) with SMTP; 25 May 2008 14:39:28 +0200 Received: by merlin.emma.line.org (Postfix, from userid 500) id C887EC3CB; Sun, 25 May 2008 14:39:26 +0200 (CEST) Message-Id: <20080525123926.C887EC3CB@merlin.emma.line.org> Date: Sun, 25 May 2008 14:39:26 +0200 (CEST) From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/123979: [PATCH] textproc/xmlto: important fixes, general overhaul, take maintainership X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2008 12:40:11 -0000 >Number: 123979 >Category: ports >Synopsis: [PATCH] textproc/xmlto: important fixes, general overhaul, take maintainership >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 25 12:40:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 6.3-STABLE i386 >Organization: >Environment: System: FreeBSD merlin.emma.line.org 6.3-STABLE FreeBSD 6.3-STABLE #32: Sat May 24 05:33:59 CEST 2008 >Description: Supersedes: ports/123952 - please close that one, in favour of this one. (Note, if that one should have been committed before this one, please bump PORTREVISION to 2!) Changes that were already in ports/123952: - Fix all scripts that use cp -a to instead use cp -PpR, fixing output formats such as html, html-nochunks and others. - Take maintainership of port. Additional changes since ports/123952, a.k.a. "overhaul": - Drop non-functional passivetex autodetection - Make WITH_PASSIVETEX an official OPTION (default: OFF, as previously) - Add COPYING ChangeLog THANKS to PORTDOCS - Use PORTDOCS instead of pkg-plist - Properly depend on print/passivetex (so the build system doesn't get away with just TeX installed but PassiveTeX missing) - Fix bug (missing "export USE_BACKEND"), amending to files/patch-xmlto.in, reported, with fix, by Ondrej Vasik; the bug rendered "xmlto txt ..." unusable - Complete pkg-plist for WITH_PASSIVETEX case, it missed some files; thus fixing packages. - Mention Ondrej Vasik, current xmlto maintainer, in pkg-descr. Dropped from ports/123952 (i. e. deliberately omitted from this PR, and not part of 0.0.20): - Move files/patch-xmlto.in into post-patch section of Makefile but keep the file. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- xmlto-0.0.20_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/textproc/xmlto/Makefile /usr/home/emma/ports/textproc/xmlto/Makefile --- /usr/ports/textproc/xmlto/Makefile 2008-05-07 11:23:11.000000000 +0200 +++ /usr/home/emma/ports/textproc/xmlto/Makefile 2008-05-25 14:22:40.000000000 +0200 @@ -5,15 +5,14 @@ # $FreeBSD: ports/textproc/xmlto/Makefile,v 1.17 2008/05/07 09:23:11 gahr Exp $ # -# The following compile-time options are available: -# WITH_PASSIVETEX Enable PassiveTex support for DVI/PDF/PS output - PORTNAME= xmlto PORTVERSION= 0.0.20 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://cyberelk.net/tim/data/xmlto/stable/ +# Master Site is subject to change with 0.0.21 release -MAINTAINER= ports@FreeBSD.org +MAINTAINER= matthias.andree@gmx.de COMMENT= Front-end to an XSL toolchain BUILD_DEPENDS= ${BASH_CMD}:${PORTSDIR}/shells/bash \ @@ -23,12 +22,7 @@ ${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl RUN_DEPENDS= ${BUILD_DEPENDS} -.if defined(WITH_PASSIVETEX) || exists(${PASSIVETEX}) -BUILD_DEPENDS+= ${PASSIVETEX}:${PORTSDIR}/print/passivetex -PLIST_SUB= PASSIVETEX="" -.else -PLIST_SUB= PASSIVETEX="@comment " -.endif +OPTIONS= PASSIVETEX "Enable PassiveTeX support for DVI/PS/PDF" OFF USE_BZIP2= yes GNU_CONFIGURE= yes @@ -37,15 +31,30 @@ BASH_CMD= ${LOCALBASE}/bin/bash GETOPT_CMD= ${LOCALBASE}/bin/getopt -PASSIVETEX?= mktexlsr XSL_DIR= ${LOCALBASE}/share/xsl/docbook MAN1= xmlif.1 xmlto.1 -DOCS= AUTHORS NEWS +PORTDOCS= AUTHORS COPYING ChangeLog NEWS THANKS +# these two documentation files do not convey information useful for +# the FreeBSD port at this time: +# PORTDOCS+= FAQ README + +.include + +.if defined(WITH_PASSIVETEX) +BUILD_DEPENDS+= ${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex +RUN_DEPENDS+= ${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex +PLIST_SUB= PASSIVETEX="" +.else +PLIST_SUB= PASSIVETEX="@comment " +.endif post-patch: - @${REINPLACE_CMD} -e 's|-a|-PpR|' \ - ${WRKSRC}/format/docbook/man +.for i in docbook/htmlhelp docbook/xhtml-nochunks docbook/javahelp \ + docbook/html docbook/html-nochunks docbook/xhtml docbook/fo \ + docbook/man fo/dvi fo/pdf + @${REINPLACE_CMD} -e 's|-a|-PpR|' ${WRKSRC}/format/${i} +.endfor .if !defined(WITH_PASSIVETEX) @${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in .endif @@ -57,7 +66,7 @@ .if !defined(NOPORTDOCS) post-install: @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif -.include +.include diff -ruN --exclude=CVS /usr/ports/textproc/xmlto/files/patch-xmlto.in /usr/home/emma/ports/textproc/xmlto/files/patch-xmlto.in --- /usr/ports/textproc/xmlto/files/patch-xmlto.in 2004-01-05 07:33:16.000000000 +0100 +++ /usr/home/emma/ports/textproc/xmlto/files/patch-xmlto.in 2008-05-25 13:44:05.000000000 +0200 @@ -1,8 +1,16 @@ ---- xmlto.in.orig Mon Jan 5 09:20:01 2004 -+++ xmlto.in Mon Jan 5 09:20:32 2004 +--- xmlto.in.orig 2008-01-17 10:39:02.000000000 +0100 ++++ xmlto.in 2008-05-25 13:43:48.000000000 +0200 @@ -1,4 +1,4 @@ -#!/bin/bash +#!@BASH@ # # @PACKAGE@ - apply an XSL stylesheet to an XML document # Copyright (C) 2001, 2002, 2003 Tim Waugh +@@ -326,6 +326,7 @@ + # Ask the format script what stylesheet to use. + XSLT_PROCESSOR=xsltproc # We only know about xsltproc right now. + export XSLT_PROCESSOR ++export USE_BACKEND + if [ -z "$STYLESHEET" ] + then + STYLESHEET="$(${BASH} "$FORMAT" stylesheet)" || exit 1 diff -ruN --exclude=CVS /usr/ports/textproc/xmlto/pkg-descr /usr/home/emma/ports/textproc/xmlto/pkg-descr --- /usr/ports/textproc/xmlto/pkg-descr 2007-03-03 14:22:37.000000000 +0100 +++ /usr/home/emma/ports/textproc/xmlto/pkg-descr 2008-05-25 14:28:41.000000000 +0200 @@ -8,5 +8,5 @@ Currently the only XSL-T processor supported is xsltproc (textproc/libxslt). For DVI, PDF and PostScript output, PassiveTeX (print/passivetex) is required. -Author: Tim Waugh -WWW: http://cyberelk.net/tim/software/xmlto/ +Authors: Tim Waugh , Ondrej Vasik +WWW: http://cyberelk.net/tim/software/xmlto/ diff -ruN --exclude=CVS /usr/ports/textproc/xmlto/pkg-plist /usr/home/emma/ports/textproc/xmlto/pkg-plist --- /usr/ports/textproc/xmlto/pkg-plist 2008-04-22 14:38:55.000000000 +0200 +++ /usr/home/emma/ports/textproc/xmlto/pkg-plist 2008-05-25 14:17:51.000000000 +0200 @@ -1,9 +1,6 @@ @comment $FreeBSD: ports/textproc/xmlto/pkg-plist,v 1.3 2008/04/22 12:38:55 gahr Exp $ bin/xmlif bin/xmlto -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%@dirrm %%DOCSDIR%% %%DATADIR%%/format/docbook/awt %%DATADIR%%/format/docbook/dvi %%DATADIR%%/format/docbook/fo @@ -21,9 +18,14 @@ %%DATADIR%%/format/docbook/htmlhelp %%DATADIR%%/format/docbook/javahelp @dirrm %%DATADIR%%/format/docbook +%%PASSIVETEX%%%%DATADIR%%/format/fo/awt %%PASSIVETEX%%%%DATADIR%%/format/fo/dvi +%%PASSIVETEX%%%%DATADIR%%/format/fo/mif +%%PASSIVETEX%%%%DATADIR%%/format/fo/pcl %%PASSIVETEX%%%%DATADIR%%/format/fo/pdf %%PASSIVETEX%%%%DATADIR%%/format/fo/ps +%%PASSIVETEX%%%%DATADIR%%/format/fo/svg +%%PASSIVETEX%%%%DATADIR%%/format/fo/txt %%PASSIVETEX%%@dirrm %%DATADIR%%/format/fo @dirrm %%DATADIR%%/format %%DATADIR%%/xmlto.mak --- xmlto-0.0.20_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: