*/*: Add ebuilds for dmg2img and lzfse

Signed-off-by: Dale Sweeney <agooglygooglr@gmail.com>
This commit is contained in:
Dale Sweeney 2024-06-12 15:10:53 -04:00
parent 63f4ba4dda
commit 81489b9d5d
No known key found for this signature in database
GPG Key ID: 8C85C606BDBF427F
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
EGIT_REPO_URI="https://github.com/lzfse/lzfse"
DESCRIPTION="LZFSE compression library and command line tool."
LICENSE="BSD"
SLOT="0"
src_install() {
emake INSTALL_PREFIX=${D}/usr install
}

View File

@ -0,0 +1,25 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
EGIT_REPO_URI="https://github.com/Lekensteyn/dmg2img"
DESCRIPTION="Convert Apple disk images to IMG format."
LICENSE="GPL-2"
SLOT="0"
IUSE="lzfse"
DEPEND="app-arch/bzip2 dev-libs/openssl sys-libs/zlib lzfse? ( dev-libs/lzfse )"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}"
src_configure() {
emake HAVE_LZFSE=$(usex lzfse 1 0)
}
src_install() {
emake DESTDIR=${D} install
}