From nobody Sun Jun 26 07:20:33 2022 X-Original-To: dev-commits-ports-main@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 BBA44865A63; Sun, 26 Jun 2022 07:20:35 +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 4LW2M61RC0z4X4L; Sun, 26 Jun 2022 07:20:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656228034; 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=xa6KBdeJgswUUKeXPBJyGOpTAVE8fIfRYVQEL1c/ndE=; b=Q6zFGwIR0VRC0bR9AGFdTtZDF8ObxPTWCzM+S5kin26RpP8K2gPQKC14s85vQJNpWS4Ana DNco1Jm8Ax5D9AwK1OnFtiHw9kfrbbrweDtt3vFTVlZynv3+SvlBeAdLNiCxdhRnYnTMaB AdTW3wseh1SeBfPyVOOph2xPoqCYJmrPiOqGs6oAoNF3gpeZTpNycdXGfi1+LuWghvliqx a6ac4ITUbWTcZpgDS6yqEMfV/s+6FXhKOHGIfoVUgvUUu8mIhmuiD9NCFqcbS2vxpWAMCd Z0tRm3rZkaeZk2sYQpqkkEtV0RETw7C/bV+6URH1EmFcv0YVuLsCajidpqGcOg== 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 E89341384E; Sun, 26 Jun 2022 07:20:33 +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 25Q7KXJB093904; Sun, 26 Jun 2022 07:20:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25Q7KXmi093903; Sun, 26 Jun 2022 07:20:33 GMT (envelope-from git) Date: Sun, 26 Jun 2022 07:20:33 GMT Message-Id: <202206260720.25Q7KXmi093903@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: 3c16f8786105 - main - math/py-kahip: New port: Karlsruhe high quality graph partitioning List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 3c16f87861059ca3cba2b404a1f70abf10f22a78 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656228034; 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=xa6KBdeJgswUUKeXPBJyGOpTAVE8fIfRYVQEL1c/ndE=; b=tGet7CXT7Yl7Nf2tzdDP9T6LQnSFRl+Xl+nNPztQpMv2StrVodKImDWkZqreKr7lp3o+wK n0rGDtMxbb3eWXKsMc5xeO/bSAqJ8nTeJ/YIK76ZO6Z5ET+1/aoeMtpf40fJ3pjAIHMkln VHsGfyE6uv2p+rKh4Qw54AmW3IYl26o8y2M/GBMb2NE8fsWG+zwKDLoaIadrCJ5MTzb5Z9 7G9KTPH5mS/IZz6p7mno1qTnPtl/qynalkuiowfkKEsxawACAQLEvH+mrL2ipk+fKIQKOF Kn8t51vcWQ/H2ARfu4sMdXTsTKC0I0MQtzAFjWf16wYsd/kv9pr712DVjL5XAQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656228034; a=rsa-sha256; cv=none; b=rOVFpoIMKa5ddyGNdobE/kXICdH0ZZKBaqoWBOikqTnVURsPk7tfLa5nWyOerBHygxa3E/ /1Nz5FUMy5wJz0XVi4w3Lx8PBKkku/Z4nzz1hGt9IgmHjqOggRLO+1mYqx2ysUx06KQ3xb enUh3QjI7TbrTHY+gV4It+V/7hJFVTeAfdylB4iIsZTh3XJ0jOiSnFlFi5zePFs+l3cw0f tKiqCtXkCEpG1mSZ3vGN9tewNfLOZ9Z9Ejoapy0oq7y3MewonN3KS3jmUILbyrkaH9KvgH vyaGGvtGbHC8vOl1LUd8jhdu7hFiFK6xKxqEM1Taw/7kZDAp+mnY/Z/dcbk5Rg== 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=3c16f87861059ca3cba2b404a1f70abf10f22a78 commit 3c16f87861059ca3cba2b404a1f70abf10f22a78 Author: Yuri Victorovich AuthorDate: 2022-06-26 07:19:31 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-26 07:20:19 +0000 math/py-kahip: New port: Karlsruhe high quality graph partitioning --- math/Makefile | 1 + math/py-kahip/Makefile | 40 ++++++++++++++++++++++++++++++++++++++ math/py-kahip/distinfo | 3 +++ math/py-kahip/files/CMakeLists.txt | 7 +++++++ math/py-kahip/pkg-descr | 12 ++++++++++++ 5 files changed, 63 insertions(+) diff --git a/math/Makefile b/math/Makefile index 36314ef12293..82f1307f96c7 100644 --- a/math/Makefile +++ b/math/Makefile @@ -876,6 +876,7 @@ SUBDIR += py-iohexperimenter SUBDIR += py-ipyopt SUBDIR += py-jax + SUBDIR += py-kahip SUBDIR += py-keras SUBDIR += py-keras-applications SUBDIR += py-keras-preprocessing diff --git a/math/py-kahip/Makefile b/math/py-kahip/Makefile new file mode 100644 index 000000000000..235ebdb2a37c --- /dev/null +++ b/math/py-kahip/Makefile @@ -0,0 +1,40 @@ +PORTNAME= kahip +DISTVERSIONPREFIX= v +DISTVERSION= 3.14-19 +DISTVERSIONSUFFIX= -g5956007 +CATEGORIES= math +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Karlsruhe high quality graph partitioning + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= pybind11>0:devel/pybind11 +LIB_DEPENDS= libkahip.so:math/kahip + +USES= cmake localbase:ldflags python +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= KaHIP +GH_PROJECT= KaHIP + +CMAKE_SOURCE_PATH= ${FILESDIR}/CMakeLists.txt +CMAKE_ARGS= -DFREEBSD_WRKSRC=${WRKSRC} + +CXXFLAGS+= -I${WRKSRC} + +PLIST_FILES= ${PYTHON_SITELIBDIR}/${PORTNAME}${PYTHON_EXT_SUFFIX}.so + +do-install: + @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} + ${INSTALL_LIB} ${BUILD_WRKSRC}/${PORTNAME}${PYTHON_EXT_SUFFIX}.so ${STAGEDIR}${PYTHON_SITELIBDIR} + +do-test: + @cd ${WRKSRC} && \ + ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${WRKSRC}/misc/pymodule/callkahipfrompython.py && \ + ${ECHO} "Tests succeeded." + +.include diff --git a/math/py-kahip/distinfo b/math/py-kahip/distinfo new file mode 100644 index 000000000000..b8fcf57265a2 --- /dev/null +++ b/math/py-kahip/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656203807 +SHA256 (KaHIP-KaHIP-v3.14-19-g5956007_GH0.tar.gz) = c890983b9fd4ba2464526981c3677a63de9ea8d4e6c518e3140a9ee7a45cf99a +SIZE (KaHIP-KaHIP-v3.14-19-g5956007_GH0.tar.gz) = 3061437 diff --git a/math/py-kahip/files/CMakeLists.txt b/math/py-kahip/files/CMakeLists.txt new file mode 100644 index 000000000000..f95d97c2fd53 --- /dev/null +++ b/math/py-kahip/files/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.23.0) +project(kahip LANGUAGES CXX) + +find_package(pybind11 REQUIRED) +pybind11_add_module(kahip_python_binding ${FREEBSD_WRKSRC}/misc/pymodule/kahip.cpp) +target_link_libraries(kahip_python_binding PUBLIC kahip) +set_target_properties(kahip_python_binding PROPERTIES OUTPUT_NAME "kahip") diff --git a/math/py-kahip/pkg-descr b/math/py-kahip/pkg-descr new file mode 100644 index 000000000000..d7c4719d6170 --- /dev/null +++ b/math/py-kahip/pkg-descr @@ -0,0 +1,12 @@ +KaHIP - Karlsruhe High Quality Partitioning - is a family of graph +partitioning programs. It includes KaFFPa (Karlsruhe Fast Flow +Partitioner), which is a multilevel graph partitioning algorithm, in +its variants Strong, Eco and Fast, KaFFPaE (KaFFPaEvolutionary) which +is a parallel evolutionary algorithm that uses KaFFPa to provide +combine and mutation operations, as well as KaBaPE which extends the +evolutionary algorithm. Moreover, specialized techniques are included +to partition road networks (Buffoon), to output a vertex separator +from a given partition or techniques geared towards efficient +partitioning of social networks. + +WWW: https://kahip.github.io/