commit:     86a55f2707b1daa78e8d7e0666756e95ef588d47
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  2 11:48:56 2021 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Thu Sep  2 12:00:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86a55f27

sci-chemistry/dssp: Fix boost compat for dssp-2

dssp-2 is still needed by gromacs, try to keep it whenever possible then

Closes: https://bugs.gentoo.org/802417
Closes: https://bugs.gentoo.org/808669
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 sci-chemistry/dssp/dssp-2.2.1-r3.ebuild | 41 +++++++++++++++++++++++++++++++++
 sci-chemistry/dssp/files/30-dssp        |  1 +
 2 files changed, 42 insertions(+)

diff --git a/sci-chemistry/dssp/dssp-2.2.1-r3.ebuild 
b/sci-chemistry/dssp/dssp-2.2.1-r3.ebuild
new file mode 100644
index 00000000000..17a89bb51ff
--- /dev/null
+++ b/sci-chemistry/dssp/dssp-2.2.1-r3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="The protein secondary structure standard"
+HOMEPAGE="https://swift.cmbi.umcn.nl/gv/dssp/";
+SRC_URI="ftp://ftp.cmbi.ru.nl/pub/molbio/software/dssp-2/${P}.tgz";
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-libs/boost:=[threads(+)]"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.1.0-gentoo.patch
+       "${FILESDIR}"/${PN}-2.2.1-boost-1.65-tr1-removal.patch
+)
+
+src_configure() {
+       tc-export CXX
+
+       cat >> make.config <<- EOF || die
+               BOOST_LIB_DIR = "${EPREFIX}/usr/$(get_libdir)"
+               BOOST_INC_DIR = "${EPREFIX}/usr/include"
+       EOF
+}
+
+src_install() {
+       dobin mkdssp
+       dosym mkdssp /usr/bin/dssp
+       doman doc/mkdssp.1
+       dodoc README.txt changelog
+
+       doenvd "${FILESDIR}"/30-${PN}
+}

diff --git a/sci-chemistry/dssp/files/30-dssp b/sci-chemistry/dssp/files/30-dssp
new file mode 100644
index 00000000000..e0a5e0ce562
--- /dev/null
+++ b/sci-chemistry/dssp/files/30-dssp
@@ -0,0 +1 @@
+DSSP=/usr/bin/dssp
\ No newline at end of file

Reply via email to