This commit is contained in:
Anton Bolshakov 2023-01-27 14:20:24 +08:00
parent dae8b56dfc
commit 8749f9dcb4
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 81 additions and 11 deletions

View file

@ -1 +1,2 @@
DIST libfdatetime-alpha-20180910.tar.gz 557052 BLAKE2B 08532fb7b07ca83b69214d4bf39811fd03589322690ed4df7d495eff1e05dae6b5fd0c2d996365463c7da7f33f9699a6c22fa6fbfb1430432c890c15b3cc83a4 SHA512 50f867d7e58282e41ff1631648eaebd55b414bda6492c5799fbba24fdf01176be15b2830ef5aaf91744a2cf9578317c6c57961a1acc05ccf718043951d4a9a1c
DIST libfdatetime-alpha-20220112.tar.gz 571149 BLAKE2B dbbb5be8ee3c17e3b4e1481b9094d35e923dc091356e24faf7d0b2a81a99d97d37349dd85bb258aec78ca19a3346e7e250a662f62949d737cac3d4b50a425a83 SHA512 9ee901143a9735d445c2cea35db87fee06be8201b5b8c65a4a324a75e631eaa1ea51dcbde17f380e884d22170cd81bfbee267461d00ebaeec5aa400cc9cd17bd

View file

@ -1,25 +1,47 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit autotools
DESCRIPTION="Library for date and time formats"
HOMEPAGE="https://github.com/libyal/libfdatetime"
SRC_URI="https://github.com/libyal/${PN}/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
SRC_URI="https://github.com/libyal/libfdatetime/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls"
DEPEND="dev-libs/libcerror
nls? ( virtual/libiconv
virtual/libintl )"
DEPEND="
dev-libs/libcerror[nls=]
nls? (
virtual/libiconv
virtual/libintl
)
"
RDEPEND="${DEPEND}"
src_configure() {
econf $(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix) \
--with-libcerror
src_prepare() {
#makefile was created with 1.16, let's regenerate it
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix)
# --enable-winapi enable WINAPI support for cross-compilation
# [default=auto-detect]
# not supported in the ebuild at the moment - requires windows.h, does not make much sense for us
}
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,47 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Library for date and time formats"
HOMEPAGE="https://github.com/libyal/libfdatetime"
SRC_URI="https://github.com/libyal/libfdatetime/releases/download/${PV}/${PN}-alpha-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls"
DEPEND="
dev-libs/libcerror[nls=]
nls? (
virtual/libiconv
virtual/libintl
)
"
RDEPEND="${DEPEND}"
src_prepare() {
#makefile was created with 1.16, let's regenerate it
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with nls libiconv-prefix) \
$(use_with nls libintl-prefix)
# --enable-winapi enable WINAPI support for cross-compilation
# [default=auto-detect]
# not supported in the ebuild at the moment - requires windows.h, does not make much sense for us
}
src_install() {
default
# see https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0303
find "${ED}" -name '*.la' -delete || die
}