summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2021-09-02 08:49:50 +0200
committerPacho Ramos <pacho@gentoo.org>2021-09-02 14:00:36 +0200
commit02f76ba29e10ddb902ccaeca6528280794f3622e (patch)
tree0dfdee7bc7611122677c798a350f72b0336cbc91 /sci-libs/libcifpp
parentprofiles/arch/riscv: mask USE=pmdk on sys-cluster/ceph (diff)
downloadgentoo-02f76ba29e10ddb902ccaeca6528280794f3622e.tar.gz
gentoo-02f76ba29e10ddb902ccaeca6528280794f3622e.tar.bz2
gentoo-02f76ba29e10ddb902ccaeca6528280794f3622e.zip
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@gentoo.org>
Diffstat (limited to 'sci-libs/libcifpp')
-rw-r--r--sci-libs/libcifpp/Manifest1
-rw-r--r--sci-libs/libcifpp/files/libcifpp-1.0.1_p20210810-destdir.patch38
-rw-r--r--sci-libs/libcifpp/files/libcifpp.conf1
-rw-r--r--sci-libs/libcifpp/libcifpp-1.0.1_p20210810.ebuild48
-rw-r--r--sci-libs/libcifpp/metadata.xml7
5 files changed, 95 insertions, 0 deletions
diff --git a/sci-libs/libcifpp/Manifest b/sci-libs/libcifpp/Manifest
new file mode 100644
index 000000000000..3744a9f5c5d4
--- /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 000000000000..b0c9c1679ad9
--- /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 000000000000..34e36c820761
--- /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 000000000000..d57b6fef476c
--- /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 000000000000..020b40648ee8
--- /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>