From 7d47d45fe6b1a9150ace1f8483297c2718dfb12a Mon Sep 17 00:00:00 2001 From: "Gerardo J. Puerta" Date: Mon, 1 Feb 2021 18:47:41 +0100 Subject: [PATCH] Adding hivex --- app-misc/hivex/Manifest | 4 ++ app-misc/hivex/hivex-1.3.14.ebuild | 102 +++++++++++++++++++++++++++++ app-misc/hivex/hivex-1.3.19.ebuild | 102 +++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+) create mode 100644 app-misc/hivex/hivex-1.3.14.ebuild create mode 100644 app-misc/hivex/hivex-1.3.19.ebuild diff --git a/app-misc/hivex/Manifest b/app-misc/hivex/Manifest index f2fdb47..f85714d 100644 --- a/app-misc/hivex/Manifest +++ b/app-misc/hivex/Manifest @@ -1,3 +1,7 @@ +DIST hivex-1.3.14.tar.gz 1332257 BLAKE2B fe7c19e05d29c7e98a334842cc1144aa76b148a3b7aae91449a4923a124eb54227a9a004346ef3558732c688c4f92cacd0c9328056930c33dba0404465634da0 SHA512 dd7dd52dceda580179a815fc48a2a2c7e8f7234614beceb937fba7e317df17984e65453338160c4c467b70d7d4f9bd61b48aad3ca51e19bd5e4cfbca8ee3adb6 DIST hivex-1.3.18.tar.gz 1542133 BLAKE2B 961d0797770a2bd3176ce288a509fab8685de91317d55f05e5295f9f56fd54c31acb64847e0cbb6a6074627ccbdfdf35bd0d35150beb7746a8b3de9128ac24e3 SHA512 1851351118921e81df9e505f90d00048a178572c2edd3de40194a69915176bdb615e2eb5afea408d57063e98257c8d1e3d0cd6730407153892cc9e3befc4aa3a +DIST hivex-1.3.19.tar.gz 1692739 BLAKE2B f7c8320f7e23d3ca19337b71b05ccaee1f59aa0e9f341737382164403637e131d134ffca3967b4d921d3609fa5a88cd3a32f5986d59c17772944c18410b7fade SHA512 dc271349c6efa7b55ba144617e57fe4e7ce855ec1f4ef9f84ee86eeefd3a34cb6b26078786e1568f3008b922a31b758ff2c2734e599b67e0e210aa72e9f41177 +EBUILD hivex-1.3.14.ebuild 1842 BLAKE2B 5d0373e6306b746f853020cf706615621ab88bd825d7e1362c34e30246dc8c73ba6cffc5acef8e7f8c3ffc81290795a37b5acfb54389cf5d66211d0c56e87245 SHA512 dc9dd1acc9622c8492ff3a17b14173cce3a4a325aac4602bc3456528e02f46145658bf40e6d02a2a25ba87e8d5af4cb570d99fec950eca12ac4fa8368b64418a EBUILD hivex-1.3.18.ebuild 1844 BLAKE2B c9fea0fb63e7c52732d2f0fbc87eb83d453cad4275c1706bf5c9db5f920fefc63dc908c3bfa17272ce32a0a21e366c8d3e3f73752ba8a81b0b6f199a7a5b2ff3 SHA512 74bc61b1b9aecf64a5402f50c286ab11f68e12766d9c44dfbb463f8d510645f55bd31d53db60ea56461e3262817a9ad70d28250d7e04a9a3cc0b98c192805234 +EBUILD hivex-1.3.19.ebuild 1830 BLAKE2B b250bb6b3f14fec9b9f2bc9890e85b1097fa13da9ed576f5de20d5fd76c80cc2734ad3ae4cfea3f147ec597eb3c90bfd84d82585a62b3d0cb68dd040a0443f01 SHA512 bd6e9f72cc3410c1bfc7b5e32a1608fef4a28bbce127dcc14cba0451e829c7c393de3b38d6715baeb4952df4fbe407baf0c2c111c1639163dd94637da2f2f38f MISC metadata.xml 245 BLAKE2B 5599732e8923ea2b90a26adcb5708b6cf95cd3db28e810b9f881ac7d0e2c63745609f4c6e21708bdda7792f769df77bfa4b9d4d135eda71831efcaaab122c384 SHA512 1c6cdb75d4cbbd8d3a5f2cc24950924c030db330e135cf2cacecdaaa99ee65117efd7abd9f8652bf5dfa8169d427f51ff84123aab11fa8ef82498a6834b0805a diff --git a/app-misc/hivex/hivex-1.3.14.ebuild b/app-misc/hivex/hivex-1.3.14.ebuild new file mode 100644 index 0000000..07099a9 --- /dev/null +++ b/app-misc/hivex/hivex-1.3.14.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" +RUBY_OPTIONAL=yes + +PYTHON_COMPAT=(python2_7 python3_{5,6}) + +inherit eutils perl-module ruby-ng python-single-r1 + +DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files" +HOMEPAGE="http://libguestfs.org" +SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ocaml readline +perl python test static-libs ruby" + +RDEPEND=" + virtual/libiconv + virtual/libintl + dev-libs/libxml2:2 + ocaml? ( dev-lang/ocaml[ocamlopt] + dev-ml/findlib[ocamlopt] + ) + readline? ( sys-libs/readline:0 ) + perl? ( dev-perl/IO-stringy ) + ruby? ( $(ruby_implementations_depend) ) + python? ( ${PYTHON_DEPS} ) + " + +DEPEND="${RDEPEND} + perl? ( + test? ( dev-perl/Pod-Coverage + dev-perl/Test-Pod-Coverage ) + ) + " + +ruby_add_bdepend "ruby? ( dev-ruby/rake + virtual/rubygems + dev-ruby/rdoc )" +ruby_add_rdepend "ruby? ( virtual/rubygems )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + ruby? ( || ( $(ruby_get_use_targets) ) )" + +DOCS=( README ) + +S="${WORKDIR}/${P}" + +pkg_setup() { + if use python; then + python-single-r1_pkg_setup + fi +} + +src_unpack() { + default + cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all +} + +src_configure() { + ruby-ng_src_configure + + if use perl; then + pushd perl + perl-module_src_configure + popd + fi + + local myeconfargs=( + $(use_with readline) + $(use_enable ocaml) + $(use_enable perl) + --enable-nls + --disable-ruby + $(use_enable python) + --disable-rpath + ) + + econf ${myeconfargs[@]} +} + +src_compile() { + default + ruby-ng_src_compile +} + +src_install() { + strip-linguas -i po + + emake install DESTDIR="${ED}" "LINGUAS=""${LINGUAS}""" + + ruby-ng_src_install + + if use perl; then + perl_delete_localpod + fi +} diff --git a/app-misc/hivex/hivex-1.3.19.ebuild b/app-misc/hivex/hivex-1.3.19.ebuild new file mode 100644 index 0000000..91e4012 --- /dev/null +++ b/app-misc/hivex/hivex-1.3.19.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby27" +RUBY_OPTIONAL=yes + +PYTHON_COMPAT=(python2_7 python3_{5,6,7}) + +inherit eutils perl-module ruby-ng python-single-r1 + +DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files" +HOMEPAGE="http://libguestfs.org" +SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ocaml readline +perl python test static-libs ruby" + +RDEPEND=" + virtual/libiconv + virtual/libintl + dev-libs/libxml2:2 + ocaml? ( dev-lang/ocaml[ocamlopt] + dev-ml/findlib[ocamlopt] + ) + readline? ( sys-libs/readline:0 ) + perl? ( dev-perl/IO-stringy ) + ruby? ( $(ruby_implementations_depend) ) + python? ( ${PYTHON_DEPS} ) + " + +DEPEND="${RDEPEND} + perl? ( + test? ( dev-perl/Pod-Coverage + dev-perl/Test-Pod-Coverage ) + ) + " + +ruby_add_bdepend "ruby? ( dev-ruby/rake + virtual/rubygems + dev-ruby/rdoc )" +ruby_add_rdepend "ruby? ( virtual/rubygems )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + ruby? ( || ( $(ruby_get_use_targets) ) )" + +DOCS=( README ) + +S="${WORKDIR}/${P}" + +pkg_setup() { + if use python; then + python-single-r1_pkg_setup + fi +} + +src_unpack() { + default + cp -prlP "${WORKDIR}/${P}" "${WORKDIR}"/all +} + +src_configure() { + ruby-ng_src_configure + + if use perl; then + pushd perl + perl-module_src_configure + popd + fi + + local myeconfargs=( + $(use_with readline) + $(use_enable ocaml) + $(use_enable perl) + --enable-nls + --disable-ruby + $(use_enable python) + --disable-rpath + ) + + econf ${myeconfargs[@]} +} + +src_compile() { + default + ruby-ng_src_compile +} + +src_install() { + strip-linguas -i po + + emake install DESTDIR="${ED}" "LINGUAS=""${LINGUAS}""" + + ruby-ng_src_install + + if use perl; then + perl_delete_localpod + fi +}