Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2000 05:14:03 +0900
From:      "KATO Tsuguru" <tkato@prontomail.ne.jp>
To:        Jacques Abada <Jacques.Abada@wanadoo.fr>
Cc:        ports@FreeBSD.org
Subject:   Re: Ted word processor
Message-ID:  <657EF33EBF0D4D1178D400807C90AA21@tkato.prontomail.ne.jp>

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

Here is an half-done port of Ted. It works fine on my 4.2-RELEASE
with XFree86-4 system.

(Actually, it's based of NetBSD pkgsrc but heavyly modified)

# 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:
#
#	ted
#	ted/Makefile
#	ted/distinfo
#	ted/files
#	ted/files/README.ind
#	ted/files/patch-aa
#	ted/files/patch-ab
#	ted/files/patch-ac
#	ted/files/patch-ad
#	ted/pkg-comment
#	ted/pkg-descr
#	ted/pkg-message
#	ted/pkg-plist
#
echo c - ted
mkdir -p ted > /dev/null 2>&1
echo x - ted/Makefile
sed 's/^X//' >ted/Makefile << 'END-of-ted/Makefile'
XPORTNAME=	ted
XPORTVERSION=	2.8
XCATEGORIES=	editors
XMASTER_SITES=	ftp://ftp.nluug.nl/pub/editors/ted/
XEXTRACT_SUFX=	.src.tar.gz
X
XLIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg \
X		png.4:${PORTSDIR}/graphics/png \
X		tiff.4:${PORTSDIR}/graphics/tiff \
X		ungif.5:${PORTSDIR}/graphics/libungif
X
XWRKSRC=		${WRKDIR}/Ted-${PORTVERSION}
X
XUSE_X_PREFIX=	yes
XUSE_MOTIF=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_WRKSRC=	${WRKSRC}/Ted
XCONFIGURE_ENV=	CC="${CC}" CFLAGS="${CFLAGS}"
XMAKE_ENV=	DEF_PKGDIR='-DPKGDIR=\"${PREFIX}\"' \
X		DEF_AFMDIR='-DAFMDIR=\"${AFMDIR}\"' \
X		DEF_INDDIR='-DINDDIR=\"${INDDIR}\"' \
X		DEF_INFODIR='-DINFODIR=\"${INFODIR}\"'
XALL_TARGET=	compile
X
XAFMDIR=		${PREFIX}/share/Ted/afm
XINDDIR=		${PREFIX}/share/Ted/ind
XINFODIR=	${PREFIX}/share/doc/Ted
X
Xpost-extract:
X	@(cd ${WRKSRC} && ${TAR} -xf tedPackage/TedBindist.tar )
X
Xpost-patch:
X	@${SED} -e "s:%%AFMDIR%%:${AFMDIR}:g" \
X 	        -e "s:%%INDDIR%%:${INDDIR}:g" \
X	        -e "s:%%INFODIR%%:${INFODIR}:g" \
X		${WRKSRC}/info/Ted.ad.sample > ${WRKSRC}/info/Ted.ad
X
Xpost-configure:
X.for dir in appFrame appUtil bitmap ind libreg
X	@(cd ${WRKSRC}/${dir} && ${SETENV} ${CONFIGURE_ENV} ./configure )
X.endfor
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/Ted/Ted ${PREFIX}/bin/ted
X	@${MKDIR} ${AFMDIR}
X	${INSTALL_DATA} ${WRKSRC}/afm/*.afm ${AFMDIR}
X	@${MKDIR} ${INDDIR}
X	${INSTALL_DATA} ${FILESDIR}/README.ind ${INDDIR}
X	@${MKDIR} ${INFODIR}
X	${INSTALL_DATA} ${WRKSRC}/info/TedDocument.rtf ${INFODIR}
X	${INSTALL_DATA}	${WRKSRC}/info/Ted.ad ${PREFIX}/lib/X11/app-defaults/Ted
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-ted/Makefile
echo x - ted/distinfo
sed 's/^X//' >ted/distinfo << 'END-of-ted/distinfo'
X$NetBSD: md5,v 1.3 2000/04/22 02:05:12 dmcmahill Exp $
X
XMD5 (ted-2.8.src.tar.gz) = 63dea345629eda6eb4208e1221f06e9a
END-of-ted/distinfo
echo c - ted/files
mkdir -p ted/files > /dev/null 2>&1
echo x - ted/files/README.ind
sed 's/^X//' >ted/files/README.ind << 'END-of-ted/files/README.ind'
XThis directory contains the installed spelling dictionaries for Ted.
END-of-ted/files/README.ind
echo x - ted/files/patch-aa
sed 's/^X//' >ted/files/patch-aa << 'END-of-ted/files/patch-aa'
X--- Makefile.orig	Sun Apr  9 19:56:56 2000
X+++ Makefile	Thu Dec 14 04:31:04 2000
X@@ -66,63 +66,63 @@
X ####
X 
X lib/bitmap.a: bitmap/makefile
X-	cd bitmap && make
X+	cd bitmap && $(MAKE)
X 
X bitmap/makefile: bitmap/makefile.in
X-	cd bitmap && ./configure
X+#	cd bitmap && ./configure
X 
X ####
X ####	Compile the spell checker library
X ####
X 
X lib/ind.a: ind/makefile
X-	cd ind && make
X+	cd ind && $(MAKE)
X 
X ind/makefile: ind/makefile.in
X-	cd ind && ./configure
X+#	cd ind && ./configure
X 
X ####
X ####	Compile the regular expression library
X ####
X 
X lib/reg.a: libreg/makefile
X-	cd libreg && make
X+	cd libreg && $(MAKE)
X 
X libreg/makefile: libreg/makefile.in
X-	cd libreg && ./configure
X+#	cd libreg && ./configure
X 
X ####
X ####	Compile the application utility library
X ####
X 
X lib/appUtil.a: appUtil/makefile
X-	cd appUtil && make
X+	cd appUtil && $(MAKE)
X 
X appUtil/makefile: appUtil/makefile.in
X-	cd appUtil && ./configure
X+#	cd appUtil && ./configure
X 
X ####
X ####	Compile the application framework library
X ####
X 
X lib/appFrame.a: appFrame/makefile
X-	cd appFrame && make
X+	cd appFrame && $(MAKE)
X 
X appFrame/makefile: appFrame/makefile.in
X-	cd appFrame && ./configure
X+#	cd appFrame && ./configure
X 
X ####
X ####	Compile and link Ted
X ####
X 
X Ted/Ted.static: tedlibs Ted/makefile
X-	cd Ted && make Ted.static
X+	cd Ted && $(MAKE) Ted.static
X 
X Ted/Ted: tedlibs Ted/makefile
X-	cd Ted && make
X+	cd Ted && $(MAKE)
X 
X Ted/makefile: Ted/makefile.in
X-	cd Ted && ./configure
X+#	cd Ted && ./configure
X 
X ####
X ####	Make a ready to install package
X@@ -130,13 +130,13 @@
X ####
X 
X package: tedPackage/makefile compile
X-	cd tedPackage && make
X+	cd tedPackage && $(MAKE)
X 	:
X 	: Package ready.
X 	: To install Ted, you can now run 'make install' AS ROOT
X 
X package.shared: tedPackage/makefile compile.shared
X-	cd tedPackage && make package.shared
X+	cd tedPackage && $(MAKE) package.shared
X 	:
X 	: Dynamically linked package ready.
X 	: To install Ted, you can now run 'make install' AS ROOT
END-of-ted/files/patch-aa
echo x - ted/files/patch-ab
sed 's/^X//' >ted/files/patch-ab << 'END-of-ted/files/patch-ab'
X--- Ted/makefile.in.orig	Sun Mar 26 17:45:18 2000
X+++ Ted/makefile.in	Thu Dec 14 04:18:35 2000
X@@ -21,7 +21,8 @@
X 	-I../appFrame	\
X 	-I../appUtil	\
X 	-I../include	\
X-	$(DEF_PKGDIR)
X+	$(DEF_PKGDIR)	\
X+	$(DEF_INFODIR)
X 
X LDFLAGS=@LDFLAGS@
X 
END-of-ted/files/patch-ab
echo x - ted/files/patch-ac
sed 's/^X//' >ted/files/patch-ac << 'END-of-ted/files/patch-ac'
X--- appFrame/appFileChooser.c.orig	Mon Mar 27 19:09:43 2000
X+++ appFrame/appFileChooser.c	Thu Dec 14 04:18:35 2000
X@@ -632,7 +632,7 @@
X     XtSetArg( al[ac], XmNchildPlacement,XmPLACE_ABOVE_SELECTION ); ac++;
X     XtSetArg( al[ac], XmNuserData,	(XtPointer)aci ); ac++;
X     XtSetArg( al[ac], XmNdialogStyle,	XmDIALOG_APPLICATION_MODAL ); ac++;
X-#   if	XmVersion >= 2000
X+#   if	XmVersion >= 2000 && !defined(LESSTIF_VERSION)
X     XtSetArg( al[ac], XmNfileFilterStyle,
X 					XmFILTER_HIDDEN_FILES ); ac++;
X #   endif
END-of-ted/files/patch-ac
echo x - ted/files/patch-ad
sed 's/^X//' >ted/files/patch-ad << 'END-of-ted/files/patch-ad'
X--- info/Ted.ad.sample.orig	Sun Apr  9 19:56:55 2000
X+++ info/Ted.ad.sample	Thu Dec 14 04:51:00 2000
X@@ -165,11 +165,11 @@
X Ted.topMargin:		72pt
X Ted.bottomMargin:	72pt
X 
X-Ted.afmDirectory:	/usr/local/afm
X+Ted.afmDirectory:	%%AFMDIR%%
X 
X !Ted.faxCommand:	(none)
X 
X-Ted.documentFileName:	/usr/local/info/TedDocument.rtf
X+Ted.documentFileName:	%%INFODIR%%/TedDocument.rtf
X 
X !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
X !!									!!
X@@ -847,7 +847,7 @@
X Ted.spellToolNoDicts:		None
X 
X Ted.spellToolPrivateDicts:	.Dictionaries
X-Ted.spellToolSystemDicts:	/usr/local/ind
X+Ted.spellToolSystemDicts:	%%INDDIR%%
X 
X Ted.spellToolDirNoAccess:	Could not access directory for dictionaries.
X Ted.spellToolDirNoSuchDir:	This directory could not be found.
END-of-ted/files/patch-ad
echo x - ted/pkg-comment
sed 's/^X//' >ted/pkg-comment << 'END-of-ted/pkg-comment'
XX11 based WordPad-like word processor
END-of-ted/pkg-comment
echo x - ted/pkg-descr
sed 's/^X//' >ted/pkg-descr << 'END-of-ted/pkg-descr'
XTed is a text editor running under X Windows on Unix/Linux systems. Ted was
Xdeveloped as an operating system accessory like Wordpad on MS-Windows.
XTeds function is to be able to edit rich text documents on Unix/Linux in a
Xwysiwyg way.
X
XFeatures 
X--------   
X  * Wysiwyg rich text editing. 
X  * Ted uses Microsoft RTF as its native file format.
X  * In line bitmap pictures.
X  * Postscript printing.
X  * Spelling checking in several Latin languages. (English, Dutch, German, 
X    Portuguese, French and Spanish.)
X  * Directly mailing documents from Ted.
X  * Cut/Copy/Paste, also with other applications.
X  * Find/Replace.
X  * Ruler: Paragraph indentation, Indentation of first line, Tabs. Copy/Paste 
X    Ruler.
X  * Page breaks.
X  * Tables: Insert Table, Row, Column. Changing the column width of tables 
X    with their ruler.
X  * Symbols and accented characters are fully supported.
X  * Hyperlinks. 
X  * Saving a document in HTML format.
X
XWWW: http://www.nllgg.nl/Ted/
END-of-ted/pkg-descr
echo x - ted/pkg-message
sed 's/^X//' >ted/pkg-message << 'END-of-ted/pkg-message'
X=============================================================================
X
XThis pkg does not install any spelling dictionaries.  Spelling dictionaries
Xfor various languages are available as separate packages.
X
X=============================================================================
END-of-ted/pkg-message
echo x - ted/pkg-plist
sed 's/^X//' >ted/pkg-plist << 'END-of-ted/pkg-plist'
Xbin/ted
Xlib/X11/app-defaults/Ted
Xshare/Ted/afm/Courier-Bold.afm
Xshare/Ted/afm/Courier-BoldOblique.afm
Xshare/Ted/afm/Courier-Oblique.afm
Xshare/Ted/afm/Courier.afm
Xshare/Ted/afm/Helvetica-Bold.afm
Xshare/Ted/afm/Helvetica-BoldOblique.afm
Xshare/Ted/afm/Helvetica-Oblique.afm
Xshare/Ted/afm/Helvetica.afm
Xshare/Ted/afm/Symbol.afm
Xshare/Ted/afm/Times-Bold.afm
Xshare/Ted/afm/Times-BoldItalic.afm
Xshare/Ted/afm/Times-Italic.afm
Xshare/Ted/afm/Times-Roman.afm
Xshare/Ted/ind/README.ind
Xshare/doc/Ted/TedDocument.rtf
X@dirrm share/doc/Ted
X@dirrm share/Ted/ind
X@dirrm share/Ted/afm
X@dirrm share/Ted
END-of-ted/pkg-plist
exit




-- 
KATO Tsuguru / tkato@prontomail.ne.jp
                             
Sent by Japanese ProntoMail


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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