1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib-minimal libtool
8 DESCRIPTION="ASN.1 library"
9 HOMEPAGE="https://www.gnu.org/software/libtasn1/"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
12 LICENSE="GPL-3 LGPL-2.1"
13 SLOT="0/6" # subslot = libtasn1 soname version
14 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 ~sh sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15 IUSE="doc static-libs test valgrind"
17 RESTRICT="!test? ( test )"
19 BDEPEND="sys-apps/help2man
21 test? ( valgrind? ( dev-util/valgrind ) )"
33 DOCS+=( doc/libtasn1.pdf )
34 HTML_DOCS=( doc/reference/html/. )
40 elibtoolize # for Solaris shared library
43 multilib_src_configure() {
44 ECONF_SOURCE="${S}" econf \
45 $(use_enable static-libs static) \
46 $(multilib_native_use_enable valgrind valgrind-tests)
49 multilib_src_install_all() {
51 find "${D}" -name '*.la' -delete || die