aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-10-06 05:03:10 +0800
committerpav <pav@FreeBSD.org>2005-10-06 05:03:10 +0800
commitf8d491ad824d79dde36decd3bbfa4fc9ef87c112 (patch)
tree769ac3f9c226ffee6ea89a6d7ee50288d9d7ec5f
parentd542a3f58f0f76a513267d9bae6fee2b4fdca876 (diff)
downloadfreebsd-ports-graphics-f8d491ad824d79dde36decd3bbfa4fc9ef87c112.tar.gz
freebsd-ports-graphics-f8d491ad824d79dde36decd3bbfa4fc9ef87c112.tar.zst
freebsd-ports-graphics-f8d491ad824d79dde36decd3bbfa4fc9ef87c112.zip
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. PR: ports/86941 Submitted by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/dixit/Makefile86
-rw-r--r--textproc/dixit/distinfo4
-rw-r--r--textproc/dixit/pkg-descr20
-rw-r--r--textproc/dixit/pkg-plist5
5 files changed, 116 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 3e710e49006..09d802f0fda 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -73,6 +73,7 @@
SUBDIR += diffsplit
SUBDIR += diffstat
SUBDIR += diffutils
+ SUBDIR += dixit
SUBDIR += docbook
SUBDIR += docbook-241
SUBDIR += docbook-300
diff --git a/textproc/dixit/Makefile b/textproc/dixit/Makefile
new file mode 100644
index 00000000000..4b706b87dd3
--- /dev/null
+++ b/textproc/dixit/Makefile
@@ -0,0 +1,86 @@
+# New ports collection makefile for: dixit
+# Date created: 2005-01-11
+# Whom: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dixit
+PORTVERSION= 1.0.1
+CATEGORIES= textproc # this should/will be romanian ;)
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= dixit
+DISTFILES= ${PORTNAME}-${PORTVERSION}.tgz ${_DB_D}
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tgz
+
+MAINTAINER= itetcu@people.tecnik93.com
+COMMENT= Romanian dictionaries databases and query application
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
+ qmake:${PORTSDIR}/devel/qmake
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PLIST_SUB= _DB=${_DB} DB_DIR=${DB_DIR} _DB_F=${_DB_F}
+
+DB_DIR?= /var/db/dixit
+DB_OWNER?= root
+DB_GROUP?= wheel
+DB_MODE?= 0664
+# DB_DATE is the time of the file in the zip archive, not the time of the last
+# update of the database (which is a little earlier, but TZ makes it appear to
+# be later), but it's all we can do in a makefile.
+DB_DATE=200412121653
+_DB_D= ${PORTNAME}_qdb.zip
+_DB_F= ${PORTNAME}.qdb
+_DB= ${DB_DIR}/${_DB_F}
+
+USE_REINPLACE= yes
+USE_QT_VER= 3
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} QTDIR="${QT_PREFIX}"
+
+pre-everything::
+ @${ECHO_CMD}
+ @${ECHO_CMD} "Your dictionary database directory is:"
+ @${ECHO_CMD} "DB_DIR=${DB_DIR} (default /var/db/dixit)"
+ @${ECHO_CMD} "You need about 65MB for the dictionary db."
+# @${ECHO_CMD} "To overwrite the database, irrespectiv of it's last update"
+# @${ECHO_CMD} "time define DB_OVERWRITE=yes"
+#.ifdef(DB_OVERWRITE)
+# @${ECHO_CMD} "DB_OVERWRITE is set, the database will be overwritten !!"
+#.endif
+ @${ECHO_CMD}
+ @${ECHO_CMD} "You can allow all users to update (but potentially also delete"
+ @${ECHO_CMD} "or alter) the dictionaries database by setting DB_MODE=0666"
+ @${ECHO_CMD} "DB_OWNER=${DB_OWNER} (default: root)"
+ @${ECHO_CMD} "DB_GROUP=${DB_GROUP} (default: wheel)"
+ @${ECHO_CMD} "DB_MODE=${DB_MODE} (default: 0664)"
+ @${ECHO_CMD}
+
+do-configure:
+ @${REINPLACE_CMD} -e "s^dixit.qdb^${_DB}^" ${WRKSRC}/src/dixit_strings.h
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
+ -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ ${PORTNAME}.pro
+
+do-install:
+ @${MKDIR} ${DB_DIR}
+ @${TOUCH} -t ${DB_DATE} ${WRKSRC}/${_DB_F}
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+ @${ECHO_CMD} " ===> Installing database ... .. ."
+.ifndef(DB_OVERWRITE)
+ @if [ ! -e "${_DB}" -o "${_DB}" -ot "${WRKSRC}/${_DB_F}" ];\
+ then ${UNZIP_CMD} -qou ${DISTDIR}/${_DB_D} -d ${DB_DIR} && \
+ ${ECHO_CMD} " ===> ... Done."; \
+ else ${ECHO_CMD} " ===> Exisitng database is newer, skiping";\
+ fi
+.else
+ @${ECHO_CMD} " ===> DB_OVERWRITE is set, installing database ... .. ."
+ @${UNZIP_CMD} -qou ${DISTDIR}/${_DB_D} -d ${DB_DIR}
+ @${ECHO_CMD} " ===> ... Done."
+.endif
+ @${CHOWN} ${DB_OWNER}:${DB_GROUP} ${_DB}
+ @${CHMOD} ${DB_MODE} ${_DB}
+
+.include <bsd.port.mk>
diff --git a/textproc/dixit/distinfo b/textproc/dixit/distinfo
new file mode 100644
index 00000000000..d0a2001fc5b
--- /dev/null
+++ b/textproc/dixit/distinfo
@@ -0,0 +1,4 @@
+MD5 (dixit-1.0.1.tgz) = e9e030f3ec1f4a8aae38001fcd22bb4e
+SIZE (dixit-1.0.1.tgz) = 93460
+MD5 (dixit_qdb.zip) = f7e0da23e6d981785f8db8d6d719b9ca
+SIZE (dixit_qdb.zip) = 17225751
diff --git a/textproc/dixit/pkg-descr b/textproc/dixit/pkg-descr
new file mode 100644
index 00000000000..785d1b3c4f5
--- /dev/null
+++ b/textproc/dixit/pkg-descr
@@ -0,0 +1,20 @@
+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 :(
+
+WWW: http://sourceforge.net/projects/dixit/
diff --git a/textproc/dixit/pkg-plist b/textproc/dixit/pkg-plist
new file mode 100644
index 00000000000..2a51255c0fa
--- /dev/null
+++ b/textproc/dixit/pkg-plist
@@ -0,0 +1,5 @@
+bin/dixit
+@cwd %%DB_DIR%%
+%%_DB_F%%
+@cwd /
+@dirrm %%DB_DIR%%