diff options
Diffstat (limited to 'media-libs/sdl-ttf/sdl-ttf-2.0.11-r1.ebuild')
-rw-r--r-- | media-libs/sdl-ttf/sdl-ttf-2.0.11-r1.ebuild | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/media-libs/sdl-ttf/sdl-ttf-2.0.11-r1.ebuild b/media-libs/sdl-ttf/sdl-ttf-2.0.11-r1.ebuild index 2f74af334950..e72a1d47b822 100644 --- a/media-libs/sdl-ttf/sdl-ttf-2.0.11-r1.ebuild +++ b/media-libs/sdl-ttf/sdl-ttf-2.0.11-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit autotools eutils multilib-minimal +EAPI=6 +inherit autotools multilib-minimal MY_P="${P/sdl-/SDL_}" DESCRIPTION="library that allows you to use TrueType fonts in SDL applications" @@ -22,23 +22,29 @@ DEPEND="${RDEPEND}" S=${WORKDIR}/${MY_P} +PATCHES=( + "${FILESDIR}"/${P}-underlink.patch + "${FILESDIR}"/${P}-freetype_pkgconfig.patch +) + src_prepare() { - epatch "${FILESDIR}"/${P}-underlink.patch + default + mv configure.{in,ac} || die eautoreconf } multilib_src_configure() { - ECONF_SOURCE="${S}" econf \ - --disable-dependency-tracking \ - $(use_enable static-libs static) \ + local myeconfargs=( + --disable-dependency-tracking + $(use_enable static-libs static) $(use_with X x) -} - -multilib_src_install() { - emake DESTDIR="${D}" install + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } multilib_src_install_all() { dodoc CHANGES README - use static-libs || prune_libtool_files --all + if ! use static-libs ; then + find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die + fi } |