From 81489b9d5d024ff07aa364ce41a8cdab688b006e Mon Sep 17 00:00:00 2001 From: Dale Sweeney Date: Wed, 12 Jun 2024 15:10:53 -0400 Subject: [PATCH] */*: Add ebuilds for dmg2img and lzfse Signed-off-by: Dale Sweeney --- dev-libs/lzfse/lzfse-9999.ebuild | 16 ++++++++++++++++ dev-util/dmg2img/dmg2img-9999.ebuild | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 dev-libs/lzfse/lzfse-9999.ebuild create mode 100755 dev-util/dmg2img/dmg2img-9999.ebuild diff --git a/dev-libs/lzfse/lzfse-9999.ebuild b/dev-libs/lzfse/lzfse-9999.ebuild new file mode 100644 index 0000000000..506cf01665 --- /dev/null +++ b/dev-libs/lzfse/lzfse-9999.ebuild @@ -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 +} diff --git a/dev-util/dmg2img/dmg2img-9999.ebuild b/dev-util/dmg2img/dmg2img-9999.ebuild new file mode 100755 index 0000000000..85115ae066 --- /dev/null +++ b/dev-util/dmg2img/dmg2img-9999.ebuild @@ -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 +}