1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

- Switch from easy_install to install

- Use PYDISTUTILS_AUTOPLIST
- Remove DOCS/EXAMPLES conditionals
This commit is contained in:
Antoine Brodin 2014-01-26 10:29:40 +00:00
parent 2db9a53b00
commit edf41c0c16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341160
3 changed files with 14 additions and 18 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= plaso
PORTVERSION= 1.0.2
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= https://googledrive.com/host/0B30H7z4S52FleW5vUHBnblJfcjg/${PORTVERSION}/final/ \
LOCAL/antoine
@ -38,8 +39,8 @@ RUN_DEPENDS= hachoir-core>=0:${PORTSDIR}/devel/hachoir-core \
${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml
USE_PYTHON= 2
USE_PYDISTUTILS=easy_install
PYDISTUTILS_PKGVERSION=${PORTVERSION}alpha
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= ACKNOWLEDGEMENT AUTHORS
@ -50,16 +51,10 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/extra/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- ./setup.py.orig 2013-10-31 18:02:07.000000000 +0000
+++ ./setup.py 2014-01-26 09:42:25.000000000 +0000
@@ -104,7 +104,7 @@
'Programming Language :: Python',
],
#include_package_data=True,
- packages=find_packages('.'),
+ packages=find_packages('.', exclude=['test_data']),
package_data={'plaso.test_data': GetFileList('test_data', ['*'])},
)

View File

@ -1,10 +0,0 @@
bin/image_export.py
bin/log2timeline.py
bin/pinfo.py
bin/plasm.py
bin/plaso_extract_search_history.py
bin/pprof.py
bin/preg.py
bin/pshell.py
bin/psort.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%