1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/www/kdedict/Makefile
Edwin Groothuis b579841cba [NEW PORT] www/kdedict: Web based DB app. to administer standard translations of a translation team
KDE Dictionary is used by a few KDE i18n teams;
	kdedict is written by Matthias Kiefer from German team and
	i18n.kde.org's instalaltion is currently administered by
	Claudiu Costin from Romaninan Team.

	kdedict is a web based database to administer the standard
	translations of a translation team. You can search the
	database for different criterias and the found entries are
	shown in a table.

	kdedict does not use a full blown database but stores the
	information in a plain text file. This way, everybody can
	easily run kdedict offline (using a local web server) without
	having to install and admin a big database. To enable users
	to update their locale database easily, kdedict offers a
	download option.  But if you have basic knowledge of Perl,
	it should be no problem to adapt kdedict for using a real
	database.

	The database consists of the fields: original text,
	description, translation, description, category of the word
	(i.e. GUI, Network), date of last update and flag, if the
	translation is accepted by the team. This flag allows you
	to include translations, that your team is not in agreement
	about, into the database.

	kdedict is able to manage user logins, so you can easily
	maintain your database over the web. When logged in, it is
	easy to edit, insert or delete entries.

	kdedict can also manage multiple languages, by creating one
	table for each user.

	WWW: http://i18n.kde.org/tools/kdedict/

PR:		ports/90507
Submitted by:	Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
2005-12-21 08:48:24 +00:00

57 lines
1.6 KiB
Makefile

# New ports collection makefile for: www/kdedict
# Date created: 2005-12-16
# Whom: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
#
# $FreeBSD$
# $Tecnik: ports/www/kdedict/Makefile,v 1.1 2005/12/16 16:44:16 itetcu Exp $
#
PORTNAME= kdedict
PORTVERSION= 20030925
CATEGORIES= www
MASTER_SITES= ftp://ftp.i18n.kde.org/tools/${PORTNAME}/ \
http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
MAINTAINER= itetcu@people.tecnik93.com
COMMENT= Web based db to administer standard translations of a translation team
RUN_DEPENDS= p5-Date-Manip>0:${PORTSDIR}/devel/p5-Date-Manip \
p5-SQL-Statement>0:${PORTSDIR}/databases/p5-SQL-Statement \
p5-Text-CSV_XS>0:${PORTSDIR}/textproc/p5-Text-CSV_XS
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
USE_PERL5_RUN= yes
USE_APACE= yes
USE_REINPLACE= yes
CGI_DIR?= ${PREFIX}/www/cgi-bin
SUB_FILES= pkg-message
SUB_LIST+= PORTNAME=${PORTNAME} CGI_DIR=${CGI_DIR}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL}<500800
RUN_DEPENDS+= p5-DBD-File>0:${PORTSDIR}/databases/p5-DBD-File
.endif
pre-everything::
@${ECHO_CMD} "Define to suit your needs:"
@${ECHO_CMD} "CGI_DIR (default: ${PREFIX}/www/cgi-bin)"
post-patch:
${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL},g" \
${WRKSRC}/${PORTNAME}.cgi
do-install:
@${MKDIR} ${CGI_DIR}/kdedictionary
@${CHOWN} ${WWWOWN}:${WWWGRP} ${CGI_DIR}/kdedictionary
cd ${WRKSRC} && \
${INSTALL_SCRIPT} -o ${WWWOWN} -g ${WWWGRP} ${PORTNAME}.cgi ${CGI_DIR} && \
${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 0644 kdedictionary/* ${CGI_DIR}/kdedictionary
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>