diff options
Diffstat (limited to 'dev-games/t4k-common/t4k-common-0.1.1.ebuild')
-rw-r--r-- | dev-games/t4k-common/t4k-common-0.1.1.ebuild | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/dev-games/t4k-common/t4k-common-0.1.1.ebuild b/dev-games/t4k-common/t4k-common-0.1.1.ebuild index 3c366660d4d6..e0a6d5009ab5 100644 --- a/dev-games/t4k-common/t4k-common-0.1.1.ebuild +++ b/dev-games/t4k-common/t4k-common-0.1.1.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit eutils ltprune +EAPI=7 + +inherit autotools DESCRIPTION="A library of code shared between tuxmath and tuxtype" HOMEPAGE="https://github.com/tux4kids/t4kcommon" @@ -11,9 +12,10 @@ SRC_URI="https://github.com/tux4kids/t4kcommon/archive/upstream/${PV}.tar.gz -> LICENSE="GPL-3" SLOT="0" KEYWORDS="amd64 x86" -IUSE="static-libs svg" +IUSE="svg" -RDEPEND="dev-libs/libxml2:2 +RDEPEND=" + dev-libs/libxml2:2 media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer @@ -25,22 +27,33 @@ RDEPEND="dev-libs/libxml2:2 media-libs/libpng:0 x11-libs/cairo )" -DEPEND="${RDEPEND} +DEPEND="${RDEPEND}" +# need sys-devel/gettext for AM_ICONV in iconv.m4 +BDEPEND=" + sys-devel/gettext virtual/pkgconfig" -S=${WORKDIR}/t4kcommon-upstream-${PV} +S="${WORKDIR}/t4kcommon-upstream-${PV}" + +PATCHES=( + "${FILESDIR}"/${P}-libpng.patch + "${FILESDIR}"/${P}-fno-common.patch + "${FILESDIR}"/${P}-ICONV_CONST.patch +) src_prepare() { - epatch "${FILESDIR}"/${P}-libpng.patch + default + rm m4/iconv.m4 || die + eautoreconf } src_configure() { econf \ - $(usex svg "" "--without-rsvg") \ - $(use_enable static-libs static) + --disable-static \ + $(usex svg "" --without-rsvg) } src_install() { default - use static-libs || prune_libtool_files --all + find "${ED}" -name '*.la' -delete || die } |