From nobody Sun Jun 23 12:59:58 2024 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 4W6WQk4CCFz5PTJF; Sun, 23 Jun 2024 12:59:58 +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 4W6WQk2B4wz4hbl; Sun, 23 Jun 2024 12:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719147598; 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=C4epwNHOR09fjEMVh+O5d2kqBDdQh/qnrmXZFDQdmI8=; b=FynZJ+kNY9d+wOMBvNkEvOMp+6kLBABwgN5Cqf4iLrTnY198CVlU3YCLxnKm483HdAFzo9 wNY5Nv5BoEq25T6xRsJiiPHoJD/5ZAYdIZxcX06doKgaxMAeQ5Br1M67NgS2dNyU4cQtps 7sviyKyidU3B+pYDDBfcyg8rtM8aORXc/avafwufTTOHPtTHkc+esHbwCe00IfwEGhBXrK teruLiWLsRI5/r7OVL5MI4+cAZaCx5F/JcL8KbcibFHHCQBBOHvh9HKNHCaE9aSB0drSTN 3sArwUX7D8uxrv6B40J9/7EJ6qEu5ksZFRqE3iQz+VFm5tZl81OInaiHpb25Ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719147598; a=rsa-sha256; cv=none; b=ImdeugpPCGf0lmBCmQ0JTdTL6qvZ54cYbLp6+ZPNLPV1umdPX7h168x0fxMoIzYswkDV6f W2vYteWb8PgOQY48aBMOjG/7aiNhm4+VSfoVgjc34MU/Qobm4mbZnMkWLDZeh0dYXovtZ7 SHgq5AfIYNYMfw0og0ze8BtiwHG34ts5Y7bLwtM0G6qas4ZTruR9IxJRydmL/bjTfI/pp3 TI85Ma7CN5ZW4tGIXvmkCh+MFtwVioz07dMN4MN3w+xcy9LfOb4eMQ5TlXJ6sjuv1oAwb9 hSvANsgEZ7DSqj65aWMXhQtF5HIkO953H09hc/E6P/Ke3srp3vwXRIsCJb4qnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719147598; 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=C4epwNHOR09fjEMVh+O5d2kqBDdQh/qnrmXZFDQdmI8=; b=E/1wZk8PqofDeVvlmeI6kkTz9SdqP1HVqBjbv+f14Pny0qgPC5Nt7bAuqSIhPBRQlS9uJ3 yfzFB7w5///sysSvhMoMovHkVH3mvuOhIOw4ENjsToMcb5Dlwo4nkcXxPeKTTj0wMmYqBx z7VwX7D0Yb3E3/C9db0DXHuS1EcA51onxinuvETE+iDKCk/4bJO8vPX8/ukp8BRs0krmNR Q8LmNRUzdz+6CYAwtVXXI+d3323wLohu5vrF9QxFkHOUt2tXA3w0jVCwL7NM77R2Qznqwl Rd+A2HIjpVhrWTaoXatiOtJ00t9yE1WyxKXcjUdsZoqG76crMdfQtbNUJcNUzQ== 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 4W6WQk1mwMzbXM; Sun, 23 Jun 2024 12:59:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45NCxwjq069731; Sun, 23 Jun 2024 12:59:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45NCxwfB069728; Sun, 23 Jun 2024 12:59:58 GMT (envelope-from git) Date: Sun, 23 Jun 2024 12:59:58 GMT Message-Id: <202406231259.45NCxwfB069728@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 298551c2dc60 - main - science/linearelasticity: new port, Elas, a solver for linear elasticity 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 298551c2dc60383093f6687648519222b7127a5a Auto-Submitted: auto-generated The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=298551c2dc60383093f6687648519222b7127a5a commit 298551c2dc60383093f6687648519222b7127a5a Author: Thierry Thomas AuthorDate: 2024-06-22 21:07:11 +0000 Commit: Thierry Thomas CommitDate: 2024-06-23 12:58:40 +0000 science/linearelasticity: new port, Elas, a solver for linear elasticity Required by Mmg. --- science/Makefile | 1 + science/linearelasticity/Makefile | 37 +++++++++++++++++++ science/linearelasticity/distinfo | 3 ++ .../linearelasticity/files/patch-CMakeLists.txt | 42 ++++++++++++++++++++++ science/linearelasticity/pkg-descr | 6 ++++ science/linearelasticity/pkg-plist | 6 ++++ 6 files changed, 95 insertions(+) diff --git a/science/Makefile b/science/Makefile index ddbfcac05382..50cd1d2e219d 100644 --- a/science/Makefile +++ b/science/Makefile @@ -166,6 +166,7 @@ SUBDIR += libvdwxc SUBDIR += libxc SUBDIR += liggghts + SUBDIR += linearelasticity SUBDIR += linux-zotero SUBDIR += luscus SUBDIR += m-aneos diff --git a/science/linearelasticity/Makefile b/science/linearelasticity/Makefile new file mode 100644 index 000000000000..127a2a37c42b --- /dev/null +++ b/science/linearelasticity/Makefile @@ -0,0 +1,37 @@ +PORTNAME= LinearElasticity +PORTVERSION= 1.0.0 +DISTVERSIONPREFIX= v +CATEGORIES= science + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Elas, a solver for linear elasticity +WWW= https://github.com/ISCDtoolbox/LinearElasticity + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +LIB_DEPENDS= libCommons.so:devel/iscd-commons + +USES= cmake:testing compiler:c++17-lang + +USE_GITHUB= yes +GH_ACCOUNT= ISCDtoolbox + +CFLAGS+= -I${LOCALBASE}/include/ISCD +USE_LDCONFIG= yes + +OPTIONS_DEFINE= DOCS EXAMPLES + +PORTDOCS= README.md +PORTEXAMPLES= * + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +do-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/demos && \ + ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}) + +.include diff --git a/science/linearelasticity/distinfo b/science/linearelasticity/distinfo new file mode 100644 index 000000000000..67572e5f07ab --- /dev/null +++ b/science/linearelasticity/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1719072290 +SHA256 (ISCDtoolbox-LinearElasticity-v1.0.0_GH0.tar.gz) = e25d5cd448f4eb8d15461cea4203e854c87a0504c8343ff01c8f8f55b33ee2b7 +SIZE (ISCDtoolbox-LinearElasticity-v1.0.0_GH0.tar.gz) = 855724 diff --git a/science/linearelasticity/files/patch-CMakeLists.txt b/science/linearelasticity/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..f78bd758f17f --- /dev/null +++ b/science/linearelasticity/files/patch-CMakeLists.txt @@ -0,0 +1,42 @@ +--- CMakeLists.txt.orig 2021-05-06 07:50:46 UTC ++++ CMakeLists.txt +@@ -1,6 +1,4 @@ cmake_minimum_required(VERSION 2.8) + cmake_minimum_required(VERSION 2.8) +-set(CMAKE_BUILD_TYPE "Release") +-SET(CMAKE_CXX_FLAGS "-w -g -O3") + set(CMAKE_MACOSX_RPATH 1) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + +@@ -11,24 +9,20 @@ ADD_LIBRARY( Elas SHARED ${source_files}) + file( GLOB_RECURSE source_files sources/*) + file( GLOB_RECURSE header_files sources/*.h) + ADD_LIBRARY( Elas SHARED ${source_files}) +-find_library( Commons NAMES Commons HINTS "$ENV{HOME}/lib") +-INCLUDE_DIRECTORIES( "$ENV{HOME}/include") +-LINK_DIRECTORIES( "$ENV{HOME}/lib") ++set_target_properties( Elas PROPERTIES VERSION 0.0.0 SOVERSION 0) ++find_library( Commons NAMES Commons HINTS lib) ++INCLUDE_DIRECTORIES( include/ISCD) ++LINK_DIRECTORIES( ${Elas_BINARY_DIR}) + target_link_libraries( Elas ${Commons}) + INSTALL( + TARGETS Elas +- LIBRARY DESTINATION "$ENV{HOME}/lib" +- RUNTIME DESTINATION "$ENV{HOME}/lib") +-INSTALL( FILES ${header_files} DESTINATION "$ENV{HOME}/include") ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ RUNTIME DESTINATION lib${LIB_SUFFIX}) ++INSTALL( FILES ${header_files} DESTINATION include) + + #Executable + project(main) + add_executable( elastic sources/elastic.c) + target_link_libraries( elastic ${Commons} Elas) +-INSTALL( TARGETS elastic RUNTIME DESTINATION "$ENV{HOME}/bin") +- +- +- +- +- ++INSTALL( TARGETS elastic RUNTIME DESTINATION bin) + diff --git a/science/linearelasticity/pkg-descr b/science/linearelasticity/pkg-descr new file mode 100644 index 000000000000..bbb07da4c6c7 --- /dev/null +++ b/science/linearelasticity/pkg-descr @@ -0,0 +1,6 @@ +Elas, alias Elastic, is a simple yet efficient finite element solver for linear +elasticity problems in two and three dimensions. + +A full description of all parameters and options that can be specified in the +command line or in a parameter file [file.elas] can be found in the project +wiki, see . diff --git a/science/linearelasticity/pkg-plist b/science/linearelasticity/pkg-plist new file mode 100644 index 000000000000..4a18ee1968af --- /dev/null +++ b/science/linearelasticity/pkg-plist @@ -0,0 +1,6 @@ +bin/elastic +include/elastic.h +include/ls_calls.h +lib/libElas.so +lib/libElas.so.0 +lib/libElas.so.0.0.0