--- libhx-3.22.ebuild 2016-04-30 03:59:57.000000000 +0300 +++ libhx-3.22-r1.ebuild 2016-06-01 18:46:15.435584580 +0300 @@ -1,10 +1,10 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -inherit eutils +inherit autotools eutils DESCRIPTION="Platform independent library providing basic system functions" HOMEPAGE="http://libhx.sourceforge.net" @@ -13,19 +13,29 @@ LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" +IUSE="doc" DEPEND="app-arch/xz-utils" RDEPEND="" S="${WORKDIR}/libHX-${PV}" -src_configure() { - econf --docdir="/usr/share/doc/${PF}" +PATCHES=( "${FILESDIR}/${P}-no-lyx.patch" ) + +src_prepare() { + default + eautoreconf } src_install() { default - dodoc doc/*.txt + + if use doc; then + dodoc doc/*.txt + else + dodoc doc/changelog.txt + rm "${D}/usr/share/doc/${PF}/"*.pdf || die + fi + prune_libtool_files --all }