ports/86941: [NEW PORT] textproc/dixit

Ion-Mihai IOnut Tetcu itetcu at people.tecnik93.com
Wed Oct 5 12:40:24 UTC 2005


>Number:         86941
>Category:       ports
>Synopsis:       [NEW PORT] textproc/dixit
>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:   Wed Oct 05 12:40:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Ion-Mihai "IOnut" Tetcu
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:


System: FreeBSD 5.4-STABLE #11: Wed Jul 20 14:07:03 EEST 2005



>Description:


Dixit is a cross-platform application for consulting off-line a Romanian
definitions dictionary (DEX). It features a browser-like interface,
with cross-references between definitions, and the capability of adding new
definitions from a server.

The distributed database is currently based on 14 dictionaries plus 5 DEX
editions. The database contains more that 235.000 definitions from various
sources. The most important "Dictionarul explicativ al limbii romane" (DEX 1998)
All 65.542 definitions from DEX have been introduced in the database by
"DEX online" Project (dexonline.ro) volunteers.

The following dictionaries are also complete, with help from Siveco and Editura
Litera International: "Dictionar de sinonime" (2002), "Dictionar de antonime"
(2002), "Dictionar ortografic al limbii romane" (2002), "Noul dictionar
explicativ al limbii romane" (2002).

