media-libs/libgig: add LDPATH env.d file so that libgig.so can be found at runtime
authorAlexis Ballier <aballier@gentoo.org>
Tue, 30 Aug 2016 12:48:08 +0000 (14:48 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 30 Aug 2016 12:49:00 +0000 (14:49 +0200)
Package-Manager: portage-2.3.0

media-libs/libgig/libgig-4.0.0-r1.ebuild [moved from media-libs/libgig/libgig-4.0.0.ebuild with 78% similarity]

similarity index 78%
rename from media-libs/libgig/libgig-4.0.0.ebuild
rename to media-libs/libgig/libgig-4.0.0-r1.ebuild
index 2bce38d5f1353d66d6d46e09d7e49ba543e3dc5a..db4e49d73e3b0d20350848834d3a4e509a5dc534 100644 (file)
@@ -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
 
-inherit eutils
+inherit eutils multilib
 
 DESCRIPTION="a C++ library for loading Gigasampler files and DLS (Downloadable Sounds) Level 1/2 files"
 HOMEPAGE="http://www.linuxsampler.org/libgig/"
@@ -33,6 +33,10 @@ src_install() {
        emake DESTDIR="${D}" install
        dodoc AUTHORS ChangeLog NEWS README TODO
 
+       # For libgig.so to be found at runtime
+       printf "LDPATH=\"${EPREFIX}/usr/$(get_libdir)/libgig/\"" > 99${PN}
+       doenvd "99${PN}"
+
        if use doc ; then
                dohtml -r doc/html/*
        fi