- Switch from easy_install to install

- Stage support
- Use PYDISTUTILS_AUTOPLIST
This commit is contained in:
Antoine Brodin 2014-02-05 21:15:15 +00:00
parent eac345028e
commit 62085b22c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342856
2 changed files with 9 additions and 44 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= bitarray
PORTVERSION= 0.8.1
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -13,27 +14,22 @@ COMMENT= Efficient arrays of booleans
LICENSE= PSFL
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PYEASYINSTALL_ARCHDEP= yes
PYEASYINSTALL_EGG= ${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}${PYEASYINSTALL_OSARCH}.egg
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= AUTHORS CHANGE_LOG LICENSE README.rst
PORTEXAMPLES= *
NO_STAGE= yes
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
regression-test: extract
@(cd ${WRKSRC}/${PORTNAME}; ${PYTHON_CMD} -c "import ${PORTNAME}; ${PORTNAME}.test()")

View file

@ -1,31 +0,0 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/native_libs.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/__init__.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/__init__.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/__init__.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/_bitarray.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/_bitarray.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/_bitarray.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/test_bitarray.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/test_bitarray.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/test_bitarray.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray/_bitarray.so
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bloom.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/compress.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/decoding.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/huffman.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mandel.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ndarray.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pbm.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sieve.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/runall
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/smallints.py
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/bitarray
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%