From clsung@dragon2.net  Thu Jul 29 01:13:03 2004
Return-Path: <clsung@dragon2.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F094216A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jul 2004 01:13:03 +0000 (GMT)
Received: from mail.dragon2.net (sungsung.csie.nctu.edu.tw [140.113.215.201])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6635643D49
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jul 2004 01:13:03 +0000 (GMT)
	(envelope-from clsung@dragon2.net)
Received: from localhost (unknown [127.0.0.1])
	by mail.dragon2.net (Postfix) with ESMTP id 8E11F158D3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jul 2004 09:14:18 +0800 (CST)
Received: from mail.dragon2.net ([127.0.0.1])
 by localhost (sungsung.csie.nctu.edu.tw [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 08681-01 for <FreeBSD-gnats-submit@freebsd.org>;
 Thu, 29 Jul 2004 09:14:17 +0800 (CST)
Received: by mail.dragon2.net (Postfix, from userid 1022)
	id B82CC158D1; Thu, 29 Jul 2004 09:14:17 +0800 (CST)
Message-Id: <20040729011417.B82CC158D1@mail.dragon2.net>
Date: Thu, 29 Jul 2004 09:14:17 +0800 (CST)
From: Cheng-Lung Sung <clsung@dragon2.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [NEW PORT] textproc/rtfx: An RTF to XML converter
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69729
>Category:       ports
>Synopsis:       [NEW PORT] textproc/rtfx: An RTF to XML converter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 29 01:20:21 GMT 2004
>Closed-Date:    Thu Jul 29 10:12:29 GMT 2004
>Last-Modified:  Thu Jul 29 10:12:29 GMT 2004
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.10-RELEASE FreeBSD 4.10-RELEASE #1: Wed Jun  9 11:27:45 CST
>Description:
- gcc version < 3.00 must apply a patch which
  complied and tested (works well)
- remove \r in xmlcomposer.cpp 
- take maintainership
rtfx converts RTF files into a generic XML format. It majors on keeping 
meta data like style names, etc... rather than every bit of formatting. 
This makes it handy for converting RTF documents into a custom XML 
format (using XSL or an additional processing step).

RTF features supported: page breaks, section breaks, style names, 
lists (various types), tables, footnotes, info block, bold, italic, 
underline, super/sub script, hidden text, strike out, text color, fonts.

Author:	Nielsen <nielsen at memberwebs.com>
WWW:	http://memberwebs.com/nielsen/software/rtfx/

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- rtfx-0.9.3.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rtfx
#	rtfx/pkg-descr
#	rtfx/Makefile
#	rtfx/pkg-plist
#	rtfx/distinfo
#	rtfx/files
#	rtfx/files/patch-src::xmlcomposer.cpp
#	rtfx/files/extra-patch-src::domhelpers.h-gcc295
#
echo c - rtfx
mkdir -p rtfx > /dev/null 2>&1
echo x - rtfx/pkg-descr
sed 's/^X//' >rtfx/pkg-descr << 'END-of-rtfx/pkg-descr'
Xrtfx converts RTF files into a generic XML format. It majors on keeping 
Xmeta data like style names, etc... rather than every bit of formatting. 
XThis makes it handy for converting RTF documents into a custom XML 
Xformat (using XSL or an additional processing step).
X
XRTF features supported: page breaks, section breaks, style names, 
Xlists (various types), tables, footnotes, info block, bold, italic, 
Xunderline, super/sub script, hidden text, strike out, text color, fonts.
X
XAuthor:	Nielsen <nielsen at memberwebs.com>
XWWW:	http://memberwebs.com/nielsen/software/rtfx/
END-of-rtfx/pkg-descr
echo x - rtfx/Makefile
sed 's/^X//' >rtfx/Makefile << 'END-of-rtfx/Makefile'
X# New ports collection makefile for:	rtfx
X# Date created:		2004-07-29
X# Whom:			Cheng-Lung Sung <clsung@dragon2.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	rtfx
XPORTVERSION=	0.9.3
XCATEGORIES=	textproc
XMASTER_SITES=	http://memberwebs.com/nielsen/software/
XMASTER_SITE_SUBDIR=	rtfx
X
XMAINTAINER=	clsung@dragon2.net
XCOMMENT=	An RTF to XML converter
X
XLIB_DEPENDS=	sablot.70:${PORTSDIR}/textproc/sablotron
X
XHAS_CONFIGURE=	yes
XUSE_GMAKE=	yes
X
XMAN1=		rtfx.1
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} <= 500035
XEXTRA_PATCHES+=	${FILESDIR}/extra-patch-src::domhelpers.h-gcc295
X.endif
X
X.include <bsd.port.post.mk>
END-of-rtfx/Makefile
echo x - rtfx/pkg-plist
sed 's/^X//' >rtfx/pkg-plist << 'END-of-rtfx/pkg-plist'
Xbin/rtfx
END-of-rtfx/pkg-plist
echo x - rtfx/distinfo
sed 's/^X//' >rtfx/distinfo << 'END-of-rtfx/distinfo'
XMD5 (rtfx-0.9.3.tar.gz) = da6f3c89e70a3f7e51188438dbf633f9
XSIZE (rtfx-0.9.3.tar.gz) = 350221
END-of-rtfx/distinfo
echo c - rtfx/files
mkdir -p rtfx/files > /dev/null 2>&1
echo x - rtfx/files/patch-src::xmlcomposer.cpp
sed 's/^X//' >rtfx/files/patch-src::xmlcomposer.cpp << 'END-of-rtfx/files/patch-src::xmlcomposer.cpp'
X--- src/xmlcomposer.cpp.orig	Wed Jul 28 06:12:01 2004
X+++ src/xmlcomposer.cpp	Thu Jul 29 01:31:14 2004
X@@ -346,7 +346,7 @@
X 
X #define AN_ELEMENT(name) \
X 	m_composer->pushElement(m_composer->createElement(name))
X-#define AN_TOP_ELEMENT(name) \
X+#define AN_TOP_ELEMENT(name) \
X 	m_composer->pushTopElement(m_composer->createElement(name))
X #define AN_POP_ELEMENT() \
X     m_composer->popElement()
END-of-rtfx/files/patch-src::xmlcomposer.cpp
echo x - rtfx/files/extra-patch-src::domhelpers.h-gcc295
sed 's/^X//' >rtfx/files/extra-patch-src::domhelpers.h-gcc295 << 'END-of-rtfx/files/extra-patch-src::domhelpers.h-gcc295'
X--- src/domhelpers.h.orig	Sun Jul 25 06:37:15 2004
X+++ src/domhelpers.h	Thu Jul 29 07:56:00 2004
X@@ -44,6 +44,15 @@
X #include <stack>
X #include <set>
X 
X+template <class _Category, class _Tp, class _Distance = ptrdiff_t,
X+	class _Pointer = _Tp*, class _Reference = _Tp&>
X+struct iterator {
X+typedef _Category  iterator_category;
X+typedef _Tp        value_type;
X+typedef _Distance  difference_type;
X+typedef _Pointer   pointer;
X+typedef _Reference reference;
X+};
X /*
X  * DOMHelpers
X  * 
END-of-rtfx/files/extra-patch-src::domhelpers.h-gcc295
exit
--- rtfx-0.9.3.shar ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vanilla 
State-Changed-When: Thu Jul 29 10:12:18 GMT 2004 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69729 
>Unformatted:
