summaryrefslogtreecommitdiff
path: root/dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-02-07 18:39:11 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2023-02-07 18:41:34 +0100
commit2de480c1daabf3f344f99fed5bd06221f968e872 (patch)
tree39949a6a85da6cf272a52ba7d14b7cb6bce1f86e /dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild
parentef2060d6f4c1f97775f97353e9481a913a7547f8 (diff)
downloadgentoo-2de480c1daabf3f344f99fed5bd06221f968e872.tar.gz
gentoo-2de480c1daabf3f344f99fed5bd06221f968e872.tar.bz2
gentoo-2de480c1daabf3f344f99fed5bd06221f968e872.zip
dev-cpp/antlr-cpp: Revert "drop 4.7.2"
Required by <dev-cpp/antlr-cpp-4.8 version cap of dev-db/mysql-workbench. Bug: https://bugs.gentoo.org/892285 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild')
-rw-r--r--dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild b/dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild
new file mode 100644
index 000000000000..52506025d51d
--- /dev/null
+++ b/dev-cpp/antlr-cpp/antlr-cpp-4.7.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="The ANTLR 4 C++ Runtime"
+HOMEPAGE="https://www.antlr.org/"
+SRC_URI="https://www.antlr.org/download/antlr4-cpp-runtime-${PV}-source.zip -> ${P}.zip"
+S="${WORKDIR}"
+
+LICENSE="BSD"
+SLOT="4"
+KEYWORDS="amd64 ~arm ~ppc x86"
+
+BDEPEND="app-arch/unzip"
+
+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/${PF}#g" \
+ "${S}"/CMakeLists.txt || die "failed sed"
+
+ cmake_src_prepare
+}