sci-libs/libgeodecomp: fixed multilib-check
authorSlawomir Lis <slis@gentoo.org>
Fri, 1 Sep 2017 07:54:03 +0000 (09:54 +0200)
committerSlawomir Lis <slis@gentoo.org>
Fri, 1 Sep 2017 07:54:03 +0000 (09:54 +0200)
Bug report 629478

Package-Manager: Portage-2.3.8, Repoman-2.3.3

sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild

index 15b6687669b3676618ddfd94f0cd8331d524323c..095cf09eafa5257e6fc10b4b48415d63bd156e06 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -23,6 +23,9 @@ S="${WORKDIR}/${P}/src"
 
 src_prepare() {
        epatch "${FILESDIR}/libflatarray.patch"
+       sed -i 's/libdir=${CMAKE_INSTALL_PREFIX}\/lib/libdir=\/usr\/'$(get_libdir)'/' "${S}/CMakeLists.txt"
+       sed -i 's/install(TARGETS geodecomp DESTINATION lib)/install(TARGETS geodecomp DESTINATION '$(get_libdir)')/' "${S}/CMakeLists.txt"
+
        if ! use examples ; then
                sed -i 's/examples//g' CMakeLists.txt
        fi