dev-cpp/antlr-cpp: clear QA warnings.
authorPatrice Clement <monsieurp@gentoo.org>
Sun, 4 Nov 2018 18:08:55 +0000 (19:08 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 4 Nov 2018 18:09:25 +0000 (19:09 +0100)
Closes: https://bugs.gentoo.org/663892
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

dev-cpp/antlr-cpp/antlr-cpp-4.7.1.ebuild

index 173656e8e08c5a2c2d14e92e2400e8e6623d4436..4c54326473f23533879218493b81967c39fd1568 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -15,3 +15,13 @@ KEYWORDS="~amd64 ~x86"
 DEPEND="app-arch/zip"
 
 S="${WORKDIR}"
+
+src_prepare() {
+       sed -i -e "s#DESTINATION lib#DESTINATION $(get_libdir)#" \
+               "${S}"/runtime/CMakeLists.txt || die "failed sed"
+
+       sed -i -e "s#share/doc/libantlr4#share/doc/${P}#g" \
+               "${S}"/CMakeLists.txt || die "failed sed"
+
+       cmake-utils_src_prepare
+}