From e22243dcf86e06259e892230dfae261d1e10ca1b Mon Sep 17 00:00:00 2001 From: Derek Schrock Date: Thu, 1 Mar 2018 21:13:56 -0500 Subject: [PATCH] new port devel/py-python-gitlab python-gitlab is a Python package providing access to the GitLab server API. It supports the v3 and v4 APIs of GitLab, and provides a CLI tool (gitlab). https://github.com/python-gitlab/python-gitlab Installs python-gitlab to the flavored python and bin/gitlab CLI utility --- devel/py-python-gitlab/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-python-gitlab/distinfo | 3 +++ devel/py-python-gitlab/files/pkg-message.in | 4 ++++ devel/py-python-gitlab/pkg-descr | 5 +++++ 4 files changed, 41 insertions(+) create mode 100644 devel/py-python-gitlab/Makefile create mode 100644 devel/py-python-gitlab/distinfo create mode 100644 devel/py-python-gitlab/files/pkg-message.in create mode 100644 devel/py-python-gitlab/pkg-descr diff --git a/devel/py-python-gitlab/Makefile b/devel/py-python-gitlab/Makefile new file mode 100644 index 000000000000..5b545fc6b2ff --- /dev/null +++ b/devel/py-python-gitlab/Makefile @@ -0,0 +1,29 @@ +# Created by: Derek Schrock +# $FreeBSD$ + +PORTNAME= python-gitlab +PORTVERSION= 1.3.0 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dereks@lifeofadishwasher.com +COMMENT= Python package providing access to the GitLab server API + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>2.4.2:www/py-requests@${FLAVOR} + +USES= python:2.7+ +USE_PYTHON= distutils autoplist +USE_GITHUB= yes + +NO_ARCH= yes + +SUB_FILES= pkg-message + +post-patch: + @${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}/etc|g' ${WRKSRC}/gitlab/config.py + +.include diff --git a/devel/py-python-gitlab/distinfo b/devel/py-python-gitlab/distinfo new file mode 100644 index 000000000000..e3d52b6dbe40 --- /dev/null +++ b/devel/py-python-gitlab/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1519957336 +SHA256 (python-gitlab-python-gitlab-1.3.0_GH0.tar.gz) = 2d555f49a3d45ada882d5b1ddc30db58f9573b35e75a6699e9ad5fc4089de430 +SIZE (python-gitlab-python-gitlab-1.3.0_GH0.tar.gz) = 124165 diff --git a/devel/py-python-gitlab/files/pkg-message.in b/devel/py-python-gitlab/files/pkg-message.in new file mode 100644 index 000000000000..88016644bf22 --- /dev/null +++ b/devel/py-python-gitlab/files/pkg-message.in @@ -0,0 +1,4 @@ +Add %%PREFIX%%/etc/python-gitlab.cfg or ~/.python-gitlab.cfg + +See https://github.com/python-gitlab/python-gitlab/blob/master/docs/cli.rst +for configutation details diff --git a/devel/py-python-gitlab/pkg-descr b/devel/py-python-gitlab/pkg-descr new file mode 100644 index 000000000000..348dc034b695 --- /dev/null +++ b/devel/py-python-gitlab/pkg-descr @@ -0,0 +1,5 @@ +python-gitlab is a Python package providing access to the GitLab server API. + +It supports the v3 and v4 APIs of GitLab, and provides a CLI tool (gitlab). + +WWW: https://github.com/python-gitlab/python-gitlab -- 2.16.2