-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
+EAPI="5"
+
inherit eutils autotools
DESCRIPTION="A C++ support library for libpcre"
DEPEND="dev-libs/libpcre"
RDEPEND="${DEPEND}"
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
+src_prepare() {
EPATCH_SUFFIX="patch" \
EPATCH_SOURCE="${WORKDIR}/${P}-patches" \
EPATCH_FORCE="yes" \
}
src_install() {
- emake DESTDIR="${D}" install || die "make failed"
- dodoc AUTHORS ChangeLog NEWS README TODO
+ default
dohtml -r doc/html/.
doman doc/man/man3/Pcre.3
- rm -rf "${D}/usr/doc"
+ rm -rf "${ED}/usr/doc"
}