diff options
Diffstat (limited to 'media-libs/libspnav/libspnav-0.2.2.ebuild')
-rw-r--r-- | media-libs/libspnav/libspnav-0.2.2.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/media-libs/libspnav/libspnav-0.2.2.ebuild b/media-libs/libspnav/libspnav-0.2.2.ebuild index cae2b3e..c3aaa0c 100644 --- a/media-libs/libspnav/libspnav-0.2.2.ebuild +++ b/media-libs/libspnav/libspnav-0.2.2.ebuild @@ -4,7 +4,7 @@ EAPI="4" -inherit eutils toolchain-funcs +inherit multilib eutils toolchain-funcs MY_PN='spacenav' DESCRIPTION="The libspnav provides a replacement of the magellan library with cleaner and more orthogonal API." @@ -32,3 +32,17 @@ src_configure() { src_compile() { emake CC=$(tc-getCC) } + +src_install() { + default + + # Use proper libdir + if [[ $(get_libdir) != lib ]]; then + mv "${D}"/usr/{lib,$(get_libdir)} || die + fi + + # Create missing symlinks + local target=$(basename "${D}"/usr/$(get_libdir)/libspnav.so.*) + dosym ${target} /usr/$(get_libdir)/libspnav.so.0 || die + dosym ${target} /usr/$(get_libdir)/libspnav.so || die +} |