Diff dssp-2.2.1-r3 with a dssp-3.0.11
/usr/portage/sci-chemistry/dssp/dssp-3.0.11.ebuild 2023-10-09 14:52:35.032368490 +0300 | ||
---|---|---|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 |
inherit autotools |
|
5 | 6 | |
6 |
inherit toolchain-funcs |
|
7 |
MY_PN="hssp" |
|
8 |
MY_P="${MY_PN}-${PV}" |
|
7 | 9 | |
8 | 10 |
DESCRIPTION="The protein secondary structure standard" |
9 |
HOMEPAGE="https://swift.cmbi.umcn.nl/gv/dssp/" |
|
10 |
SRC_URI="ftp://ftp.cmbi.ru.nl/pub/molbio/software/dssp-2/${P}.tgz" |
|
11 |
HOMEPAGE="https://swift.cmbi.umcn.nl/gv/dssp/ https://github.com/cmbi/hssp" |
|
12 |
SRC_URI="https://github.com/cmbi/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
|
11 | 13 | |
12 | 14 |
LICENSE="Boost-1.0" |
13 | 15 |
SLOT="0" |
14 |
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" |
|
15 |
IUSE="" |
|
16 | ||
17 |
RDEPEND="dev-libs/boost:=[bzip2,zlib]" |
|
16 |
KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" |
|
17 |
# It's just cppcheck (at least in 3.0.11) |
|
18 |
RESTRICT="test" |
|
19 | ||
20 |
RDEPEND=" |
|
21 |
dev-lang/perl:= |
|
22 |
dev-libs/boost:=[bzip2,zlib] |
|
23 |
" |
|
18 | 24 |
DEPEND="${RDEPEND}" |
19 | 25 | |
20 |
PATCHES=( |
|
21 |
"${FILESDIR}"/${PN}-2.1.0-gentoo.patch |
|
22 |
"${FILESDIR}"/${PN}-2.2.1-boost-1.65-tr1-removal.patch |
|
23 |
) |
|
24 | ||
25 |
src_configure() { |
|
26 |
tc-export CXX |
|
27 | ||
28 |
cat >> make.config <<- EOF || die |
|
29 |
BOOST_LIB_DIR = "${EPREFIX}/usr/$(get_libdir)" |
|
30 |
BOOST_INC_DIR = "${EPREFIX}/usr/include" |
|
31 |
EOF |
|
26 |
S="${WORKDIR}/${MY_P}" |
|
27 | ||
28 |
src_prepare() { |
|
29 |
default |
|
30 | ||
31 |
# Fix version |
|
32 |
sed -i -e "s/3.0.10/${PV}/" configure.ac || die |
|
33 | ||
34 |
sed -i -e '/-Werror/d' Makefile.am || die |
|
35 | ||
36 |
eautoreconf |
|
32 | 37 |
} |
33 | 38 | |
34 | 39 |
src_install() { |
35 |
dobin mkdssp |
|
40 |
default |
|
36 | 41 |
dosym mkdssp /usr/bin/dssp |
37 |
doman doc/mkdssp.1 |
|
38 |
dodoc README.txt changelog |
|
39 | ||
40 | 42 |
doenvd "${FILESDIR}"/30-${PN} |
41 | 43 |
} |