Merge pull request #1309 from vwegert/add-libhmac-2

added ebuilds for dev-libs/libhmac from libyal
This commit is contained in:
Anton Bolshakov 2023-01-27 12:31:50 +08:00 committed by GitHub
commit 3913f95f29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 118 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST libhmac-alpha-20200104.tar.gz 1146738 BLAKE2B cdb9f3be6ab20449f1f592ace96110d0f57976f96ef9ef11ad889fc66729dfc65ea863be0eec0499c5d45892287dd292ba55f8ed6e6adb4552db8df384247876 SHA512 cc14a6a11b118103615b90a7703c36fd31fdaa40798c025b0e31a65593b02a33caa73c3016131dff2ccd9759d8fde229e095b7b90cb32d5ee121819e71f2cebd
DIST libhmac-alpha-20220425.tar.gz 1254604 BLAKE2B 7be28b0a6a824a42fe6ebc49b2344804c5f872d9104c2a641032e1334518b993f94214fcf573a67c31f814bdc0bfc3eed8826ad450c1ed83c25b26f07bfba4b1 SHA512 6c92d781bb56ce04ea408a70c77477810c79132600ef33797ab176592ce1180efc08c96adef56d48293d13ccb6523ef469e598f4855c6425ef63d3e97f7f0003

View file

@ -0,0 +1,54 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Library to support various Hash-based Message Authentication Codes (HMAC)"
HOMEPAGE="https://github.com/libyal/libhmac"
SRC_URI="https://github.com/libyal/libhmac/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls unicode +threads"
DEPEND="
nls? (
virtual/libiconv
virtual/libintl
)
dev-libs/libcerror[nls=]
dev-libs/libcfile[nls=,unicode=]
dev-libs/libclocale[nls=,unicode=]
dev-libs/libcnotify[nls=]
dev-libs/libcpath[nls=,unicode=]
dev-libs/libcsplit[nls=,unicode=]
dev-libs/libcthreads[nls=]
dev-libs/libuna[nls=,unicode=]
"
RDEPEND="
${DEPEND}
"
src_prepare() {
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
$(use_enable unicode wide-character-type) \
$(use_enable threads multi-threading-support) \
}
src_install() {
default
# see https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
find "${ED}" -name '*.la' -delete || die
}

View file

@ -0,0 +1,54 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Library to support various Hash-based Message Authentication Codes (HMAC)"
HOMEPAGE="https://github.com/libyal/libhmac"
SRC_URI="https://github.com/libyal/libhmac/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls unicode +threads"
DEPEND="
nls? (
virtual/libiconv
virtual/libintl
)
dev-libs/libcerror[nls=]
dev-libs/libcfile[nls=,unicode=]
dev-libs/libclocale[nls=,unicode=]
dev-libs/libcnotify[nls=]
dev-libs/libcpath[nls=,unicode=]
dev-libs/libcsplit[nls=,unicode=]
dev-libs/libcthreads[nls=]
dev-libs/libuna[nls=,unicode=]
"
RDEPEND="
${DEPEND}
"
src_prepare() {
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
$(use_enable unicode wide-character-type) \
$(use_enable threads multi-threading-support) \
}
src_install() {
default
# see https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
find "${ED}" -name '*.la' -delete || die
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
</pkgmetadata>