Import graphics/py-sane version 2.0
[dports.git] / graphics / py-sane / Makefile
1 # New ports collection makefile for:    py-sane
2 # Date created:         5 August 2011
3 # Whom:                 buganini@gmail.com
4 #
5 # $FreeBSD: ports/graphics/py-sane/Makefile,v 1.2 2012/11/17 05:58:20 svnexp Exp $
6 #
7
8 PORTNAME=       sane
9 PORTVERSION=    2.0
10 CATEGORIES=     graphics python
11 MASTER_SITES=   http://effbot.org/media/downloads/ \
12                 http://www.pythonware.net/storage/
13 PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
14 DISTNAME=       Imaging-1.1.7
15
16 MAINTAINER=     buganini@gmail.com
17 COMMENT=        The Python binding for Sane
18
19 LIB_DEPENDS=    sane.1:${PORTSDIR}/graphics/sane-backends
20 RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}imaging>=1.1.7:${PORTSDIR}/graphics/py-imaging
21
22 DIST_SUBDIR=    python
23 USE_PYTHON=     yes
24 USE_PYDISTUTILS=        yes
25
26 WRKSRC=         ${WRKDIR}/${DISTNAME}/Sane
27
28 post-patch:
29         @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/setup.py
30
31 .include <bsd.port.mk>