commit: 19fd8f929f791c589312f4c54634bfdd6cb41d5f Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> AuthorDate: Tue Sep 10 17:17:00 2019 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Tue Sep 10 17:17:00 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19fd8f92
media-libs/glm: respect EPREFIX Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> media-libs/glm/files/{glm.pc => glm.pc.in} | 4 ++-- media-libs/glm/glm-0.9.9.6.ebuild | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/media-libs/glm/files/glm.pc b/media-libs/glm/files/glm.pc.in similarity index 64% rename from media-libs/glm/files/glm.pc rename to media-libs/glm/files/glm.pc.in index e3bb5acc1af..fc5c7bb7f90 100644 --- a/media-libs/glm/files/glm.pc +++ b/media-libs/glm/files/glm.pc.in @@ -1,7 +1,7 @@ -prefix=/usr +prefix=@CMAKE_INSTALL_PREFIX@ includedir=${prefix}/include Name: GLM Description: OpenGL Mathematics -Version: 0.9.9 +Version: @GLM_VERSION@ Cflags: -I${includedir} diff --git a/media-libs/glm/glm-0.9.9.6.ebuild b/media-libs/glm/glm-0.9.9.6.ebuild index 8b84a358e2b..89d9894cf71 100644 --- a/media-libs/glm/glm-0.9.9.6.ebuild +++ b/media-libs/glm/glm-0.9.9.6.ebuild @@ -16,6 +16,14 @@ IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86 RDEPEND="virtual/opengl" +src_prepare() { + cmake-utils_src_prepare + sed \ + -e "s:@CMAKE_INSTALL_PREFIX@:${EPREFIX}/usr:" \ + -e "s:@GLM_VERSION@:0.9.9:" \ + "${FILESDIR}"/glm.pc.in > glm.pc || die +} + src_configure() { if use test; then local mycmakeargs=( @@ -34,5 +42,5 @@ src_install() { doheader -r glm dodoc -r *md doc/* insinto /usr/$(get_libdir)/pkgconfig - doins "${FILESDIR}"/glm.pc + doins glm.pc }