# New ports collection makefile for:	ti-hunspell
# Date created:		2011-07-20
# Whom:			Baptiste Daroussin <bapt@FreeBSD.org>
#
# $FreeBSD: ports/textproc/ti-hunspell/Makefile,v 1.5 2011/08/17 18:03:04 sunpoet Exp $
#

PORTNAME=	hunspell
PORTVERSION=	20090911
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	LOCAL/sunpoet/${PORTNAME}/
PKGNAMEPREFIX=	ti-
DISTNAME=	ti_ER-${PORTVERSION}
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	office@FreeBSD.org
COMMENT=	Tigrigna hunspell dictionaries

USE_ZIP=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes

PLIST_FILES=	%%DATADIR%%/ti_ER.dic \
		%%DATADIR%%/ti_ER.aff \
		%%DATADIR%%/ti_ET.dic \
		%%DATADIR%%/ti_ET.aff
PLIST_DIRSTRY=	%%DATADIR%%

do-install:
	${MKDIR} ${DATADIR}/
	${INSTALL_DATA} ${WRKSRC}/ti_ER.aff ${WRKSRC}/ti_ER.dic ${DATADIR}/
	${LN} -s ti_ER.aff ${DATADIR}/ti_ET.aff
	${LN} -s ti_ER.dic ${DATADIR}/ti_ET.dic

.include <bsd.port.mk>
