From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35FA713835C for ; Mon, 12 Apr 2021 09:30:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 76AA1E0844; Mon, 12 Apr 2021 09:30:19 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 508F7E0844 for ; Mon, 12 Apr 2021 09:30:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 49E0D33DF47 for ; Mon, 12 Apr 2021 09:30:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A2A0664C for ; Mon, 12 Apr 2021 09:30:15 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1618214198.480ef4817fee3b076f93f11de6ab9a232e78ee07.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-mathematics/chaco/files/, sci-mathematics/chaco/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-mathematics/chaco/Manifest sci-mathematics/chaco/chaco-2.2.ebuild sci-mathematics/chaco/files/makefile.patch sci-mathematics/chaco/metadata.xml X-VCS-Directories: sci-mathematics/chaco/files/ sci-mathematics/chaco/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 480ef4817fee3b076f93f11de6ab9a232e78ee07 X-VCS-Branch: master Date: Mon, 12 Apr 2021 09:30:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f712bfe7-41ae-43b6-9e8b-51e9f5a631a2 X-Archives-Hash: c15d21bc0b73045ad3927c4c28343cd3 commit: 480ef4817fee3b076f93f11de6ab9a232e78ee07 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Apr 12 07:56:38 2021 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Mon Apr 12 07:56:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=480ef481 sci-mathematics/chaco: it's not a libraru Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> sci-mathematics/chaco/Manifest | 1 + sci-mathematics/chaco/chaco-2.2.ebuild | 22 ++++++++++++++++++++++ sci-mathematics/chaco/files/makefile.patch | 26 ++++++++++++++++++++++++++ sci-mathematics/chaco/metadata.xml | 11 +++++++++++ 4 files changed, 60 insertions(+) diff --git a/sci-mathematics/chaco/Manifest b/sci-mathematics/chaco/Manifest new file mode 100644 index 000000000..d5c31da96 --- /dev/null +++ b/sci-mathematics/chaco/Manifest @@ -0,0 +1 @@ +DIST Chaco-2.2.tar.gz 854988 BLAKE2B ffa5e0363876e1a6e401056d2e0d8f7064bf86fd7590403a0440e37a6a83c4cbb2b5b9ab3cfc54f313741af3f3b539b301b26ad3f293a0056eace7e23d6d69de SHA512 9b2b58535df8a7c368a9670cdf85d01049e43abbc6ab726dfc88154a94678e1cfe4def40fc4c7162e738cc55f372dab6ce93a0d2f98f09c45a876d246901439e diff --git a/sci-mathematics/chaco/chaco-2.2.ebuild b/sci-mathematics/chaco/chaco-2.2.ebuild new file mode 100644 index 000000000..745dd01c6 --- /dev/null +++ b/sci-mathematics/chaco/chaco-2.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Software for Partitioning Graphs" +HOMEPAGE="https://www3.cs.stonybrook.edu/~algorith/implement/chaco/implement.shtml" +SRC_URI="https://www3.cs.stonybrook.edu/~algorith/implement/${PN}/distrib/Chaco-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +PATCHES=( "${FILESDIR}/makefile.patch" ) +S="${WORKDIR}/Chaco-${PV}" + +src_install() { + pushd code || die + emake + popd || die + dobin "exec/chaco" + dodoc -r doc/. +} diff --git a/sci-mathematics/chaco/files/makefile.patch b/sci-mathematics/chaco/files/makefile.patch new file mode 100644 index 000000000..32ab4b84c --- /dev/null +++ b/sci-mathematics/chaco/files/makefile.patch @@ -0,0 +1,26 @@ +--- a/code/Makefile 2021-04-12 01:42:10.792372462 +0200 ++++ b/code/Makefile 2021-04-12 01:46:20.332391138 +0200 +@@ -1,8 +1,6 @@ + DEST_DIR = ../exec + DEST= ${DEST_DIR}/chaco +-CC = gcc + IFLAG = -Imain +-CFLAGS = -O2 + OFLAGS = -O2 + + FILES.c= main/user_params.c main/interface.c main/main.c \ +@@ -91,7 +89,7 @@ + + + ${DEST}: ${FILES.o} Makefile +- ${CC} ${OFLAGS} ${FILES.o} -lm -o ${DEST} ++ ${CC} ${CFLAGS} -fPIE ${LDFLAGS} ${FILES.o} -lm -o ${DEST} + + lint: + lint ${IFLAG} ${FILES.c} -lm +@@ -103,4 +101,4 @@ + rm -f */*.o ${DEST_DIR}/core + + .c.o: +- ${CC} -c ${IFLAG} ${CFLAGS} -o $*.o $*.c ++ ${CC} -c ${IFLAG} ${CFLAGS} -fPIC -o $*.o $*.c diff --git a/sci-mathematics/chaco/metadata.xml b/sci-mathematics/chaco/metadata.xml new file mode 100644 index 000000000..ec0716a79 --- /dev/null +++ b/sci-mathematics/chaco/metadata.xml @@ -0,0 +1,11 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +Chaco contains a wide variety of algorithms and options, many of which were invented by the authors. Some of the algorithms exploit the geometry of the mesh, others its local connectivity or its global structure as captured by eigenvectors of a related matrix. These methods can be mixed and matched in several ways, and combinations often prove to be more effective than any single technique in isolation. All these algorithms are accessed via a simple user interface, or a call from other software. Innovations in Chaco include # Development of multilevel graph partitioning. This widely imitated approach has become the premiere algorithm combining very high quality with short calculation times. # Extension of spectral partitioning to enable the use of 2 or 3 Laplacian eigenvectors to quadrisect of octasect a graph. # Highly efficient and robust eigensolvers for use with spectral graph algorithms. # Generalization of the Kernighan-Lin/Fiduccia-Mattheyses algorithm to handle weighted grap hs, arbitrary number of sets and lazy initiation. # Development of skewed partitioning to improve the mapping of a graph onto a target parallel architecture. # Various post-processing options to improve partitions in a number of ways. + +