-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
+EAPI=7
-inherit autotools-utils
+inherit autotools
DESCRIPTION="Standard MIDI File format library"
HOMEPAGE="http://libsmf.sourceforge.net/api/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 x86"
-IUSE="doc readline static-libs"
+IUSE="doc readline"
-RDEPEND=">=dev-libs/glib-2.2:2
- readline? ( sys-libs/readline )"
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )
- virtual/pkgconfig"
-
-DOCS=( NEWS TODO )
+RDEPEND="
+ dev-libs/glib:2
+ readline? ( sys-libs/readline:= )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
src_configure() {
- local myeconfargs=(
+ econf \
+ --disable-static \
$(use_with readline)
- )
- autotools-utils_src_configure
}
src_compile() {
- autotools-utils_src_compile
+ default
- if use doc ; then
+ if use doc; then
doxygen doxygen.cfg || die
fi
}
src_install() {
- autotools-utils_src_install
- use doc && dohtml -r api
+ use doc && local HTML_DOCS=( api )
+ default
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
}