2010-01-02 18:22:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2010/01/02 17:22:01 cheusov Exp $
|
2006-05-13 17:12:26 +02:00
|
|
|
|
|
|
|
DISTNAME= Mueller7GPL
|
|
|
|
PKGNAME= dict-mueller7-1.2
|
2010-01-02 18:22:01 +01:00
|
|
|
PKGREVISION= 1
|
2006-05-13 17:12:26 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://www.geocities.com/mueller_dic/ \
|
|
|
|
http://mueller-dic.chat.ru/ \
|
|
|
|
http://www.chat.ru/~mueller_dic/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= cheusov@tut.by
|
|
|
|
HOMEPAGE= http://mueller-dic.chat.ru/
|
|
|
|
COMMENT= DICTD data for English-Russian dictionary by Mueller
|
|
|
|
|
2009-08-10 21:52:29 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2010-01-02 18:22:01 +01:00
|
|
|
DEPENDS+= dict-server>=1.9.14:../../textproc/dict-server
|
2006-05-13 17:12:26 +02:00
|
|
|
|
2010-01-02 18:22:01 +01:00
|
|
|
BUILD_DEPENDS+= dict-server>=1.10.2:../../textproc/dict-server
|
2006-05-13 17:12:26 +02:00
|
|
|
BUILD_DEPENDS+= p5-Unicode-Map8-[0-9]*:../../converters/p5-Unicode-Map8
|
2006-11-29 19:57:38 +01:00
|
|
|
BUILD_DEPENDS+= metamail-[0-9]*:../../mail/metamail
|
2006-05-13 17:12:26 +02:00
|
|
|
|
|
|
|
# we need GNU fmt
|
|
|
|
BUILD_DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
|
|
|
|
|
2006-08-31 14:31:12 +02:00
|
|
|
WRKSRC= ${WRKDIR}/mueller7/usr/local/share/dict
|
2006-05-13 17:12:26 +02:00
|
|
|
|
2008-04-14 22:05:21 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
USE_TOOLS+= gsed perl tar bzip2
|
2007-01-07 15:15:40 +01:00
|
|
|
|
|
|
|
INSTALLATION_DIRS+= share/dictd
|
2006-05-13 17:12:26 +02:00
|
|
|
|
|
|
|
pre-configure:
|
2007-01-06 21:24:20 +01:00
|
|
|
cp files/mueller2utf8 files/to-dict ${WRKSRC}
|
2006-05-13 17:12:26 +02:00
|
|
|
|
2006-08-31 14:31:12 +02:00
|
|
|
do-extract:
|
2007-01-07 15:15:40 +01:00
|
|
|
set -e; \
|
|
|
|
mkdir ${WRKDIR}/mueller7; \
|
|
|
|
cd ${WRKDIR}/mueller7; \
|
|
|
|
bzip2 -dc ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} >${WRKDIR}/1.tar; \
|
|
|
|
tar -xf ${WRKDIR}/1.tar
|
2006-08-31 14:31:12 +02:00
|
|
|
|
2006-05-13 17:12:26 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2007-01-06 21:24:20 +01:00
|
|
|
sh to-dict --src-data Mueller7GPL.koi mueller7.data > /dev/null && \
|
|
|
|
perl mueller2utf8 < mueller7.data > tmp_1 && \
|
2008-04-14 22:05:21 +02:00
|
|
|
${PREFIX}/bin/dictfmt --utf8 -p --columns 0 \
|
2006-05-13 17:12:26 +02:00
|
|
|
-s 'Mueller English-Russian Dictionary' \
|
|
|
|
-u 'http://www.chat.ru/~mueller_dic' \
|
|
|
|
--headword-separator ', ' mueller7 < tmp_1 && \
|
2008-04-14 22:05:21 +02:00
|
|
|
${PREFIX}/bin/dictzip *.dict
|
2006-05-13 17:12:26 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.dict.dz ${WRKSRC}/*.index \
|
2008-04-14 22:05:21 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/dictd
|
2006-05-13 17:12:26 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|