Skip to content

Commit

Permalink
Support stage, use bsdtar to extract
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Nov 4, 2013
1 parent 0d0b67f commit 4753c7c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 36 deletions.
2 changes: 1 addition & 1 deletion french/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= [email protected]
COMMENT= Modern French hunspell dictionaries

USE_ZIP= yes
EXTRACT_SUFX= .zip
NO_BUILD= yes
NO_WRKSUBDIR= yes

Expand Down
16 changes: 7 additions & 9 deletions german/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ COMMENT= German hunspell dictionaries
BUILD_DEPENDS= buildhash:${PORTSDIR}/textproc/ispell \
hunspell:${PORTSDIR}/textproc/hunspell

USES= shebangfix perl5
USES= gmake shebangfix perl5
USE_BZIP2= yes
ALL_TARGET= hunspell-all
USE_GMAKE= yes
USE_PERL5= build
SHEBANG_FILES= bin/*.pl

Expand All @@ -35,19 +34,18 @@ PLIST_FILES+= %%DATADIR%%/${ALIAS}.aff \
%%DATADIR%%/${ALIAS}.dic
.endfor

NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}/
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/hunspell/de_AT.aff ${WRKSRC}/hunspell/de_AT.dic \
${WRKSRC}/hunspell/de_CH.aff ${WRKSRC}/hunspell/de_CH.dic \
${WRKSRC}/hunspell/de_DE.aff ${WRKSRC}/hunspell/de_DE.dic ${DATADIR}/
${WRKSRC}/hunspell/de_DE.aff ${WRKSRC}/hunspell/de_DE.dic ${STAGEDIR}${DATADIR}/
.for ALIAS in ${CHALIASES}
${LN} -s de_CH.aff ${DATADIR}/${ALIAS}.aff
${LN} -s de_CH.dic ${DATADIR}/${ALIAS}.dic
${LN} -s de_CH.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff
${LN} -s de_CH.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic
.endfor
.for ALIAS in ${DEALIASES}
${LN} -s de_DE.aff ${DATADIR}/${ALIAS}.aff
${LN} -s de_DE.dic ${DATADIR}/${ALIAS}.dic
${LN} -s de_DE.aff ${STAGEDIR}${DATADIR}/${ALIAS}.aff
${LN} -s de_DE.dic ${STAGEDIR}${DATADIR}/${ALIAS}.dic
.endfor

.include <bsd.port.mk>
11 changes: 4 additions & 7 deletions hebrew/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@ ALL_TARGET= hunspell
CONFIGURE_ARGS= --enable-fatverb
GNU_CONFIGURE= yes
USE_PERL5= build
USES= gmake iconv:build perl5
USES= gmake iconv:build perl5 shebangfix
SHEBANG_FILES= ${WRKSRC}/pmerge

PLIST_FILES= %%DATADIR%%/he.aff \
%%DATADIR%%/he.dic
PLIST_DIRSTRY= %%DATADIR%%

NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} 's|/usr/bin/perl|${PERL}|g' ${WRKSRC}/pmerge

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

.include <bsd.port.mk>
5 changes: 2 additions & 3 deletions hungarian/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ PLIST_FILES= %%DATADIR%%/hu_HU.aff \
%%DATADIR%%/hu_HU.dic
PLIST_DIRSTRY= %%DATADIR%%

NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/hu_HU.aff ${WRKSRC}/hu_HU.dic ${DATADIR}/
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/hu_HU.aff ${WRKSRC}/hu_HU.dic ${STAGEDIR}${DATADIR}/

.include <bsd.port.mk>
9 changes: 4 additions & 5 deletions korean/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LICENSE_COMB= dual

BUILD_DEPENDS+= py*-lxml>=0:${PORTSDIR}/devel/py-lxml

USE_GMAKE= yes
USES= gmake
USE_PYTHON_BUILD= yes
USE_XZ= yes

Expand All @@ -26,10 +26,9 @@ PROJECTHOST= spellcheck-ko

MAKE_ENV+= PYTHON=${PYTHON_CMD}

NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/ko.aff ${DATADIR}/ko_KR.aff
${INSTALL_DATA} ${WRKSRC}/ko.dic ${DATADIR}/ko_KR.dic
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/ko.aff ${STAGEDIR}${DATADIR}/ko_KR.aff
${INSTALL_DATA} ${WRKSRC}/ko.dic ${STAGEDIR}${DATADIR}/ko_KR.dic

.include <bsd.port.mk>
7 changes: 3 additions & 4 deletions russian/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= [email protected]
COMMENT= Russian hunspell dictionaries

USE_ZIP= yes
EXTRACT_SUFX= .zip
NO_BUILD= yes
NO_WRKSUBDIR= yes
PROJECTHOST= hunspell-ru
Expand All @@ -19,9 +19,8 @@ PLIST_FILES= %%DATADIR%%/ru_RU.aff \
%%DATADIR%%/ru_RU.dic
PLIST_DIRSTRY= %%DATADIR%%

NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/ru_RU.aff ${WRKSRC}/ru_RU.dic ${DATADIR}/
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/ru_RU.aff ${WRKSRC}/ru_RU.dic ${STAGEDIR}${DATADIR}/

.include <bsd.port.mk>
5 changes: 2 additions & 3 deletions ukrainian/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ PLIST_FILES= %%DATADIR%%/uk_UA.aff \
%%DATADIR%%/uk_UA.dic
PLIST_DIRSTRY= %%DATADIR%%

NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}/
cd ${WRKSRC}/dist/my${DISTNAME}/ && ${INSTALL_DATA} uk_UA.aff uk_UA.dic ${DATADIR}/
${MKDIR} ${STAGEDIR}${DATADIR}/
cd ${WRKSRC}/dist/my${DISTNAME}/ && ${INSTALL_DATA} uk_UA.aff uk_UA.dic ${STAGEDIR}${DATADIR}/

.include <bsd.port.mk>
7 changes: 3 additions & 4 deletions vietnamese/hunspell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DIST_SUBDIR= ${PORTNAME}
MAINTAINER= [email protected]
COMMENT= Vietnamese hunspell dictionaries

USE_ZIP= yes
EXTRACT_SUFX= .zip
NO_BUILD= yes
NO_WRKSUBDIR= yes
PROJECTHOST= hunspell-spellcheck-vi
Expand All @@ -20,9 +20,8 @@ PLIST_FILES= %%DATADIR%%/vi_VN.aff \
%%DATADIR%%/vi_VN.dic
PLIST_DIRSTRY= %%DATADIR%%

NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/vi_VN.aff ${WRKSRC}/vi_VN.dic ${DATADIR}/
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/vi_VN.aff ${WRKSRC}/vi_VN.dic ${STAGEDIR}${DATADIR}/

.include <bsd.port.mk>

0 comments on commit 4753c7c

Please sign in to comment.