1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
10 DESCRIPTION="Tiny library providing a C \"class\" for working with arbitrary big sizes in bytes"
11 HOMEPAGE="https://github.com/storaged-project/libbytesize"
12 SRC_URI="https://github.com/storaged-project/libbytesize/releases/download/${PV}/${P}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="doc python test tools"
19 python? ( ${PYTHON_REQUIRED_USE} )
27 python? ( ${PYTHON_DEPS} )
34 doc? ( dev-util/gtk-doc )
36 dev-python/pocketlint[${PYTHON_USEDEP}]
37 dev-python/polib[${PYTHON_USEDEP}]
47 python_foreach_impl run_in_build_dir "$@"
55 $(use_with doc gtk-doc)
56 $(use_with python python3)
59 local ECONF_SOURCE="${S}"
60 python_do econf "${myeconfargs[@]}"
72 emake DESTDIR="${D}" install
73 use python && python_optimize
77 python_do install_helper
79 find "${ED}" -name "*.la" -type f -delete || die