Skip to content

Commit

Permalink
EAPI=5; minor tidying
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.24
  • Loading branch information
Michael Sterrett committed Dec 18, 2015
1 parent 37b7c85 commit 81f45df
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions media-libs/ftgl/ftgl-2.1.3_rc5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=4

EAPI=5
inherit eutils flag-o-matic autotools

MY_PV=${PV/_/-}
Expand All @@ -24,29 +23,26 @@ DEPEND=">=media-libs/freetype-2.0.9
virtual/opengl
virtual/glu
media-libs/freeglut"
RDEPEND="${DEPEND}"
RDEPEND=${DEPEND}

S=${WORKDIR}/${MY_P2}

DOCS="AUTHORS BUGS ChangeLog INSTALL NEWS README TODO docs/projects_using_ftgl.txt"

src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch \
epatch \
"${FILESDIR}"/${P}-gentoo.patch \
"${FILESDIR}"/${P}-underlink.patch
# AT_M4DIR=m4 eautoreconf
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
eautoreconf
}

src_configure() {
strip-flags # ftgl is sensitive - bug #112820
econf \
$(use_enable static-libs static)
econf $(use_enable static-libs static)
}

src_install() {
default
rm -rf "${D}"/usr/share/doc/ftgl

find "${ED}" -name '*.la' -exec rm -f {} +
DOCS="AUTHORS BUGS ChangeLog NEWS README TODO docs/projects_using_ftgl.txt" \
default
rm -rf "${D}"/usr/share/doc/ftgl || die
prune_libtool_files
}

0 comments on commit 81f45df

Please sign in to comment.