unrtf, merge of both Patroklos/Lurene ports.

This commit is contained in:
espie 2002-08-21 15:43:37 +00:00
parent f925a5b515
commit 96bf709e04
6 changed files with 87 additions and 0 deletions

32
textproc/unrtf/Makefile Normal file
View File

@ -0,0 +1,32 @@
COMMENT= "RTF document converter"
VERSION= 0.18.1
DISTNAME= unrtf-${VERSION}
CATEGORIES= textproc
HOMEPAGE= http://www.geocities.com/tuorfa/unrtf.html
MASTER_SITES= ${MASTER_SITE_GNU:=unrtf/}
MAINTAINER= Lurene Grenier <lurene@daemonkitty.net> \
Patroklos Argyroudis <argp@ieee.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/unrtf
MAKE_FLAGS=CFLAGS='${CFLAGS}' CC='${CC}'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrtf ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unrtf
${INSTALL_DATA} ${WRKSRC}/doc/unrtf.html ${PREFIX}/share/doc/unrtf/unrtf.html
${INSTALL_MAN} ${WRKSRC}/unrtf.1 ${PREFIX}/man/man1
REGRESS_TARGET=tests
REGRESS_FLAGS=PATH=${WRKSRC}
.include <bsd.port.mk>

3
textproc/unrtf/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (unrtf-0.18.1.tar.gz) = c7eb7eb30880c4fb8d089b8a486d255d
RMD160 (unrtf-0.18.1.tar.gz) = d2e544e24a34136f09862411acbc7fe31bd9db80
SHA1 (unrtf-0.18.1.tar.gz) = 91e7e19b01b9caaf85001beb7984437084ff3631

View File

@ -0,0 +1,22 @@
$OpenBSD: old,v 1.1.1.1 2002/08/21 15:43:37 espie Exp $
--- Makefile.orig Wed Oct 3 00:45:59 2001
+++ Makefile Mon Aug 19 10:17:44 2002
@@ -32,6 +32,10 @@ OBJS=convert.o word.o error.o main.o has
parse.o malloc.o attr.o util.o \
output.o html.o text.o vt.o ps.o latex.o wpml.o
+PREFIX=/usr/local
+
+BINDIR=$(PREFIX)/bin
+
TARGET=unrtf
${TARGET}: ${OBJS}
@@ -57,6 +61,6 @@ all: ${TARGET} bcount
rm -f ${OBJS}
install: ${TARGET}
- cp ${TARGET} /usr/local/bin
+ install -m 755 ${TARGET} $(DESTDIR)$(BINDIR)

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2002/08/21 15:43:37 espie Exp $
--- Makefile.orig Wed Oct 3 06:45:59 2001
+++ Makefile Wed Aug 21 17:29:51 2002
@@ -35,7 +35,7 @@ OBJS=convert.o word.o error.o main.o has
TARGET=unrtf
${TARGET}: ${OBJS}
- gcc ${OBJS} -o ${TARGET}
+ $(CC) $(CFLAGS) ${OBJS} -o ${TARGET}
clean:
rm -f ${OBJS} ${TARGET} bcount bcount.o
@@ -46,7 +46,7 @@ tidy:
tests:
${TARGET} test/table.rtf > test/table.html
- ${TARGET} test/slashnewline.rtf > test/slashnewline.html
+ ${TARGET} test/slashnew.rtf > test/slashnew.html
${TARGET} test/fontface.rtf > test/fontface.html
${TARGET} test/fontsize.rtf > test/fontsize.html

4
textproc/unrtf/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
unrtf is an application to display and convert Rich Text Format files to
HTML, LaTeX, PostScript, plaintext or plaintext with VT100 codes.
WWW: ${HOMEPAGE}

5
textproc/unrtf/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/08/21 15:43:37 espie Exp $
bin/unrtf
man/man1/unrtf.1
share/doc/unrtf/unrtf.html
@dirrm share/doc/unrtf