Any resemblance to dict is not entirely coincidental, but the database doesn't
have the same format :(


>How-To-Repeat:





>Fix:


--- dixit.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:
#
#	dixit
#	dixit/Makefile
#	dixit/files
#	dixit/files/pkg-plist.in
#	dixit/pkg-descr
#	dixit/distinfo
#
echo c - dixit
mkdir -p dixit > /dev/null 2>&1
echo x - dixit/Makefile
sed 's/^X//' >dixit/Makefile << 'END-of-dixit/Makefile'
X# New ports collection makefile for:   dixit
X# Date created:        2005-01-11
X# Whom:                Ion-Mihai "IOnut" Tetcu <itetcu at people.tecnik93.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dixit
XPORTVERSION=	1.0.1
XCATEGORIES=	textproc # this should/will be romanian ;)
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR=	dixit
XDISTFILES=	${PORTNAME}-${PORTVERSION}.tgz ${_DB_D}
XEXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}.tgz
X
XMAINTAINER=	itetcu at people.tecnik93.com
XCOMMENT=	Romanian dictionaries databases and query application
X
XBUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
X#SUB_FILES=	pkg-deinstall pkg-plist
XSUB_FILES=	pkg-plist
XSUB_LIST=	_DB=${_DB} DB_DIR=${DB_DIR} _DB_F=${_DB_F}
X#PKGDEINSTALL=	${WRKSRC}/pkg-deinstall
X#PLIST_FILES=	bin/dixit
XPLIST=		${WRKDIR}/pkg-plist
X
X_VAR_DIR=	/var
XDB_DIR?=	${_VAR_DIR}/db/dixit
XDB_OWNER?=	root
XDB_GROUP?=	wheel
XDB_MODE?=	0664
X# DB_DATE is the time of the file in the zip archive, not the time of the last
X# update of the database (which is a little earlier, but TZ makes it appear to
X# be later), but it's all we can do in a makefile.
XDB_DATE=200412121653
X_DB_D=	${PORTNAME}_qdb.zip
X_DB_F=	${PORTNAME}.qdb
X_DB=	${DB_DIR}/${_DB_F}
X
XUSE_REINPLACE=	yes
XUSE_QT_VER=	3
XUSE_X_PREFIX=	yes
XUSE_GMAKE=	yes
XMAKE_ENV=	PTHREAD_LIBS=${PTHREAD_LIBS} QTDIR="${QT_PREFIX}"
X
Xpre-everything::
X	@${ECHO_CMD}
X	@${ECHO_CMD} "Your dictionary database directory is:"
X	@${ECHO_CMD} "DB_DIR=${DB_DIR} (default ${_VAR_DIR}/db/dixit)"
X	@${ECHO_CMD} "You need about 65MB for the dictionary db."
X#	@${ECHO_CMD} "To overwrite the database, irrespectiv of it's last update"
X#	@${ECHO_CMD} "time define DB_OVERWRITE=yes"
X#.ifdef(DB_OVERWRITE)
X#	@${ECHO_CMD} "DB_OVERWRITE is set, the database will be overwritten !!"
X#.endif
X	@${ECHO_CMD}
X	@${ECHO_CMD} "You can allow all users to update (but potentially also delete"
X	@${ECHO_CMD} "or alter) the dictionaries database by setting DB_MODE=0666"
X	@${ECHO_CMD} "DB_OWNER=${DB_OWNER} (default: root)"
X	@${ECHO_CMD} "DB_GROUP=${DB_GROUP} (default: wheel)"
X	@${ECHO_CMD} "DB_MODE=${DB_MODE} (default: 0664)"
X	@${ECHO_CMD}
X
Xdo-configure:
X	@${REINPLACE_CMD} -e "s^dixit.qdb^${_DB}^" ${WRKSRC}/src/dixit_strings.h
X	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
X		-spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ ${PORTNAME}.pro
X
Xdo-install:
X	@${MKDIR} ${DB_DIR}
X	@${TOUCH} -t ${DB_DATE} ${WRKSRC}/${_DB_F}
X	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}  ${PREFIX}/bin/${PORTNAME}
X	@${ECHO_CMD} "	===> Installing database ... .. ."
X.ifndef(DB_OVERWRITE)
X	@if [ ! -e "${_DB}" -o "${_DB}" -ot "${WRKSRC}/${_DB_F}" ];\
X		then	${UNZIP_CMD} -qou ${DISTDIR}/${_DB_D} -d ${DB_DIR} && \
X			${ECHO_CMD} "	===> ... Done."; \
X		else	${ECHO_CMD} "	===> Exisitng database is newer, skiping";\
X	fi
X.else
X	@${ECHO_CMD} "	===> DB_OVERWRITE is set, installing database ... .. ."
X	@${UNZIP_CMD} -qou ${DISTDIR}/${_DB_D} -d ${DB_DIR}
X	@${ECHO_CMD} "	===> ... Done."
X.endif
X	@${CHOWN} ${DB_OWNER}:${DB_GROUP} ${_DB}
X	@${CHMOD} ${DB_MODE} ${_DB}
X
X.include <bsd.port.mk>
END-of-dixit/Makefile
echo c - dixit/files
mkdir -p dixit/files > /dev/null 2>&1
echo x - dixit/files/pkg-plist.in
sed 's/^X//' >dixit/files/pkg-plist.in << 'END-of-dixit/files/pkg-plist.in'
Xbin/dixit
X at cwd %%DB_DIR%%
X%%_DB_F%%
X at cwd /
X at dirrm %%DB_DIR%%
END-of-dixit/files/pkg-plist.in
echo x - dixit/pkg-descr
sed 's/^X//' >dixit/pkg-descr << 'END-of-dixit/pkg-descr'
XDixit is a cross-platform application for consulting off-line a Romanian
Xdefinitions dictionary (DEX). It features a browser-like interface,
Xwith cross-references between definitions, and the capability of adding new
Xdefinitions from a server.
X
XThe distributed database is currently based on 14 dictionaries plus 5 DEX
Xeditions. The database contains more that 235.000 definitions from various
Xsources. The most important "Dictionarul explicativ al limbii romane" (DEX 1998)
XAll 65.542 definitions from DEX have been introduced in the database by
X"DEX online" Project (dexonline.ro) volunteers.
X
XThe following dictionaries are also complete, with help from Siveco and Editura
XLitera International: "Dictionar de sinonime" (2002), "Dictionar de antonime"
X(2002), "Dictionar ortografic al limbii romane" (2002), "Noul dictionar
Xexplicativ al limbii romane" (2002).
X
XAny resemblance to dict is not entirely coincidental, but the database doesn't
Xhave the same format :(
X
XWWW: http://sourceforge.net/projects/dixit/
END-of-dixit/pkg-descr
echo x - dixit/distinfo
sed 's/^X//' >dixit/distinfo << 'END-of-dixit/distinfo'
XMD5 (dixit-1.0.1.tgz) = e9e030f3ec1f4a8aae38001fcd22bb4e
XSIZE (dixit-1.0.1.tgz) = 93460
XMD5 (dixit_qdb.zip) = f7e0da23e6d981785f8db8d6d719b9ca
XSIZE (dixit_qdb.zip) = 17225751
END-of-dixit/distinfo
exit

--- dixit.shar ends here ---



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



More information about the freebsd-ports-bugs mailing list