summaryrefslogtreecommitdiff
blob: d9a8ad2243da4f39f202f2bae9a683e5d075f69a (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

MY_P="${PN}2-${PV}"

DESCRIPTION="The Coordinate Library for working with CCP4 coordinate files"
HOMEPAGE="https://launchpad.net/mmdb/"
SRC_URI="ftp://ftp.ccp4.ac.uk/opensource/${MY_P}.tar.gz"

LICENSE="GPL-2 LGPL-3"
SLOT="2"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
IUSE="static-libs"

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

src_configure() {
	econf \
		--enable-shared \
		$(use_enable static-libs static)
}

src_install() {
	default
	if ! use static-libs; then
		find "${ED}" -name '*.la' -delete || die
	fi
}