dev-db/xbase: Update HOMEPAGE, dohtml -> HTML_DOCS, drop ltprune.eclass
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 3 Jun 2017 19:57:22 +0000 (21:57 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 3 Jun 2017 21:26:22 +0000 (23:26 +0200)
Merging remaining changes taken from PR#4182 with partially overlapping
existing work from tree and adding changes of my own.

Gentoo-bug: 594174
Thanks-to: Kacper KoƂodziej <kacper@kolodziej.in>
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4182

dev-db/xbase/xbase-3.1.2.ebuild

index eba9889c70a04c3b75aae55fa35873907d7aacc5..c38abe5a5f246d329d2c109af3eb9b63e6c375f2 100644 (file)
@@ -2,14 +2,15 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools ltprune
+
+inherit autotools
 
 DESCRIPTION="xbase (i.e. dBase, FoxPro, etc.) compatible C++ class library"
-HOMEPAGE="http://linux.techass.com/projects/xdb/"
+HOMEPAGE="https://sourceforge.net/projects/xdb/ http://linux.techass.com/projects/xdb/"
 SRC_URI="mirror://sourceforge/xdb/${PN}64-${PV}.tar.gz"
 
-SLOT="0"
 LICENSE="GPL-2"
+SLOT="0"
 KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~x86-fbsd"
 IUSE="doc static-libs"
 
@@ -39,15 +40,22 @@ src_configure() {
 }
 
 src_install() {
-       default
-       prune_libtool_files
+       if use doc; then
+               HTML_DOCS+=( html/. )
+               if [[ -e examples/.libs ]] ; then
+                       rm -r examples/.libs || die
+               fi
+               dodoc -r examples
+       fi
 
-       # media-tv/linuxtv-dvb-apps collision, bug #208596
-       mv "${ED}/usr/bin/zap" "${ED}/usr/bin/${PN}-zap" || die
+       default
+       find "${D}" -name '*.la' -delete || die
 
        if use doc; then
-               dohtml html/*
-               insinto /usr/share/doc/${PF}/examples
-               doins examples/*
+               rm "${ED%/}"/usr/share/doc/${PF}/html/copying.lib || die
+               rm "${ED%/}"/usr/share/doc/${PF}/html/Makefile{,.in,.am} || die
        fi
+
+       # media-tv/linuxtv-dvb-apps collision, bug #208596
+       mv "${ED%/}"/usr/bin/{,${PN}-}zap || die
 }