* [gentoo-commits] repo/gentoo:master commit in: sci-libs/libcifpp/, sci-libs/libcifpp/files/
@ 2021-09-02 12:01 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2021-09-02 12:01 UTC (permalink / raw
To: gentoo-commits
commit: 02f76ba29e10ddb902ccaeca6528280794f3622e
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 2 06:49:50 2021 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu Sep 2 12:00:36 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02f76ba2
sci-libs/libcifpp: Add libcifpp for latest dssp versions
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
sci-libs/libcifpp/Manifest | 1 +
.../files/libcifpp-1.0.1_p20210810-destdir.patch | 38 +++++++++++++++++
sci-libs/libcifpp/files/libcifpp.conf | 1 +
sci-libs/libcifpp/libcifpp-1.0.1_p20210810.ebuild | 48 ++++++++++++++++++++++
sci-libs/libcifpp/metadata.xml | 7 ++++
5 files changed, 95 insertions(+)
diff --git a/sci-libs/libcifpp/Manifest b/sci-libs/libcifpp/Manifest
new file mode 100644
index 00000000000..3744a9f5c5d
--- /dev/null
+++ b/sci-libs/libcifpp/Manifest
@@ -0,0 +1 @@
+DIST libcifpp-1.0.1_p20210810.tar.gz 1308632 BLAKE2B 5ceacd1adfd75873266384d8f4f7dbd02737d4935c0506c54a925826b6c391950c68ad7174023894d3bf0f62e4d4d3790149f003113947e546bdd35b706d97b8 SHA512 7d9a914b032ac57992200b33968686dcf300230721aa96ae72fe23ce1ba403d8102eb7ba1819e6ab72b238f5d858c48da2d653540f33791d77d9d18cba275eb7
diff --git a/sci-libs/libcifpp/files/libcifpp-1.0.1_p20210810-destdir.patch b/sci-libs/libcifpp/files/libcifpp-1.0.1_p20210810-destdir.patch
new file mode 100644
index 00000000000..b0c9c1679ad
--- /dev/null
+++ b/sci-libs/libcifpp/files/libcifpp-1.0.1_p20210810-destdir.patch
@@ -0,0 +1,38 @@
+--- a/GNUmakefile.in.old 2021-08-31 11:37:44.381788404 +0200
++++ b/GNUmakefile.in 2021-08-31 11:39:12.924885425 +0200
+@@ -43,18 +43,18 @@
+
+ prefix = $(DESTDIR)@prefix@
+ exec_prefix = @exec_prefix@
+-libdir = @libdir@
++libdir = $(DESTDIR)@libdir@
+ includedir = @includedir@
+ datarootdir = @datarootdir@
+-datadir = @datadir@
+-docdir = @docdir@
++datadir = $(DESTDIR)@datadir@
++docdir = $(DESTDIR)@docdir@
+ pkgconfigdir = $(libdir)/pkgconfig
+
+ CCP4DIR = @CCP4@
+ CLIBD = $(CCP4DIR:%=%/lib/data)
+
+ CACHE_DIR = $(DESTDIR)@DATA_CACHE_DIR@
+-DATA_DIR = @DATA_LIB_DIR@
++DATA_DIR = $(DESTDIR)@DATA_LIB_DIR@
+ CRON_DIR = $(DESTDIR)/etc/cron.weekly
+
+ DEFINES += CACHE_DIR='"$(CACHE_DIR)"' DATA_DIR='"$(DATA_DIR)"'
+@@ -288,9 +288,9 @@
+ done
+ install -d $(CACHE_DIR)
+ install -d $(CRON_DIR)
+- if [ ! -f /etc/libcifpp.conf ] ; then \
+- echo "# Uncomment the next line to enable automatic updates" > /etc/libcifpp.conf; \
+- echo "# update=true" >> /etc/libcifpp.conf; \
++ if [ ! -f $(DESTDIR)/etc/libcifpp.conf ] ; then \
++ echo "# Uncomment the next line to enable automatic updates" > $(DESTDIR)/etc/libcifpp.conf; \
++ echo "# update=true" >> $(DESTDIR)/etc/libcifpp.conf; \
+ echo ""; \
+ echo "Update the /etc/libcifpp.conf file to enable automatic updates"; \
+ echo ""; \
diff --git a/sci-libs/libcifpp/files/libcifpp.conf b/sci-libs/libcifpp/files/libcifpp.conf
new file mode 100644
index 00000000000..34e36c82076
--- /dev/null
+++ b/sci-libs/libcifpp/files/libcifpp.conf
@@ -0,0 +1 @@
+d /var/cache/libcifpp 0777 root root -
\ No newline at end of file
diff --git a/sci-libs/libcifpp/libcifpp-1.0.1_p20210810.ebuild b/sci-libs/libcifpp/libcifpp-1.0.1_p20210810.ebuild
new file mode 100644
index 00000000000..d57b6fef476
--- /dev/null
+++ b/sci-libs/libcifpp/libcifpp-1.0.1_p20210810.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit tmpfiles
+
+DESCRIPTION="Code to work with mmCIF and PDB files"
+HOMEPAGE="https://github.com/PDB-REDO/libcifpp"
+#SRC_URI="https://github.com/PDB-REDO/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+COMMIT="ec91d0fb222810af0d8a9f7b0810fe7661d227ca"
+SRC_URI="https://github.com/PDB-REDO/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+BDEPEND="
+ >=dev-libs/boost-1.71:0=
+"
+DEPEND=""
+RDEPEND=""
+
+PATCHES=(
+ # https://github.com/PDB-REDO/libcifpp/issues/4
+ "${FILESDIR}/${P}-destdir.patch"
+)
+
+src_configure() {
+ econf \
+ --disable-download-ccd \
+ --disable-revision \
+ --disable-static
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+
+ rm -r "${ED}"/var/cache/
+ dotmpfiles "${FILESDIR}/${PN}.conf"
+}
+
+pkg_postinst() {
+ tmpfiles_process "${PN}.conf"
+}
diff --git a/sci-libs/libcifpp/metadata.xml b/sci-libs/libcifpp/metadata.xml
new file mode 100644
index 00000000000..020b40648ee
--- /dev/null
+++ b/sci-libs/libcifpp/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pacho@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/libcifpp/, sci-libs/libcifpp/files/
@ 2023-04-25 13:14 Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2023-04-25 13:14 UTC (permalink / raw
To: gentoo-commits
commit: 21fed73301f33176d1986aed3b31e2751f119dc9
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 25 13:12:01 2023 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Tue Apr 25 13:12:01 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21fed733
sci-libs/libcifpp: Fix build with gcc-13
Closes: https://bugs.gentoo.org/897978
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
.../files/libcifpp-5.0.8-missing-include.patch | 21 +++++++++++++++++++++
sci-libs/libcifpp/libcifpp-5.0.8.ebuild | 5 +++++
2 files changed, 26 insertions(+)
diff --git a/sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch b/sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch
new file mode 100644
index 000000000000..26735e003f4d
--- /dev/null
+++ b/sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch
@@ -0,0 +1,21 @@
+From 0f03fc31e058da4b66f16a67e7674fba1b85ca80 Mon Sep 17 00:00:00 2001
+From: "Maarten L. Hekkelman" <maarten@hekkelman.com>
+Date: Wed, 19 Apr 2023 09:22:32 +0200
+Subject: [PATCH] added required include
+
+---
+ include/cif++/text.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/cif++/text.hpp b/include/cif++/text.hpp
+index 9da9ab9..00f33c1 100644
+--- a/include/cif++/text.hpp
++++ b/include/cif++/text.hpp
+@@ -30,6 +30,7 @@
+
+ #include <charconv>
+ #include <cmath>
++#include <cstdint>
+ #include <limits>
+ #include <set>
+ #include <sstream>
diff --git a/sci-libs/libcifpp/libcifpp-5.0.8.ebuild b/sci-libs/libcifpp/libcifpp-5.0.8.ebuild
index 856007e7bd81..b468bb36559f 100644
--- a/sci-libs/libcifpp/libcifpp-5.0.8.ebuild
+++ b/sci-libs/libcifpp/libcifpp-5.0.8.ebuild
@@ -22,6 +22,11 @@ RESTRICT="!test? ( test )"
DEPEND="dev-libs/boost:="
RDEPEND="${DEPEND}"
+PATCHES=(
+ # https://github.com/PDB-REDO/libcifpp/issues/40
+ "${FILESDIR}/${P}-missing-include.patch"
+)
+
src_configure() {
cp "${WORKDIR}"/${P}-components.cif data/components.cif || die
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-25 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-02 12:01 [gentoo-commits] repo/gentoo:master commit in: sci-libs/libcifpp/, sci-libs/libcifpp/files/ Pacho Ramos
-- strict thread matches above, loose matches on Subject: below --
2023-04-25 13:14 Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox