aboutsummaryrefslogtreecommitdiffstats
path: root/french/hunspell/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'french/hunspell/Makefile')
-rw-r--r--french/hunspell/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/french/hunspell/Makefile b/french/hunspell/Makefile
index bd2685374462..2ce5c0377e3f 100644
--- a/french/hunspell/Makefile
+++ b/french/hunspell/Makefile
@@ -7,6 +7,7 @@
PORTNAME= hunspell
PORTVERSION= 4.2
+PORTREVISION= 1
CATEGORIES= french textproc
MASTER_SITES= http://www.dicollecte.org/download/fr/
DISTNAME= hunspell-fr-moderne-v${PORTVERSION}
@@ -17,23 +18,23 @@ COMMENT= Hunspell modern french dictionary
USE_ZIP= yes
NO_BUILD= yes
+PLIST_FILES= %%DATADIR%%/fr_FR.aff \
+ %%DATADIR%%/fr_FR.dic
+PLIST_DIRSTRY= %%DATADIR%%
+
FRALIASES= fr_BE fr_CA fr_CH fr_LU
-PLIST_FILES= share/hunspell/fr_FR.aff \
- share/hunspell/fr_FR.dic
.for ALIAS in ${FRALIASES}
-PLIST_FILES+= share/hunspell/${ALIAS}.aff \
- share/hunspell/${ALIAS}.dic
+PLIST_FILES+= %%DATADIR%%/${ALIAS}.aff \
+ %%DATADIR%%/${ALIAS}.dic
.endfor
-PLIST_DIRS= share/hunspell
do-install:
- @${MKDIR} ${PREFIX}/share/hunspell
- @${INSTALL_DATA} ${WRKDIR}/fr-moderne.aff ${PREFIX}/share/hunspell/fr_FR.aff
- @${INSTALL_DATA} ${WRKDIR}/fr-moderne.dic ${PREFIX}/share/hunspell/fr_FR.dic
- @cd ${PREFIX}/share/hunspell; \
- for alias in ${FRALIASES}; do \
- ${LN} -s fr_FR.aff $${alias}.aff ; \
- ${LN} -s fr_FR.dic $${alias}.dic ; \
- done
+ ${MKDIR} ${DATADIR}/
+ ${INSTALL_DATA} ${WRKDIR}/fr-moderne.aff ${DATADIR}/fr_FR.aff
+ ${INSTALL_DATA} ${WRKDIR}/fr-moderne.dic ${DATADIR}/fr_FR.dic
+.for ALIAS in ${FRALIASES}
+ ${LN} -s fr_FR.aff ${DATADIR}/${ALIAS}.aff
+ ${LN} -s fr_FR.dic ${DATADIR}/${ALIAS}.dic
+.endfor
.include <bsd.port.mk>