summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-10-15 20:02:31 -0700
committerDavid Seifert <soap@gentoo.org>2017-10-15 20:02:31 -0700
commita00edc46078dfe1e74c306ddf9f0e893e9eb71b1 (patch)
treed4787761247c9e01ab3b7cba41e4c3da40dbcd62 /sci-libs
parentsci-libs/lapack-reference: [QA] Add cmake-utils_src_prepare (diff)
downloadgentoo-a00edc46078dfe1e74c306ddf9f0e893e9eb71b1.tar.gz
gentoo-a00edc46078dfe1e74c306ddf9f0e893e9eb71b1.tar.bz2
gentoo-a00edc46078dfe1e74c306ddf9f0e893e9eb71b1.zip
sci-libs/libgeodecomp: [QA] Add cmake-utils_src_prepare
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild b/sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild
index 095cf09eafa5..739df1ee915c 100644
--- a/sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild
+++ b/sci-libs/libgeodecomp/libgeodecomp-0.3.1.ebuild
@@ -20,9 +20,11 @@ DEPEND="${RDEPEND}
examples? ( !sys-cluster/mpich2 )"
S="${WORKDIR}/${P}/src"
+PATCHES=( "${FILESDIR}/libflatarray.patch" )
src_prepare() {
- epatch "${FILESDIR}/libflatarray.patch"
+ cmake-utils_src_prepare
+
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"