libcdirectory-20220105.ebuild

This commit is contained in:
Anton Bolshakov 2023-01-27 16:55:14 +08:00
parent 3fcad2da3f
commit 7ed231c31c
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 120 additions and 0 deletions

View file

@ -0,0 +1,2 @@
DIST libcdirectory-experimental-20200702.tar.gz 974541 BLAKE2B 68231700d1159877e1fe8d5524ef95d8eece3317f391d4bec9b736512b7327b3e94293a64d1ea25dbe0b67d2b346ae911a2071beaf26cd7e2a2412b1ab24bf66 SHA512 2ff0b8b457cfac85c00be51a871b81f18e42797a5724afd7ff472151e4807959cc6ddda15a443c341175df21eff65de86f55202c247c33b39cb8aa2af07978ca
DIST libcdirectory-experimental-20220105.tar.gz 1002670 BLAKE2B 408a8e4208f9fc43c3e14ca2a6ecd143eeb13a28517ebd72bf602c88cadc3b0b4166a39b0ccb228f0023dde172a455bb695592fc321357b726e5e5980a290461 SHA512 d587045db38d8313adbf5f3eed0b8971ddb9ae75517c57652557bc05a5c5459092871ebbee4404d910182db23b1163c5a5600171bd743f23cd110a48e5da4df9

View file

@ -0,0 +1,55 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Library for cross-platform C directory functions"
HOMEPAGE="https://github.com/libyal/libcdirectory"
SRC_URI="https://github.com/libyal/libcdirectory/releases/download/${PV}/${PN}-experimental-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls unicode debug"
DEPEND="
dev-libs/libcerror[nls=]
dev-libs/libclocale[nls=,unicode=]
dev-libs/libuna[nls=,unicode=]
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) \
$(use_enable unicode wide-character-type) \
$(use_enable debug verbose-output ) \
$(use_enable debug debug-output )
# --disable-shared-libs disable shared library support
# not supported in the ebuild at the moment - kind of defeats the entire process
# --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,55 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Library for cross-platform C directory functions"
HOMEPAGE="https://github.com/libyal/libcdirectory"
SRC_URI="https://github.com/libyal/libcdirectory/releases/download/${PV}/${PN}-experimental-${PV}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="nls unicode debug"
DEPEND="
dev-libs/libcerror[nls=]
dev-libs/libclocale[nls=,unicode=]
dev-libs/libuna[nls=,unicode=]
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) \
$(use_enable unicode wide-character-type) \
$(use_enable debug verbose-output ) \
$(use_enable debug debug-output )
# --disable-shared-libs disable shared library support
# not supported in the ebuild at the moment - kind of defeats the entire process
# --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,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>