From owner-svn-ports-head@freebsd.org Mon Jan 15 23:16:11 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 111B8E7E0E9; Mon, 15 Jan 2018 23:16:11 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0F9C74FFF; Mon, 15 Jan 2018 23:16:10 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3D25617D23; Mon, 15 Jan 2018 23:16:10 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0FNG9iY019039; Mon, 15 Jan 2018 23:16:09 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0FNG9W8019034; Mon, 15 Jan 2018 23:16:09 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201801152316.w0FNG9W8019034@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 15 Jan 2018 23:16:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459136 - in head/math: . py-pyasp py-pyasp/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/math: . py-pyasp py-pyasp/files X-SVN-Commit-Revision: 459136 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 23:16:11 -0000 Author: yuri Date: Mon Jan 15 23:16:09 2018 New Revision: 459136 URL: https://svnweb.freebsd.org/changeset/ports/459136 Log: New port: math/py-pyasp: Convenience wrapper for the ASP tools gringo and clasp Submitted by: myself Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13898 Added: head/math/py-pyasp/ head/math/py-pyasp/Makefile (contents, props changed) head/math/py-pyasp/distinfo (contents, props changed) head/math/py-pyasp/files/ head/math/py-pyasp/files/patch-setup.py (contents, props changed) head/math/py-pyasp/pkg-descr (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Mon Jan 15 23:11:00 2018 (r459135) +++ head/math/Makefile Mon Jan 15 23:16:09 2018 (r459136) @@ -660,6 +660,7 @@ SUBDIR += py-patsy SUBDIR += py-plastex SUBDIR += py-probstat + SUBDIR += py-pyasp SUBDIR += py-pybloom SUBDIR += py-pycosat SUBDIR += py-pyhull Added: head/math/py-pyasp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-pyasp/Makefile Mon Jan 15 23:16:09 2018 (r459136) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= pyasp +DISTVERSION= 1.4.3 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Convenience wrapper for the ASP tools gringo and clasp + +LICENSE= GPLv3 + +RUN_DEPENDS= clasp:math/clasp \ + gringo:math/gringo + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +post-patch: + @${REINPLACE_CMD} -e " \ + s|'bin/'|'${PREFIX}/bin/'| ; \ + s|'gringo4'|'gringo'| ; \ + s|access_packaged_file(REL_DIR_BIN + bin_name)|REL_DIR_BIN + bin_name|" \ + ${WRKSRC}/pyasp/constant.py + +.include Added: head/math/py-pyasp/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-pyasp/distinfo Mon Jan 15 23:16:09 2018 (r459136) @@ -0,0 +1,3 @@ +TIMESTAMP = 1515837453 +SHA256 (pyasp-1.4.3.tar.gz) = 7ffb2aaa6db33073f488bc946ddbf542d92e0c3f5877b292163a9c4f9c3c9e73 +SIZE (pyasp-1.4.3.tar.gz) = 50937 Added: head/math/py-pyasp/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-pyasp/files/patch-setup.py Mon Jan 15 23:16:09 2018 (r459136) @@ -0,0 +1,20 @@ +--- setup.py.orig 2017-03-28 11:25:30 UTC ++++ setup.py +@@ -46,7 +46,7 @@ BINARIES_NAME = { + # binary remote name: binary local name + 'clasp-3.1.3': 'clasp', + 'gringo-3.0.5': 'gringo3', +- 'gringo-4.5.3': 'gringo4', ++ 'gringo-4.5.3': 'gringo', + } + + BASE_URL_PLATFORM_SPECIFIC_SUBPATHS = { +@@ -142,7 +142,7 @@ class install(_install): + def run(self): + """Call superclass run method, then downloads the binaries""" + _install.run(self) +- self.execute(post_install, args=[], msg=post_install.__doc__) ++ #self.execute(post_install, args=[], msg=post_install.__doc__) + + + setup( Added: head/math/py-pyasp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-pyasp/pkg-descr Mon Jan 15 23:16:09 2018 (r459136) @@ -0,0 +1,5 @@ +PyASP is a Python convenience wrapper allowing +to solve boolean satisfiability problems through +invocation of external commands 'clasp' and 'gringo'. + +WWW: http://pypi.python.org/pypi/pyasp/