freebsd-ports/net/py-smb/Makefile
Ruslan Makhmatkhanov 64bdada48a - since 1.1.1 upstream switched to setuptools by default,
so switching this port to setuptools to fix packaging
- change USE_PYTHON just to yes, because since version
  1.1.1 this port supports python3, and it now packaging
  fine both with python2 and python3
- do not bump PORTREVISION, because port was broken

Reported by:	pointyhat (pav, linimon)
2012-06-21 18:59:35 +00:00

39 lines
1,009 B
Makefile

# ex:ts=8
# Ports collection makefile for: pysmb
# Date created: Jan 11, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= smb
PORTVERSION= 1.1.1
CATEGORIES= net python
MASTER_SITES= http://miketeo.net/files/Projects/py${PORTNAME}/ \
CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pysmb-${PORTVERSION}
MAINTAINER= rm@FreeBSD.org
COMMENT= SMB/CIFS library written in Python
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0:${PORTSDIR}/devel/py-asn1
# Python3 ready
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= py${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/py-smb
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} _modules/ ${DOCSDIR}/)
@(cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} _static/ ${DOCSDIR}/)
@(cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} api/ ${DOCSDIR}/)
@(cd ${WRKSRC}/docs/html/ && ${CP} *.html ${DOCSDIR}/)
@(cd ${WRKSRC}/docs/html/ && ${CP} *.js ${DOCSDIR}/)
.endif
.include <bsd.port.mk>