---- configure.ac.orig 2015-01-14 09:37:13.616446476 +0300
-+++ configure.ac 2015-01-14 09:37:26.119445770 +0300
-@@ -17,7 +17,7 @@
+--- a/configure.in
++++ b/configure.in
+@@ -17,7 +17,8 @@
#AC_CONFIG_SRCDIR(configure.in)
AC_CONFIG_AUX_DIR(config)
-AM_CONFIG_HEADER(include/config.h)
+AC_CONFIG_HEADERS([include/config.h])
++AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
-AT_M4DIR="m4"
-AUTOTOOLS_AUTORECONF=1
-inherit autotools-multilib
+inherit autotools multilib-minimal
DESCRIPTION="C++ classes for flexible logging to files, syslog and other destinations"
HOMEPAGE="http://log4cpp.sourceforge.net/"
DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""
-DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
-
PATCHES=(
- "${FILESDIR}/1.0-doc_install_path.patch"
- "${FILESDIR}/1.0-gcc43.patch"
- "${FILESDIR}/1.0-asneeded.patch"
- "${FILESDIR}/${P}-cmath-fix.patch"
- "${FILESDIR}/${P}-automake-1.13.patch"
+ "${FILESDIR}"/1.0-doc_install_path.patch
+ "${FILESDIR}"/1.0-gcc43.patch
+ "${FILESDIR}"/1.0-asneeded.patch
+ "${FILESDIR}"/${P}-cmath-fix.patch
+ "${FILESDIR}"/${P}-automake-1.13.patch
)
S="${WORKDIR}/${PN}"
)
src_prepare() {
+ default
+
mv configure.{in,ac} || die
# Build tests conditionally
sed -i -e '/^SUBDIRS/s/ tests//' Makefile.am || die
fi
- autotools-multilib_src_prepare
+ eautoreconf
}
multilib_src_configure() {
- local myeconfargs=(
- --without-idsa
- $(use_enable doc doxygen)
- )
- autotools-utils_src_configure
+ ECONF_SOURCE=${S} econf \
+ --without-idsa \
+ $(use_enable doc doxygen) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ # package installs .pc files
+ find "${D}" -name '*.la' -delete || die
}