svn commit: r455712 - in head/ftp/py-pycurl: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Dec 7 16:00:26 UTC 2017
Author: sunpoet
Date: Thu Dec 7 16:00:23 2017
New Revision: 455712
URL: https://svnweb.freebsd.org/changeset/ports/455712
Log:
Add DOCS option
- Fix documentation installation:
- Avoid conflicts between FLAVORS
- Do not install license files
- Bump PORTREVISION for package change
PR: 224108
Reported by: Ting-Wei Lan <lantw44 at gmail.com>
Added:
head/ftp/py-pycurl/files/
head/ftp/py-pycurl/files/patch-setup.py (contents, props changed)
Modified:
head/ftp/py-pycurl/Makefile
Modified: head/ftp/py-pycurl/Makefile
==============================================================================
--- head/ftp/py-pycurl/Makefile Thu Dec 7 16:00:18 2017 (r455711)
+++ head/ftp/py-pycurl/Makefile Thu Dec 7 16:00:23 2017 (r455712)
@@ -3,6 +3,7 @@
PORTNAME= pycurl
PORTVERSION= 7.43.0
+PORTREVISION= 1
CATEGORIES= ftp python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,10 +18,18 @@ LICENSE_MIT= ${WRKSRC}/COPYING-MIT
LIB_DEPENDS= libcurl.so:ftp/curl
+OPTIONS_DEFINE= DOCS
+
USE_PYTHON= autoplist concurrent distutils
USES= python ssl
+PORTDOCS= AUTHORS INSTALL.rst README.rst RELEASE-NOTES.rst
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}.so
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
Added: head/ftp/py-pycurl/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ftp/py-pycurl/files/patch-setup.py Thu Dec 7 16:00:23 2017 (r455712)
@@ -0,0 +1,10 @@
+--- setup.py.orig 2016-02-04 04:39:06 UTC
++++ setup.py
+@@ -815,7 +815,6 @@ if __name__ == "__main__":
+ elif len(sys.argv) > 1 and sys.argv[1] == 'docstrings-sources':
+ gen_docstrings_sources()
+ else:
+- setup_args['data_files'] = get_data_files()
+ if 'PYCURL_RELEASE' in os.environ and os.environ['PYCURL_RELEASE'].lower() in ['1', 'yes', 'true']:
+ split_extension_source = False
+ else:
More information about the svn-ports-head
mailing list