sci-libs/plplot: Fix .pc file by using full paths
authorDavid Seifert <soap@gentoo.org>
Mon, 20 Feb 2017 19:29:37 +0000 (20:29 +0100)
committerDavid Seifert <soap@gentoo.org>
Mon, 20 Feb 2017 19:33:07 +0000 (20:33 +0100)
* Use CMAKE_INSTALL_LIBDIR with a full path
* java-pkg_regso is not EPREFIX aware

Bug: https://bugs.gentoo.org/show_bug.cgi?id=610066

Package-Manager: Portage-2.3.3, Repoman-2.3.1

sci-libs/plplot/plplot-5.12.0-r1.ebuild [moved from sci-libs/plplot/plplot-5.12.0.ebuild with 96% similarity]

similarity index 96%
rename from sci-libs/plplot/plplot-5.12.0.ebuild
rename to sci-libs/plplot/plplot-5.12.0-r1.ebuild
index 9cf3d800c8c9441ddb60c7735b10dfb5ff7ec8ce..92a67705fb3feb652202de3ef24c3512f6a1dba6 100644 (file)
@@ -143,6 +143,10 @@ src_configure() {
        append-cxxflags -std=c++11
 
        local mycmakeargs=(
+               # The build system does not honour CMAKE_INSTALL_LIBDIR as a
+               # relative dir, which is against the spirit of GNUInstallDirs, #610066
+               -DCMAKE_INSTALL_LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+
                ## Features
                -DBUILD_DOC=OFF
                -DBUILD_DOX_DOC=OFF
@@ -268,6 +272,6 @@ src_install() {
 
        if use java; then
                java-pkg_dojar "${BUILD_DIR}"/examples/java/${PN}.jar
-               java-pkg_regso /usr/$(get_libdir)/jni/plplotjavac_wrap.so
+               java-pkg_regso "${EPREFIX}"/usr/$(get_libdir)/jni/plplotjavac_wrap.so
        fi
 }