From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 24AE3158018 for ; Fri, 1 Oct 2021 07:24:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 145F1E08EF; Fri, 1 Oct 2021 07:24:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C70B2E08EF for ; Fri, 1 Oct 2021 07:24:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C38C9342C9D for ; Fri, 1 Oct 2021 07:24:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54DCE11F for ; Fri, 1 Oct 2021 07:24:44 +0000 (UTC) From: "Jakov Smolić" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jakov Smolić" Message-ID: <1633073066.c454b88c9586d36f19370b5718d7912d39ddd843.jsmolic@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pegtl/, dev-libs/pegtl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/pegtl/Manifest dev-libs/pegtl/files/pegtl-3.2.1-werror.patch dev-libs/pegtl/pegtl-3.2.1.ebuild X-VCS-Directories: dev-libs/pegtl/files/ dev-libs/pegtl/ X-VCS-Committer: jsmolic X-VCS-Committer-Name: Jakov Smolić X-VCS-Revision: c454b88c9586d36f19370b5718d7912d39ddd843 X-VCS-Branch: master Date: Fri, 1 Oct 2021 07:24:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6c318b24-9aab-4e49-9436-fd55ca4ea048 X-Archives-Hash: 0b4fa3750c7e61d27755891c9343a204 commit: c454b88c9586d36f19370b5718d7912d39ddd843 Author: Jakov Smolić gentoo org> AuthorDate: Fri Oct 1 07:21:54 2021 +0000 Commit: Jakov Smolić gentoo org> CommitDate: Fri Oct 1 07:24:26 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c454b88c dev-libs/pegtl: Version bump to 3.2.1 Signed-off-by: Jakov Smolić gentoo.org> dev-libs/pegtl/Manifest | 1 + dev-libs/pegtl/files/pegtl-3.2.1-werror.patch | 33 +++++++++++++++++++++++++++ dev-libs/pegtl/pegtl-3.2.1.ebuild | 27 ++++++++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/dev-libs/pegtl/Manifest b/dev-libs/pegtl/Manifest index 11b322f3689..8fa741678e1 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 00000000000..776936bd399 --- /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 00000000000..09fd47749d9 --- /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 +}