Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2019 20:47:39 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491117 - in head/sysutils: . py-scarab py-scarab/files
Message-ID:  <201901242047.x0OKldl4057803@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo (src committer)
Date: Thu Jan 24 20:47:39 2019
New Revision: 491117
URL: https://svnweb.freebsd.org/changeset/ports/491117

Log:
  new port: sysutils/py-scarab
  
  Add port for scarab, CLI interface for FreeBSD Bugzilla
  
  WWW: https://github.com/gonzoua/scarab
  
  PR:		235117
  Submitted by:	Dries Michiels <driesm.michiels@gmail.com>
  Approved by:	lme

Added:
  head/sysutils/py-scarab/
  head/sysutils/py-scarab/Makefile   (contents, props changed)
  head/sysutils/py-scarab/distinfo   (contents, props changed)
  head/sysutils/py-scarab/files/
  head/sysutils/py-scarab/files/pkg-message.in   (contents, props changed)
  head/sysutils/py-scarab/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Thu Jan 24 20:26:36 2019	(r491116)
+++ head/sysutils/Makefile	Thu Jan 24 20:47:39 2019	(r491117)
@@ -998,6 +998,7 @@
     SUBDIR += py-ranger
     SUBDIR += py-salt
     SUBDIR += py-scandir
+    SUBDIR += py-scarab
     SUBDIR += py-scriptine
     SUBDIR += py-shutilwhich
     SUBDIR += py-stdiff

Added: head/sysutils/py-scarab/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-scarab/Makefile	Thu Jan 24 20:47:39 2019	(r491117)
@@ -0,0 +1,47 @@
+# $FreeBSD$
+
+PORTNAME=		scarab
+DISTVERSIONPREFIX=      v
+DISTVERSION=            0.1.2
+CATEGORIES=		sysutils python
+PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	driesm.michiels@gmail.com
+COMMENT=	CLI interface for FreeBSD Bugzilla
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python-magic>=0:devel/py-python-magic@${PY_FLAVOR}
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}
+
+USES=		python:3.4+
+USE_PYTHON=	autoplist concurrent distutils
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	gonzoua
+
+NO_ARCH=	yes
+
+SUB_FILES=      pkg-message
+
+PORTDOCS=	README.md
+PORTEXAMPLES=	scarabrc
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_MAN} ${WRKSRC}/examples/scarabrc ${STAGEDIR}${EXAMPLESDIR}
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>

Added: head/sysutils/py-scarab/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-scarab/distinfo	Thu Jan 24 20:47:39 2019	(r491117)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1548097863
+SHA256 (gonzoua-scarab-v0.1.2_GH0.tar.gz) = 77280019dfcc7acd936aa73180460923bb4f8d8aa38f023043bbfa2fdca2e26a
+SIZE (gonzoua-scarab-v0.1.2_GH0.tar.gz) = 13746

Added: head/sysutils/py-scarab/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-scarab/files/pkg-message.in	Thu Jan 24 20:47:39 2019	(r491117)
@@ -0,0 +1,7 @@
+Before you can manipulate PRs with this program in FreeBSD Bugzilla
+you have to create an API key and copy it in your config file.
+
+Login -> Preferences -> API keys -> Generate a new API key
+
+The config file is probed from your home directory as ".scarabrc".
+A sample scarabrc config file is located under %%EXAMPLESDIR%%.

Added: head/sysutils/py-scarab/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-scarab/pkg-descr	Thu Jan 24 20:47:39 2019	(r491117)
@@ -0,0 +1,5 @@
+scarab is a CLI tool to automate some of the Bugzilla-related workflows
+in the FreeBSD project. Common commands are fetching, attaching
+and creating PR's from the command line.
+
+WWW: https://github.com/gonzoua/scarab



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901242047.x0OKldl4057803>