Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  2 Jan 2004 22:10:14 +0800 (CST)
From:      Leland Wang <llwang@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/60822: new port: textproc/words - A Latin-English Dictionary Program
Message-ID:  <20040102141014.6EDD29273@infor.ck.tp.edu.tw>
Resent-Message-ID: <200401021420.i02EKAWo037156@freefall.freebsd.org>

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

>Number:         60822
>Category:       ports
>Synopsis:       new port: textproc/words - A Latin-English Dictionary Program
>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:   Fri Jan 02 06:20:10 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Leland Wang
>Release:        FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD Athena.infor.org 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #1: Wed Dec 3 02:14:02 CST 2003 root@Athena.infor.org:/home/adm/obj/usr/src/sys/Athena i386


	
>Description:
WORDS is a free Latin-English dictionary program which contains over
30000 entries and, through additional word construction with hundreds
of prefixes and suffixes, may generate more, leading to many hundreds
of thousands of 'words' that can be formed by declension and
conjugation.

WORDS is written in ADA. With special tweak in the Makefile, I have made
its package statically linked and thus not lib_depend on gnat.
	
>How-To-Repeat:
	
>Fix:

# 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:
#
#	words
#	words/Makefile
#	words/distinfo
#	words/pkg-descr
#	words/pkg-plist
#	words/files
#	words/files/words
#
echo c - words
mkdir -p words > /dev/null 2>&1
echo x - words/Makefile
sed 's/^X//' >words/Makefile << 'END-of-words/Makefile'
X# New ports collection makefile for:	words
X# Date created:		2 January 2004
X# Whom:			Leland Wang <llwang@infor.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	words
XPORTVERSION=	1.97
XCATEGORIES=	textproc
XMASTER_SITES=	http://users.erols.com/whitaker/
XDISTNAME=	${PORTNAME}all
XEXTRACT_SUFX=	.zip
X
XMAINTAINER=	llwang@infor.org
XCOMMENT=	A Latin-English Dictionary Program
X
XBUILD_DEPENDS=	gnatmake:${PORTSDIR}/lang/gnat
X.if defined(PACKAGE_BUILDING)
XSTATIC=		yes
X.endif
X.if defined(STATIC)
XGNATLINK_ARGS=	-largs -static
X.else
XLIB_DEPENDS=	gnat-3.15.1:${PORTSDIR}/lang/gnat
X.endif
X
XUSE_ZIP=	yes
XUSE_REINPLACE=	yes
XNO_WRKSUBDIR=	yes
X
XGNATMAKE=	gnatmake
X
Xdo-build:
X	@cd ${WRKSRC} && \
X	${GNATMAKE} -O3 words ${GNATLINK_ARGS} && \
X	${GNATMAKE} makedict && \
X	${GNATMAKE} makestem && \
X	${GNATMAKE} makeinfl && \
X	${ECHO_CMD} G | ./makedict DICTLINE.GEN && \
X	${ECHO_CMD} G | ./makestem STEMLIST.GEN && \
X	./makeinfl INFLECTS.LAT
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X	${INSTALL_PROGRAM} ${WRKSRC}/words ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/DICTFILE.GEN ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/STEMFILE.GEN ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/INDXFILE.GEN ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/INFLECTS.SEC ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/ADDONS.LAT ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/UNIQUES.LAT ${DATADIR}
X	${INSTALL_SCRIPT} ${FILESDIR}/words ${PREFIX}/bin
X	${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' ${PREFIX}/bin/words
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/WORDSDOC.HTM ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-words/Makefile
echo x - words/distinfo
sed 's/^X//' >words/distinfo << 'END-of-words/distinfo'
XMD5 (wordsall.zip) = 9664d88aedd747ffb547dcc1682fbaa9
END-of-words/distinfo
echo x - words/pkg-descr
sed 's/^X//' >words/pkg-descr << 'END-of-words/pkg-descr'
XWORDS is a free Latin-English dictionary program which takes keyboard
Xinput or a file of Latin text lines and provides an analysis/morphology
X(declension, conjugation, case, tense, etc.) of each word individually,
Xthe dictionary form, and the translation (meaning).
X
XThe dictionary contains over 30000 entries and, through additional word
Xconstruction with hundreds of prefixes and suffixes, may generate more,
Xleading to many hundreds of thousands of 'words' that can be formed by
Xdeclension and conjugation. Present emphisis is on classical Latin and
Xlate Latin, but medieval Latin entries are increasing. WORDS provides a
Xtool to help in translations for the Latin student and a memory jog for
Xresearchers.
X
XAuthor: William Whitaker <whitaker@erols.com>
XWWW: http://users.erols.com/whitaker/words.htm
END-of-words/pkg-descr
echo x - words/pkg-plist
sed 's/^X//' >words/pkg-plist << 'END-of-words/pkg-plist'
X%%DATADIR%%/words
X%%DATADIR%%/DICTFILE.GEN
X%%DATADIR%%/STEMFILE.GEN
X%%DATADIR%%/INDXFILE.GEN
X%%DATADIR%%/INFLECTS.SEC
X%%DATADIR%%/ADDONS.LAT
X%%DATADIR%%/UNIQUES.LAT
X@dirrm %%DATADIR%%
Xbin/words
X%%PORTDOCS%%%%DOCSDIR%%/WORDSDOC.HTM
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-words/pkg-plist
echo c - words/files
mkdir -p words/files > /dev/null 2>&1
echo x - words/files/words
sed 's/^X//' >words/files/words << 'END-of-words/files/words'
X#!/bin/sh
X
Xcd %%DATADIR%% && ./words $@
END-of-words/files/words
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:



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