commit:     186d007e643a33ece440c606560d9995ec18b477
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Mar  3 15:14:33 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Mar  3 15:14:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=186d007e

sci-libs/ann: Fix issue with installing docs

if you cd in the ebuild, please remeber to cd back to ${S}
otherwise things like einstalldocs may fail because it is
being run in the wrong dir

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 sci-libs/ann/ann-1.1.2_p7.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sci-libs/ann/ann-1.1.2_p7.ebuild b/sci-libs/ann/ann-1.1.2_p7.ebuild
index 29ae28e..b13f224 100644
--- a/sci-libs/ann/ann-1.1.2_p7.ebuild
+++ b/sci-libs/ann/ann-1.1.2_p7.ebuild
@@ -16,8 +16,10 @@ 
http://cdn-fastly.deb.debian.org/debian/pool/main/a/${PN}/${PN}_${MY_PV}+doc-${P
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
+
 IUSE="debug test"
 RESTRICT="!test? ( test )"
+
 RDEPEND=""
 DEPEND=""
 BDEPEND="dev-util/quilt"
@@ -44,10 +46,11 @@ src_test() {
        cd test
        ./ann_test < test1.in > /dev/null || die
        ./ann_test < test2.in > /dev/null || die
+       cd ..
 }
 
 src_install() {
-       emake DESTDIR="${D}" install
+       default
 
        insinto /usr/include/ANN
        doins -r include/ANN/.
@@ -64,8 +67,7 @@ src_install() {
        doman ann_sample.1
        doman ann_test.1
        doman ann2fig.1
-
-       einstalldocs
+       cd "${S}"
 
        find "${D}" -name '*.la' -delete || die
 }

Reply via email to