pkgsrc-wip/dict-mueller7/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.12 2010/01/02 17:22:01 cheusov Exp $
DISTNAME= Mueller7GPL
PKGNAME= dict-mueller7-1.2
PKGREVISION= 1
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
DEPENDS+= dict-server>=1.9.14:../../textproc/dict-server
BUILD_DEPENDS+= dict-server>=1.10.2:../../textproc/dict-server
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
# we need GNU fmt
BUILD_DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
WRKSRC= ${WRKDIR}/mueller7/usr/local/share/dict
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
pre-configure:
2007-01-06 21:24:20 +01:00
cp files/mueller2utf8 files/to-dict ${WRKSRC}
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
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 \
-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
do-install:
${INSTALL_DATA} ${WRKSRC}/*.dict.dz ${WRKSRC}/*.index \
2008-04-14 22:05:21 +02:00
${DESTDIR}${PREFIX}/share/dictd
.include "../../mk/bsd.pkg.mk"