Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2004 09:14:17 +0800 (CST)
From:      Cheng-Lung Sung <clsung@dragon2.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69729: [NEW PORT] textproc/rtfx: An RTF to XML converter
Message-ID:  <20040729011417.B82CC158D1@mail.dragon2.net>
Resent-Message-ID: <200407290120.i6T1KLGo041056@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 29 01:20:21 GMT 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040729011417.B82CC158D1>