From: Tupone Alfredo Date: Tue, 10 Sep 2019 17:17:00 +0000 (+0200) Subject: media-libs/glm: respect EPREFIX X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=19fd8f929f791c589312f4c54634bfdd6cb41d5f;p=gentoo.git media-libs/glm: respect EPREFIX Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Alfredo Tupone --- 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 e3bb5acc1aff..fc5c7bb7f90c 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 8b84a358e2b7..89d9894cf71e 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 }