diff options
author | Jakov Smolić <jsmolic@gentoo.org> | 2021-10-01 09:21:54 +0200 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2021-10-01 09:24:26 +0200 |
commit | c454b88c9586d36f19370b5718d7912d39ddd843 (patch) | |
tree | e863151b901980b8e9cf8aed7ace883fd2f9b15f | |
parent | dev-cpp/random123: Remove old 1.13.2 (diff) | |
download | gentoo-c454b88c9586d36f19370b5718d7912d39ddd843.tar.gz gentoo-c454b88c9586d36f19370b5718d7912d39ddd843.tar.bz2 gentoo-c454b88c9586d36f19370b5718d7912d39ddd843.zip |
dev-libs/pegtl: Version bump to 3.2.1
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
-rw-r--r-- | dev-libs/pegtl/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/pegtl/files/pegtl-3.2.1-werror.patch | 33 | ||||
-rw-r--r-- | dev-libs/pegtl/pegtl-3.2.1.ebuild | 27 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/pegtl/Manifest b/dev-libs/pegtl/Manifest index 11b322f3689d..8fa741678e18 100644 --- a/dev-libs/pegtl/Manifest +++ b/dev-libs/pegtl/Manifest @@ -1,2 +1,3 @@ DIST pegtl-2.8.3.tar.gz 201531 BLAKE2B 093d1b5f7d1f95fa00abdae9c24d24ba9ffd8510d6512c3460374f19b12d50403c19301645c5f6fc4d697cc687079c5b0d23c32b5775b30fbf05a154aeec2c19 SHA512 9f7644b86741dfe61716bbc43b2ea0a02cfc21eaf229c47cc71a49e2f08bf2c1ff37d2b2242a1bcf518b1893be6b82c27b0e9010a1b47ef8df87ffd90d280f71 DIST pegtl-3.2.0.tar.gz 233138 BLAKE2B 9be2cfcd90249fd57e08944533cb336f0617957c5571ef3d5371aa6da756a350ccb192b6e4e35da22b7b4e88b07e42f54eb5296c496a6b0feb544269a490f928 SHA512 3ec457e37d87d95f3a89c550abbf611a1ce094c2f05f6d23086e70079a9cabddb4c75e9121e764ad1768845a39e62ab49ca658ffed0f09d0e9a0e36501a162ae +DIST pegtl-3.2.1.tar.gz 244746 BLAKE2B f1d4ab0bfbc0be09affc83ffdf07796705be949e1addd06e241b8c06dd34bea3844a34b6dfe143269e110279615238afa606944c52af32f8cf6ea34398c40c7b SHA512 6297adea085bb3043a60c28eb3a868a7c2d203b351f907ea3fdc4ef34c63f87a5786ac7d297531f8b8c8c3414f5ddef658a025a7bae2515bdc750e974975f6ff diff --git a/dev-libs/pegtl/files/pegtl-3.2.1-werror.patch b/dev-libs/pegtl/files/pegtl-3.2.1-werror.patch new file mode 100644 index 000000000000..776936bd3991 --- /dev/null +++ b/dev-libs/pegtl/files/pegtl-3.2.1-werror.patch @@ -0,0 +1,33 @@ +--- a/Makefile ++++ b/Makefile +@@ -30,7 +30,7 @@ endif + # changed if desired. + + CPPFLAGS ?= -pedantic +-CXXFLAGS ?= -Wall -Wextra -Wshadow -Werror -O3 $(MINGW_CXXFLAGS) ++CXXFLAGS ?= -Wall -Wextra -Wshadow $(MINGW_CXXFLAGS) + + HEADERS := $(shell find include -name '*.hpp') + SOURCES := $(shell find src -name '*.cpp') +--- a/src/example/pegtl/CMakeLists.txt ++++ b/src/example/pegtl/CMakeLists.txt +@@ -60,7 +60,7 @@ foreach(examplesourcefile ${example_sources}) + if(MSVC) + target_compile_options(${exename} PRIVATE /W4 /WX /utf-8) + else() +- target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow -Werror) ++ target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow ) + endif() + endforeach() + +--- a/src/test/pegtl/CMakeLists.txt ++++ b/src/test/pegtl/CMakeLists.txt +@@ -150,7 +150,7 @@ foreach(testsourcefile ${test_sources}) + if(MSVC) + target_compile_options(${exename} PRIVATE /W4 /WX /utf-8) + else() +- target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow -Werror) ++ target_compile_options(${exename} PRIVATE -pedantic -Wall -Wextra -Wshadow ) + endif() + if(ANDROID) + add_test(NAME ${exename} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ${CMAKE_COMMAND} "-DANDROID_NDK=${ANDROID_NDK}" "-DTEST_RESOURCES_DIR=${CMAKE_SOURCE_DIR}" "-DTEST_RESOURCES=src/test/pegtl/data;src/test/pegtl/file_data.txt;Makefile" "-DUNITTEST=${exename}" -P ${CMAKE_CURRENT_SOURCE_DIR}/ExecuteOnAndroid.cmake) diff --git a/dev-libs/pegtl/pegtl-3.2.1.ebuild b/dev-libs/pegtl/pegtl-3.2.1.ebuild new file mode 100644 index 000000000000..09fd47749d97 --- /dev/null +++ b/dev-libs/pegtl/pegtl-3.2.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Header-only library for creating parsers according to Parsing Expression Grammar" +HOMEPAGE="https://github.com/taocpp/PEGTL" +SRC_URI="https://github.com/taocpp/PEGTL/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P^^}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +PATCHES=( + "${FILESDIR}"/${P}-werror.patch +) + +src_configure() { + local mycmakeargs=( + -DPEGTL_INSTALL_CMAKE_DIR="$(get_libdir)/cmake/${PN}" + -DPEGTL_INSTALL_DOC_DIR="share/doc/${PF}" + ) + cmake_src_configure +} |