summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2024-05-18 11:46:40 +0200
committerPacho Ramos <pacho@gentoo.org>2024-05-18 12:06:40 +0200
commit09dc76ef952cc43cc0086638d8f9fa1b5c7eb355 (patch)
tree022f8bdc6acdc0634f387b1ddaf5803461814b36 /sci-libs/libcifpp
parentmedia-sound/ardour: dropped obsolete 8.4 (diff)
downloadgentoo-09dc76ef952cc43cc0086638d8f9fa1b5c7eb355.tar.gz
gentoo-09dc76ef952cc43cc0086638d8f9fa1b5c7eb355.tar.bz2
gentoo-09dc76ef952cc43cc0086638d8f9fa1b5c7eb355.zip
sci-libs/libcifpp: add 7.0.4
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sci-libs/libcifpp')
-rw-r--r--sci-libs/libcifpp/Manifest2
-rw-r--r--sci-libs/libcifpp/libcifpp-7.0.4.ebuild45
2 files changed, 47 insertions, 0 deletions
diff --git a/sci-libs/libcifpp/Manifest b/sci-libs/libcifpp/Manifest
index 4fcf5d210edf..840ee8c08659 100644
--- a/sci-libs/libcifpp/Manifest
+++ b/sci-libs/libcifpp/Manifest
@@ -4,3 +4,5 @@ DIST libcifpp-5.1.2-components.cif.xz 59092332 BLAKE2B 3672ca8e9553be80822ca7d73
DIST libcifpp-5.1.2.tar.gz 2244795 BLAKE2B 7bec9f901c112fabf86c9ce691229f42dcf854be4c99bdf09dbe7dd0d0a3a7e92831cb2b72afa4debc1ce8b1a3a33e27cceda048adca6805802189e0ad50349c SHA512 3adb801ed52b250f6779228288a2c2926c1c7d8d0eff0bb6ed610b4258de8537253d2ce95208e8682b2eb8d0c09ecb53b6269c24bdce907360d9478c6c8c3c1b
DIST libcifpp-5.2.2-components.cif.xz 60754468 BLAKE2B 899120c2d6749fb2da9be94de8665f4e961d08c101b33bce98b84bf126b32d43bb79c88da98fb926047522a6f138512dcc59df698f57a83b716e039d422308d4 SHA512 d861b83f8b363f2e64ccf073bae768d73f9f57ec2674bf30d43b05fc9a32d235e26c888faaa02b6276e0734632b237b6dd00d8b966dd63b4fcf6562ebcf41cfc
DIST libcifpp-5.2.2.tar.gz 2277238 BLAKE2B a31af09bed7f1dbd6f610e104f0a8439742c863bc58b3680c058cb570a1f93fbcd6d23f29a372aafbb7166a4d86b2590cd24e092b1cc7af25bd09bbe437c93eb SHA512 2bbe9b13fd0ce8f686b5fa9e1675a41cc37c954cd9d80326fcc7c5f4c767be95dd71f6ddc3e841b6102214cd66205303515fa0750683e539f48b038a32a51af9
+DIST libcifpp-7.0.4-components.cif.xz 62591092 BLAKE2B f5fc502cfb0d5c33c2218a02ccbf652c87f0d9d0ac93a8f2eb7c5a7e1e301555cb641f3df815fefbb998ca00f0b04f4fd39de2023dd69ca88de29a814208cd70 SHA512 6f85b84b9e4c63b134dedbc41a6a3ba4a7bec6a66b0ce1fcc9248c06b3e5600b8fe31c5ed72722cb40cb431227f17bb9f485e7b471c84efa313b04adfb161ec2
+DIST libcifpp-7.0.4.tar.gz 2598838 BLAKE2B db6e4b1573d243c511f15ea1fc28867c8a57eb1050c24a59c12a4608b59890ee567569ca4035daead7e74d206a77bb280c56d54ef8b050fe297ccd75cf48ffeb SHA512 6957b3e3ace855c22923391cfd05db40399b6b84fb194ccceaf7b460493ee8576573056296eb06fecf9e6e83c590776fdd5a09f06bb316de61f44468d2a53392
diff --git a/sci-libs/libcifpp/libcifpp-7.0.4.ebuild b/sci-libs/libcifpp/libcifpp-7.0.4.ebuild
new file mode 100644
index 000000000000..8c10d84a2291
--- /dev/null
+++ b/sci-libs/libcifpp/libcifpp-7.0.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit cmake
+
+DESCRIPTION="Code to work with mmCIF and PDB files"
+HOMEPAGE="https://github.com/PDB-REDO/libcifpp"
+# Update components file on every bump
+# https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
+SRC_URI="
+ https://github.com/PDB-REDO/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~pacho/${PN}/${P}-components.cif.xz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ >=dev-cpp/eigen-3.4.0:3
+ dev-libs/boost:=
+ sys-libs/zlib
+ test? ( dev-cpp/catch:0 )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # https://github.com/PDB-REDO/libcifpp/issues/59
+ sed -i -e '/unit-3d/d' test/CMakeLists.txt || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ cp "${WORKDIR}"/${P}-components.cif rsrc/components.cif || die
+
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DCIFPP_INSTALL_UPDATE_SCRIPT=OFF
+ -DBUILD_TESTING="$(usex test)"
+ )
+ cmake_src_configure
+}