dev-libs/hashdb - 3.1.0 (pentoo)

Search

Install

Install this version:

emerge -a =dev-libs/hashdb-3.1.0

Package Information

Description:
The hashdb block hash database tool and API
Homepage:
https://github.com/NPS-DEEP/hashdb
License:
GPL-3 public-domain

Ebuild Details

Version EAPI Keywords Slot
3.1.0 8 amd64 ~arm64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )

inherit autotools flag-o-matic python-single-r1

DESCRIPTION="The hashdb block hash database tool and API"
HOMEPAGE="https://github.com/NPS-DEEP/hashdb"
SRC_URI="https://github.com/NPS-DEEP/hashdb/archive/v${PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="amd64 ~arm64 ~x86"
LICENSE="GPL-3 public-domain"
SLOT="0"

IUSE="python static-libs test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"

RDEPEND="
	app-forensics/libewf
	dev-libs/icu
	dev-libs/openssl:0=
	python? ( ${PYTHON_DEPS} )
	sys-libs/zlib"

DEPEND="${RDEPEND}
	python? ( dev-lang/swig )
	dev-build/libtool"

pkg_setup() {
	python-single-r1_pkg_setup
}

src_prepare() {
	eapply "${FILESDIR}"/fix_undefined_reference_to_libewf_handle_read_random.patch
	eapply "${FILESDIR}"/hashdb-3.1.0-cstdint.patch

	# https://github.com/NPS-DEEP/hashdb/issues/6
	if has_version ">=dev-libs/openssl-1.1.0"; then
		eapply "${FILESDIR}"/fix_configure_openssl-1.1.0_detection.patch
	fi

	python_fix_shebang "${S}"

	eautoreconf
	default
}

src_configure() {
	append-cxxflags -std=c++11
	econf \
		--without-o3 \
		$(use_enable python SWIG_Python) \
		$(use_enable static-libs static)
}

src_test() {
	emake -j1 check
}

src_install() {
	default
	find "${D}" -name '*.la' -delete || die

	if use python && ! use static-libs; then
		rm -f "${D}$(python_get_sitedir)"/*.a || die
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/hashdb | euse -E <flag> -p dev-libs/hashdb | euse -D <flag> -p dev-libs/hashdb

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	app-forensics/libewf
	dev-libs/icu
	dev-libs/openssl:0=
	python? (  )
	sys-libs/zlib
	python? ( dev-lang/swig )
	dev-build/libtool

RDEPEND

	app-forensics/libewf
	dev-libs/icu
	dev-libs/openssl:0=
	python? (  )
	sys-libs/zlib

Manifest for 3.1.0

Type File Size Source URLs
DIST hashdb-3.1.0.tar.gz 746116 bytes https://github.com/NPS-DEEP/hashdb/archive/v3.1.0.tar.gz