Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -4211,6 +4211,7 @@ SUBDIR += py-cmdtest SUBDIR += py-codecov SUBDIR += py-codegen + SUBDIR += py-codesearch SUBDIR += py-cog SUBDIR += py-collective.monkeypatcher SUBDIR += py-collective.z3cform.datetimewidget Index: devel/py-codesearch/Makefile =================================================================== --- devel/py-codesearch/Makefile +++ devel/py-codesearch/Makefile @@ -0,0 +1,29 @@ +# Created by: Carlos J. Puga Medina +# $FreeBSD$ + +PORTNAME= codesearch +PORTVERSION= 0.1 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}-py + +MAINTAINER= cpm@FreeBSD.org +COMMENT= Python library for accessing Chromium CodeSearch + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist concurrent distutils + +USE_GITHUB= yes +GH_ACCOUNT= chromium +GH_PROJECT= ${DISTNAME} +GH_TAGNAME= ec3ad68 + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v + +.include Index: devel/py-codesearch/distinfo =================================================================== --- devel/py-codesearch/distinfo +++ devel/py-codesearch/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1498484191 +SHA256 (codesearch-py_GH0.tar.gz) = 93c5c3476fafcec52d0bc1f732b31d9ddc700882e5f6755b36da7740f747ef24 +SIZE (codesearch-py_GH0.tar.gz) = 335302 Index: devel/py-codesearch/pkg-descr =================================================================== --- devel/py-codesearch/pkg-descr +++ devel/py-codesearch/pkg-descr @@ -0,0 +1,11 @@ +The codesearch Python library provides an interface for talking to the +Chromium CodeSearch backend. + +The primary entry point into the library is the codesearch class. Various +message classes you are likely to encounter are defined in messages.py + +In addition, the library also includes facilities for maintaining an +ephemeral or persistent cache in order to minimize generated network +traffic. + +WWW: https://github.com/chromium/codesearch-py