- Switch to autoplist, fixing .egg-info handling

- Fix PIL dependency handling and detection
- Add LICENSE
- Add NO_ARCH
This commit is contained in:
Dmitry Marakasov 2015-09-16 16:40:16 +00:00
parent 14b0ff2552
commit 5e3ea69f14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397073
3 changed files with 15 additions and 30 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= vinetto
PORTVERSION= 0.07
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-beta-${PORTVERSION}
DISTNAME= ${PORTNAME}-beta-${PORTVERSION}
@ -11,23 +11,19 @@ DISTNAME= ${PORTNAME}-beta-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Forensics tool to examine Thumbs.db files
OPTIONS_DEFINE= THUMBNAILS
OPTIONS_DEFAULT=THUMBNAILS
IMAGING_DESC= Build with ability to extract graphic thumbnails
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
USES= python
USE_PYTHON= distutils
USE_PYTHON= autoplist distutils
PYDISTUTILS_PKGVERSION= 0.06alpha
NO_ARCH= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIMAGING}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
.endif
do-patch:
${REINPLACE_CMD} -e "s|/usr/share/vinetto|${DATADIR}|g" ${WRKSRC}/setup.py
${REINPLACE_CMD} -e "s|/usr/share/vinetto|${DATADIR}|g" ${WRKSRC}/vinreport.py
${REINPLACE_CMD} -e "s|/usr/share/vinetto|${DATADIR}|g" ${WRKSRC}/vinetto
post-patch:
@${REINPLACE_CMD} -e "s|/usr/share/vinetto|${DATADIR}|g" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "s|/usr/share/vinetto|${DATADIR}|g" ${WRKSRC}/vinreport.py
@${REINPLACE_CMD} -e "s|/usr/share/vinetto|${DATADIR}|g" ${WRKSRC}/vinetto
.include <bsd.port.mk>

View File

@ -1,11 +1,11 @@
--- vinetto.orig 2014-10-07 11:39:47 UTC
--- vinetto.orig 2015-09-16 16:24:54 UTC
+++ vinetto
@@ -149,7 +149,7 @@
@@ -149,7 +149,7 @@ if outputdir != None :
outputdir += "/"
try:
- from PIL import Image
+ import Image
- import Image
+ from PIL import Image
PIL = "imported"
except ImportError, e:
print >> sys.stderr, ""

View File

@ -1,11 +0,0 @@
bin/vinetto
%%PYTHON_SITELIBDIR%%/vinreport.py
%%PYTHON_SITELIBDIR%%/vinreport.pyc
%%PYTHON_SITELIBDIR%%/vinreport.pyo
%%PYTHON_SITELIBDIR%%/vinutils.py
%%PYTHON_SITELIBDIR%%/vinutils.pyc
%%PYTHON_SITELIBDIR%%/vinutils.pyo
%%DATADIR%%/HtRepTemplate.html
%%DATADIR%%/header
%%DATADIR%%/huffman
%%DATADIR%%/quantization