aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-12-08 00:00:23 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-12-08 00:00:23 +0800
commit9f9b96bfc04e5a857a6bde42371c54425fa34880 (patch)
treea82ab161db514d1a97ff246737c36ce7b7aa8123 /ftp
parentb4c3e3d8f6c6a4aad02ef1105223694814fd052c (diff)
downloadfreebsd-ports-gnome-9f9b96bfc04e5a857a6bde42371c54425fa34880.tar.gz
freebsd-ports-gnome-9f9b96bfc04e5a857a6bde42371c54425fa34880.tar.zst
freebsd-ports-gnome-9f9b96bfc04e5a857a6bde42371c54425fa34880.zip
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@gmail.com>
Diffstat (limited to 'ftp')
-rw-r--r--ftp/py-pycurl/Makefile9
-rw-r--r--ftp/py-pycurl/files/patch-setup.py10
2 files changed, 19 insertions, 0 deletions
diff --git a/ftp/py-pycurl/Makefile b/ftp/py-pycurl/Makefile
index bb22b301a84d..73d26520908b 100644
--- a/ftp/py-pycurl/Makefile
+++ b/ftp/py-pycurl/Makefile
@@ -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>
diff --git a/ftp/py-pycurl/files/patch-setup.py b/ftp/py-pycurl/files/patch-setup.py
new file mode 100644
index 000000000000..c7b99461276c
--- /dev/null
+++ b/ftp/py-pycurl/files/patch-setup.py
@@ -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: