2013-09-11 11:36:43 +02:00
|
|
|
|
# Created by: n@nectar.com
|
2001-05-26 01:51:34 +02:00
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2003-10-19 01:30:44 +02:00
|
|
|
|
PORTNAME= ding
|
2016-11-10 10:03:10 +01:00
|
|
|
|
PORTVERSION= 1.8.1
|
2017-11-05 10:20:57 +01:00
|
|
|
|
PORTREVISION= 1
|
2008-04-09 15:42:26 +02:00
|
|
|
|
CATEGORIES= german tk
|
2010-09-18 09:38:38 +02:00
|
|
|
|
MASTER_SITES= ftp://ftp.tu-chemnitz.de/pub/Local/urz/ding/ \
|
2015-01-06 11:01:41 +01:00
|
|
|
|
LOCAL/ehaupt
|
2001-05-26 01:51:34 +02:00
|
|
|
|
|
2009-01-29 00:25:21 +01:00
|
|
|
|
MAINTAINER= beat@FreeBSD.org
|
2016-11-10 10:03:10 +01:00
|
|
|
|
COMMENT= German-English dictionary program for X windows/Unix
|
|
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2001-05-26 01:51:34 +02:00
|
|
|
|
|
2017-11-05 10:20:57 +01:00
|
|
|
|
RUN_DEPENDS= wish8.5:x11-toolkits/tk85 \
|
2016-04-01 16:00:51 +02:00
|
|
|
|
agrep:textproc/agrep
|
2001-05-26 01:51:34 +02:00
|
|
|
|
|
2013-09-11 11:36:43 +02:00
|
|
|
|
USES= perl5
|
2009-05-12 21:05:33 +02:00
|
|
|
|
|
|
|
|
|
DICTFILE= de-en.txt
|
|
|
|
|
SWISSDICT= de_ch-en.txt
|
|
|
|
|
|
2001-05-26 01:51:34 +02:00
|
|
|
|
do-build:
|
2017-11-05 10:20:57 +01:00
|
|
|
|
${SED} -E -e '1,/^exec/ s!wish!wish8.5!' \
|
2005-07-14 10:02:35 +02:00
|
|
|
|
-e 's!/usr/share/dict/de-en.txt!${PREFIX}/share/ding/de-en.txt!' \
|
2001-05-26 01:51:34 +02:00
|
|
|
|
${WRKSRC}/ding > ${WRKSRC}/dingX
|
2005-07-14 10:02:35 +02:00
|
|
|
|
${SED} -E -e 's!/usr/share/bin/!${PREFIX}/bin/!' \
|
|
|
|
|
${WRKSRC}/ding.desktop > ${WRKSRC}/ding.desktop.sed
|
2009-05-12 21:05:33 +02:00
|
|
|
|
@${CP} ${WRKSRC}/${DICTFILE} ${WRKSRC}/${SWISSDICT}
|
|
|
|
|
${PERL5} -pi.orig -e '$${sz}="\x{009F}"; s/<2F>$${sz}/ss/g' \
|
|
|
|
|
${WRKSRC}/${SWISSDICT}
|
2001-05-26 01:51:34 +02:00
|
|
|
|
|
|
|
|
|
do-install:
|
2014-04-17 14:19:28 +02:00
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/ding
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dingX ${STAGEDIR}${PREFIX}/bin/ding
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${DICTFILE} ${STAGEDIR}${PREFIX}/share/ding/de-en.txt
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${SWISSDICT} ${STAGEDIR}${PREFIX}/share/ding
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ding.png ${STAGEDIR}${PREFIX}/share/ding/ding.png
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ding.desktop.sed ${STAGEDIR}${PREFIX}/share/ding/ding.desktop
|
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/ding.1 ${STAGEDIR}${PREFIX}/man/man1
|
2001-05-26 01:51:34 +02:00
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|