diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2017-12-08 00:00:23 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 06:05:19 +0800 |
commit | 81a1c05201da235effb6cd28bc3ca982a115a843 (patch) | |
tree | 9a8a53a4416ea73390896849b328ef9064ecf829 /ftp | |
parent | 24795a3b667c36893dcecbf4dbb3112fdf15f238 (diff) | |
download | freebsd-ports-gnome-81a1c05201da235effb6cd28bc3ca982a115a843.tar.gz freebsd-ports-gnome-81a1c05201da235effb6cd28bc3ca982a115a843.tar.zst freebsd-ports-gnome-81a1c05201da235effb6cd28bc3ca982a115a843.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/Makefile | 9 | ||||
-rw-r--r-- | ftp/py-pycurl/files/patch-setup.py | 10 |
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: |