summaryrefslogtreecommitdiff
path: root/german/ding
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2009-05-12 19:05:33 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2009-05-12 19:05:33 +0000
commit0ff7b37784a6fae2ead430e687abe20516f1c619 (patch)
treecdad943a0441003ae813c0671378676495c2cf56 /german/ding
parentUpdate to 3.9. (diff)
- Update to 1.6
- Integrate dict file from swissgerman-ding [1] Approved by: miwi (mentor) Suggested by: ehaupt (swissgerman-ding maintainer) [1]
Notes
Notes: svn path=/head/; revision=233788
Diffstat (limited to 'german/ding')
-rw-r--r--german/ding/Makefile14
-rw-r--r--german/ding/distinfo6
-rw-r--r--german/ding/pkg-plist1
3 files changed, 15 insertions, 6 deletions
diff --git a/german/ding/Makefile b/german/ding/Makefile
index abee6e81035f..97f088ef0db7 100644
--- a/german/ding/Makefile
+++ b/german/ding/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= ding
-PORTVERSION= 1.5
-PORTREVISION= 2
+PORTVERSION= 1.6
CATEGORIES= german tk
MASTER_SITES= ftp://ftp.tu-chemnitz.de/pub/Local/urz/ding/
@@ -17,19 +16,28 @@ COMMENT= A German-English dictionary program for X windows/Unix
RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
agrep:${PORTSDIR}/textproc/agrep
+USE_PERL5= yes
+
MAN1= ding.1
+DICTFILE= de-en.txt
+SWISSDICT= de_ch-en.txt
+
do-build:
${SED} -E -e '1,/^exec/ s!wish!wish8.4!' \
-e 's!/usr/share/dict/de-en.txt!${PREFIX}/share/ding/de-en.txt!' \
${WRKSRC}/ding > ${WRKSRC}/dingX
${SED} -E -e 's!/usr/share/bin/!${PREFIX}/bin/!' \
${WRKSRC}/ding.desktop > ${WRKSRC}/ding.desktop.sed
+ @${CP} ${WRKSRC}/${DICTFILE} ${WRKSRC}/${SWISSDICT}
+ ${PERL5} -pi.orig -e '$${sz}="\x{009F}"; s/Ã$${sz}/ss/g' \
+ ${WRKSRC}/${SWISSDICT}
do-install:
${MKDIR} ${PREFIX}/share/ding
${INSTALL_SCRIPT} ${WRKSRC}/dingX ${PREFIX}/bin/ding
- ${INSTALL_DATA} ${WRKSRC}/de-en.txt ${PREFIX}/share/ding/de-en.txt
+ ${INSTALL_DATA} ${WRKSRC}/${DICTFILE} ${PREFIX}/share/ding/de-en.txt
+ ${INSTALL_DATA} ${WRKSRC}/${SWISSDICT} ${PREFIX}/share/ding
${INSTALL_DATA} ${WRKSRC}/ding.png ${PREFIX}/share/ding/ding.png
${INSTALL_DATA} ${WRKSRC}/ding.desktop.sed ${PREFIX}/share/ding/ding.desktop
${INSTALL_MAN} ${WRKSRC}/ding.1 ${PREFIX}/man/man1
diff --git a/german/ding/distinfo b/german/ding/distinfo
index b872c474bab2..63500e563a1d 100644
--- a/german/ding/distinfo
+++ b/german/ding/distinfo
@@ -1,3 +1,3 @@
-MD5 (ding-1.5.tar.gz) = 74c2b3104f8732107c23c005b64d5609
-SHA256 (ding-1.5.tar.gz) = d873ecd21405529d5b97aa1e98e9dd03283419ec41a6a13507507597fcc667af
-SIZE (ding-1.5.tar.gz) = 2870192
+MD5 (ding-1.6.tar.gz) = 6f336c9b66f37c99b98e13659b493d54
+SHA256 (ding-1.6.tar.gz) = 41ba23e6ccf390e3eb094e4a82eebcdbeb9b4427a05173e7278aabf2ac222953
+SIZE (ding-1.6.tar.gz) = 3548804
diff --git a/german/ding/pkg-plist b/german/ding/pkg-plist
index 76c008c1b9a7..98a05d4f5613 100644
--- a/german/ding/pkg-plist
+++ b/german/ding/pkg-plist
@@ -1,5 +1,6 @@
bin/ding
%%DATADIR%%/ding.png
%%DATADIR%%/ding.desktop
+%%DATADIR%%/de_ch-en.txt
%%DATADIR%%/de-en.txt
@dirrm share/ding