summaryrefslogtreecommitdiff
blob: b0771e31047d3d0f4c7216872c364e36c7c6ceaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit autotools

MY_PN="hssp"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="The protein secondary structure standard"
HOMEPAGE="https://swift.cmbi.umcn.nl/gv/dssp/ https://github.com/cmbi/hssp"
SRC_URI="https://github.com/cmbi/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""

RDEPEND="
	dev-lang/perl:=
	dev-libs/boost:=[bzip2,zlib,threads(+)]
"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	default

	# Fix version
	sed -i -e "s/3.0.10/${PV}/" configure.ac || die

	sed -i -e '/-Werror/d' Makefile.am || die

	eautoreconf
}

src_install() {
	default
	dosym mkdssp /usr/bin/dssp
	doenvd "${FILESDIR}"/30-${PN}
}