gentoo-ebuilds/media-libs/liblingoteach/liblingoteach-0.2.3-r2.ebuild
Sam James 5bac233dc8
media-libs/liblingoteach: fix modern C issue in configure
Closes: https://bugs.gentoo.org/899826
Signed-off-by: Sam James <sam@gentoo.org>
2024-11-19 13:39:42 +00:00

43 lines
818 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="A library to support lingoteach-ui and for generic lesson development"
HOMEPAGE="http://lingoteach.sourceforge.net"
SRC_URI="https://downloads.sourceforge.net/lingoteach/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="debug zlib"
RDEPEND="
zlib? ( sys-libs/zlib )
dev-libs/libxml2
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
# bug #899826
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable zlib compression)
$(use_enable debug)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
mv "${ED}/usr/share/doc/${P}" "${ED}/usr/share/doc/${PF}" || die
}