| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.2.5-r1 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Tool for managing windows's LDM partitions"
HOMEPAGE="https://github.com/mdbooth/libldm"
SRC_URI="https://github.com/mdbooth/${PN}/archive/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"
DEPEND="
>=sys-libs/zlib-1.2
dev-libs/glib:2
dev-libs/json-glib
dev-util/gtk-doc
sys-apps/util-linux
sys-fs/lvm2"
inherit autotools flag-o-matic
PATCHES=(
"${FILESDIR}/${P}_f0321d8.patch"
)
src_prepare() {
default
# Remove problematic LDFLAGS declaration
sed -i -e 's/ -Werror//g' src/Makefile.am || die
eautoreconf
eapply_user
}
src_unpack() {
unpack ${A}
mv "libldm-${P}" "${P}"
}
>=sys-libs/zlib-1.2 dev-libs/glib:2 dev-libs/json-glib dev-util/gtk-doc sys-apps/util-linux sys-fs/lvm2