aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-s3cmd
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-08-28 21:39:56 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-08-28 21:39:56 +0800
commit80986f3bba5207fadfa3c154807c2bd35fc4fe43 (patch)
tree30df43bd9eff2c4d3d713edce11d9d1da280e753 /net/py-s3cmd
parent107a7c671373ca4fc49013600186b99151a35dd1 (diff)
downloadfreebsd-ports-graphics-80986f3bba5207fadfa3c154807c2bd35fc4fe43.tar.gz
freebsd-ports-graphics-80986f3bba5207fadfa3c154807c2bd35fc4fe43.tar.zst
freebsd-ports-graphics-80986f3bba5207fadfa3c154807c2bd35fc4fe43.zip
- Switch to options helpers
- While here, add some NO_ARCHes and couple missing PORT_OPTIONS=DOCS Approved by: portmgr blanket
Diffstat (limited to 'net/py-s3cmd')
-rw-r--r--net/py-s3cmd/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/py-s3cmd/Makefile b/net/py-s3cmd/Makefile
index 97a5ffdd858..c3ee88fd80f 100644
--- a/net/py-s3cmd/Makefile
+++ b/net/py-s3cmd/Makefile
@@ -12,21 +12,21 @@ COMMENT= Unix-like tools to manipulate stored files from the command line
LICENSE= GPLv2
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil
+
USES= python:2
USE_PYTHON= autoplist distutils
-
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dateutil>0:${PORTSDIR}/devel/py-dateutil
+NO_ARCH= yes
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
${REINPLACE_CMD} -e 's,share/man,man,' ${WRKSRC}/setup.py
-.if ${PORT_OPTIONS:MDOCS}
+
+post-patch-DOCS-on:
${REINPLACE_CMD} -e 's,doc/packages,doc,' ${WRKSRC}/setup.py
-.else
+
+post-patch-DOCS-off:
${REINPLACE_CMD} -e '/(doc_path+/d' ${WRKSRC}/setup.py
-.endif
.include <bsd.port.mk>