aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-s3cmd/Makefile
blob: 4e80fa9b3a56f4e296eef50acca40f51d6daf6bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   s3cmd
PORTVERSION=    1.0.1
PORTREVISION=   1
CATEGORIES= net python
MASTER_SITES=   SF/s3tools/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= clsung@FreeBSD.org
COMMENT=    Unix-like tools to manipulate stored files from the command line

USE_PYDISTUTILS=    yes
USE_PYTHON= 2

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
    ${REINPLACE_CMD} -e 's,share/man,man,' ${WRKSRC}/setup.py
.if ${PORT_OPTIONS:MDOCS}
    ${REINPLACE_CMD} -e 's,doc/packages,doc,' ${WRKSRC}/setup.py
.else
    ${REINPLACE_CMD} -e '/(doc_path+/d' ${WRKSRC}/setup.py
.endif

.include <bsd.port.mk>