mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
textproc/py-wordnet: support staging
This commit is contained in:
parent
994f9af2ca
commit
d1cfe37d3b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338102
@ -18,7 +18,8 @@ COMMENT= Python Interface to WordNet
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PYDISTUTILS_PKGNAME= pywordnet
|
||||
PYDISTUTILS_AUTOPLIST= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/py${PORTNAME}-${PORTVERSION}
|
||||
PLIST_SUB= WNDATA=${WORDNETDATA}
|
||||
|
||||
@ -30,7 +31,6 @@ WN_DICTFILES= adj.exc adv.exc cntlist cntlist.rev data.adj data.adv \
|
||||
index.sense index.verb lexnames noun.exc sentidx.vrb sents.vrb\
|
||||
verb.exc
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${SED} -e 's|/usr/local/wordnet2.0|${PREFIX}/${WORDNETDATA}|g' \
|
||||
-e 's|os.path.join(WNHOME.*))|WNHOME)|g' ${WRKSRC}/wordnet.py \
|
||||
@ -38,9 +38,9 @@ post-patch:
|
||||
> ${WRKSRC}/wordnet.py
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${PREFIX}/${WORDNETDATA}
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${WORDNETDATA}
|
||||
.for f in ${WN_DICTFILES}
|
||||
${INSTALL_DATA} ${WN_WRKSRC}/dict/${f} ${PREFIX}/${WORDNETDATA}/
|
||||
${INSTALL_DATA} ${WN_WRKSRC}/dict/${f} ${STAGEDIR}${PREFIX}/${WORDNETDATA}/
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,12 +1,3 @@
|
||||
%%PYTHON_SITELIBDIR%%/concordance.py
|
||||
%%PYTHON_SITELIBDIR%%/concordance.pyc
|
||||
%%PYTHON_SITELIBDIR%%/concordance.pyo
|
||||
%%PYTHON_SITELIBDIR%%/wordnet.py
|
||||
%%PYTHON_SITELIBDIR%%/wordnet.pyc
|
||||
%%PYTHON_SITELIBDIR%%/wordnet.pyo
|
||||
%%PYTHON_SITELIBDIR%%/wntools.py
|
||||
%%PYTHON_SITELIBDIR%%/wntools.pyc
|
||||
%%PYTHON_SITELIBDIR%%/wntools.pyo
|
||||
%%WNDATA%%/adj.exc
|
||||
%%WNDATA%%/adv.exc
|
||||
%%WNDATA%%/cntlist
|
||||
|
Loading…
Reference in New Issue
Block a user