From nobody Wed Sep 14 04:42:14 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MS73V2GsNz4cCpG; Wed, 14 Sep 2022 04:42:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MS73V1syrz49lS; Wed, 14 Sep 2022 04:42:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663130534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UJKBjjBYdYeNOUHVEeOZXrzGWrCye1OF9mjxl8vSXUQ=; b=QU0JSRYsGJHwnuerndAF4wiBg99N/3oqstMWfx7i0l2/n5VbecOGTuhkDVFw2qioj2/wT1 2r55MvTu5fRiXEV8FR+267YP5ABv6MOB1/OKFA0EPGfd/PI806sc233MJn39Jus/oBhlGa Dz2GZbB1kOyJI2TM95zZPsI0a1I9S0OLeZfWipRvzJeHtrjtkqZsskZsnhUxg8U2F5mhL1 jUsVuWEoC79UW5jhI1c5zxWCnp+7851+n8fR4IOLeU6XHi2zwlI7rTvNR/jHDgFC9Hr2y2 Tvp05igBjYRMyHSWiiGKejvWEveshzeTHpM0H397qy/O7sWihVKhzyM+BQD+5A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MS73V0q3gzYtS; Wed, 14 Sep 2022 04:42:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28E4gEao078360; Wed, 14 Sep 2022 04:42:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28E4gEft078359; Wed, 14 Sep 2022 04:42:14 GMT (envelope-from git) Date: Wed, 14 Sep 2022 04:42:14 GMT Message-Id: <202209140442.28E4gEft078359@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 53b98b0ec570 - main - math/py-clingo: New port: Grounder and solver for logic programs List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53b98b0ec570c3edfd845aa1a2018acd2d2e49ee Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663130534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UJKBjjBYdYeNOUHVEeOZXrzGWrCye1OF9mjxl8vSXUQ=; b=tJaaje1xkSf9gra+EbesPywHWDIHpp1aYoLRoibPcnqnGg149cd4geQo63NIiAbzc6jO8m eQxWjfVOwON7KtAm2oICG3NwLTj3udIyfV186ZFYiTsX/U8Isky17MToTVs3BixHy3FaWA Qsw+XXN2z+vVf1vJRoHAd101jC3rzqBBIlfbMVJ7ZqmbjHyIp3jacpdj21HeVKQEGC+5xq fUerl+4Iu9z2bvuNOEVg42whCqYQ912mgcCd/kw13sVWb/dXqe2rsGyc8F3k2Mjl9zH8hw iuELBQpRDfedDpbHC5BQTkAQv4mAarbNAQF6LT876XhJXCcQ7hTb2yEB4ZGxfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663130534; a=rsa-sha256; cv=none; b=J3MultH0mH5x7R8Dhg7nGSX0//XfxYjbkPMYWSPZNNT7rrt8Z3gFkDM0vuIZKQht2OGVh9 XII7MxecTqeGI0Q7Eb0IOM9Ievb5WjODCp8zIzz2tSpwRKrsyY3P0Of1blECUvfIwNZEta Njt6CMwt+HjGJ8uSaQWMISDe4JPnmTrvTXOslDSA1/5V/gM5dcgdkD18s5fy3QUWdXhp5h XaicY/CdJeiSt1Sf80iwhq2BRe4GRB24O7F+ZgxYxQ5XZ2F6Txhsoi/XZFX1TUJ6P38Kts d0aCoQ6L6uNV+n0KrGa9XktkPyAa58dIYqPuY8FhyCvtIk2JG5dzXCAr02eWMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=53b98b0ec570c3edfd845aa1a2018acd2d2e49ee commit 53b98b0ec570c3edfd845aa1a2018acd2d2e49ee Author: Yuri Victorovich AuthorDate: 2022-09-14 03:30:34 +0000 Commit: Yuri Victorovich CommitDate: 2022-09-14 04:41:14 +0000 math/py-clingo: New port: Grounder and solver for logic programs --- math/Makefile | 1 + math/py-clingo/Makefile | 27 +++++++++++++++++++++++++++ math/py-clingo/distinfo | 3 +++ math/py-clingo/pkg-descr | 3 +++ 4 files changed, 34 insertions(+) diff --git a/math/Makefile b/math/Makefile index 680ec066b5c8..35492690f529 100644 --- a/math/Makefile +++ b/math/Makefile @@ -848,6 +848,7 @@ SUBDIR += py-brial SUBDIR += py-chaospy SUBDIR += py-claripy + SUBDIR += py-clingo SUBDIR += py-cma SUBDIR += py-cmaes SUBDIR += py-cmyt diff --git a/math/py-clingo/Makefile b/math/py-clingo/Makefile new file mode 100644 index 000000000000..7cbc09ee893c --- /dev/null +++ b/math/py-clingo/Makefile @@ -0,0 +1,27 @@ +PORTNAME= clingo +PORTVERSION= 5.6.0 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Grounder and solver for logic programs +WWW= https://potassco.org/clingo/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +BUILD_DEPENDS= cmake:devel/cmake \ + ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} + +USES= compiler:c++14-lang python:3.6+ +USE_PYTHON= distutils autoplist unittest # some tests break, see https://github.com/potassco/clingo/issues/390 + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/libpyclingo/clingo/tests + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/clingo/_clingo.cpython-${PYTHON_SUFFIX}.so + +.include diff --git a/math/py-clingo/distinfo b/math/py-clingo/distinfo new file mode 100644 index 000000000000..edb541b0a2a4 --- /dev/null +++ b/math/py-clingo/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1663123343 +SHA256 (clingo-5.6.0.tar.gz) = 89cb294f0d6e1a00ad97616dd79ede9b261c43edadd43efd1127ddd370ecbcde +SIZE (clingo-5.6.0.tar.gz) = 1805591 diff --git a/math/py-clingo/pkg-descr b/math/py-clingo/pkg-descr new file mode 100644 index 000000000000..6184ff12ad52 --- /dev/null +++ b/math/py-clingo/pkg-descr @@ -0,0 +1,3 @@ +Answer Set Programming (ASP) offers a simple and powerful modeling language to +solve combinatorial problems. With these tools users can concentrate on an +actual problem, rather than a smart way of implementing it.