1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby23 ruby24 ruby25"
9 PYTHON_COMPAT=(python2_7 python3_{4,5,6})
11 inherit eutils perl-module ruby-ng python-single-r1
13 DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files"
14 HOMEPAGE="http://libguestfs.org"
15 SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz"
20 IUSE="ocaml readline +perl python test static-libs ruby"
26 ocaml? ( dev-lang/ocaml[ocamlopt]
27 dev-ml/findlib[ocamlopt]
29 readline? ( sys-libs/readline:0 )
30 perl? ( dev-perl/IO-stringy )
31 ruby? ( $(ruby_implementations_depend) )
32 python? ( ${PYTHON_DEPS} )
37 test? ( dev-perl/Pod-Coverage
38 dev-perl/Test-Pod-Coverage )
42 ruby_add_bdepend "ruby? ( dev-ruby/rake
45 ruby_add_rdepend "ruby? ( virtual/rubygems )"
47 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
48 ruby? ( || ( $(ruby_get_use_targets) ) )"
56 python-single-r1_pkg_setup
62 cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all
70 perl-module_src_configure
84 econf ${myeconfargs[@]}
95 emake install DESTDIR="${ED}" "LINGUAS=""${LINGUAS}"""