aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/no-hunspell/Makefile
blob: aef782d007900f862b26ed1d1e6886a893a78186 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $FreeBSD$

PORTNAME=   hunspell
PORTVERSION=    2.1
CATEGORIES= textproc
MASTER_SITES=   https://alioth.debian.org/frs/download.php/file/3764/
PKGNAMEPREFIX=  no-
DISTNAME=   no_NO-pack2-${PORTVERSION}
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= office@FreeBSD.org
COMMENT=    Norwegian (Nynorsk and Bokmaal) hunspell dictionaries

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

USES=       zip
NO_BUILD=   yes

PLIST_FILES=    %%DATADIR%%/nb_NO.aff \
        %%DATADIR%%/nb_NO.dic \
        %%DATADIR%%/nn_NO.aff \
        %%DATADIR%%/nn_NO.dic
PLIST_DIRSTRY=  %%DATADIR%%

post-extract:
    @${MKDIR} ${WRKSRC}
    @${TAR} -xf ${WRKDIR}/nb_NO.zip --directory ${WRKSRC}
    @${TAR} -xf ${WRKDIR}/nn_NO.zip --directory ${WRKSRC}

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}/
    ${INSTALL_DATA} ${WRKSRC}/nb_NO.aff ${WRKSRC}/nb_NO.dic \
        ${WRKSRC}/nn_NO.aff ${WRKSRC}/nn_NO.dic ${STAGEDIR}${DATADIR}/

.include <bsd.port.mk>