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
This commit is contained in:
Oleksandr Tymoshenko 2019-01-24 20:47:39 +00:00
parent 9dfc0dfc0b
commit c579940800
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=491117
5 changed files with 63 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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%%.

View File

@ -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