mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 11:38:07 -07:00
dev-cpp/antlr-cpp: add 4.13.2
Bug: https://bugs.gentoo.org/934688 Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
1328e9a037
commit
25587ebc84
@@ -1,2 +1,3 @@
|
||||
DIST antlr-2.7.7.tar.gz 1816180 BLAKE2B 3a9a51070f8651befeb4d22be344b544e119db34a78522828c2ffc3c481c14b9c7784f0a9997a61f6faedde5b6d1fe12214cfd84fb274f7065f3ffe6a44abf1c SHA512 faa72d2ddcba434ef1233e70c1549e63eba67c00793966322e821cf7f015cccb804448cb92d8fbef0429f59928fad65ec954f8ffbda0acbb8e983de0806d349d
|
||||
DIST antlr-cpp-4.11.1.zip 534105 BLAKE2B acf854bb8f10f8afdb8df9aa1fa92176edc66bfe3e33ca4b57e138e29f7d8512dc0a31aee057e5997ca9e37ca7934c459ef725e831d34166c189a2ed7e6fbc51 SHA512 47a4f714cf195e454b4f66cace58f6dbaa144f44c25594735fc91b37289e9b3c8b5259c03925316754d3eb33af3e0b3d3fb0c5c9aef818b239799e4f1fb49ce6
|
||||
DIST antlr4-cpp-runtime-4.13.2-source.zip 3182150 BLAKE2B 87667e77f79826396866c0c46541cbd5de6c104ab7e3f33d4a232f3721a8f3cf94c9e1a867dad923a8d5826aa8a49e7f2360ab03516085b4f5a12fd95f794d74 SHA512 2a67afaa6ef0d0b56455850caabc94042785a07036f53b5a195cfb105d9441d89a155dcd9c089da4344a644fa73a01da071a89266340dce621901e0c47233faa
|
||||
|
||||
48
dev-cpp/antlr-cpp/antlr-cpp-4.13.2.ebuild
Normal file
48
dev-cpp/antlr-cpp/antlr-cpp-4.13.2.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="test? ( dev-cpp/gtest )"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
src_unpack() {
|
||||
mkdir "${S}" || die
|
||||
cd "${S}" || die
|
||||
unpack "${P}.zip"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
sed -i -e "s|doc/libantlr$(ver_cut 1)|doc/${PF}|" CMakeLists.txt || die
|
||||
|
||||
# Give proper gtest find_package name
|
||||
sed -i \
|
||||
-e 's/gtest_main/GTest::gtest_main/' \
|
||||
-e '/FetchContent_Declare/,/^$/ {
|
||||
/\sURL https:\/\/github.com\/google\/googletest/aFIND_PACKAGE_ARGS NAMES GTest
|
||||
}' runtime/CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DANTLR_BUILD_CPP_TESTS=$(usex test)
|
||||
-DANTLR_BUILD_SHARED=ON
|
||||
-DANTLR_BUILD_STATIC=OFF
|
||||
-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user