Skip to content

Commit

Permalink
(conan-io#25334) taocpp-pegtl: add new version 3.2.8
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto de Gracia Herranz <ernestodegraciah@gmail.com>
  • Loading branch information
toge and ErniGH authored Sep 23, 2024
1 parent 8350209 commit 359822d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions recipes/taocpp-pegtl/3.x.x/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"3.2.8":
url: "https://github.com/taocpp/PEGTL/archive/3.2.8.tar.gz"
sha256: "319e8238daebc3a163f60c88c78922a8012772076fdd64a8dafaf5619cd64773"
"3.2.7":
url: "https://github.com/taocpp/PEGTL/archive/3.2.7.tar.gz"
sha256: "d6cd113d8bd14e98bcbe7b7f8fc1e1e33448dc359e8cd4cca30e034ec2f0642d"
Expand Down
8 changes: 6 additions & 2 deletions recipes/taocpp-pegtl/3.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@

class TaoCPPPEGTLConan(ConanFile):
name = "taocpp-pegtl"
description = "Parsing Expression Grammar Template Library"
license = "MIT"
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/taocpp/pegtl"
description = "Parsing Expression Grammar Template Library"
topics = ("peg", "header-only", "cpp",
"parsing", "cpp17", "cpp11", "grammar")
no_copy_source = True
package_type = "header-library"
settings = "os", "arch", "compiler", "build_type"
options = {
"boost_filesystem": [True, False],
}
default_options = {
"boost_filesystem": False,
}
no_copy_source = True

def requirements(self):
if self.options.boost_filesystem:
Expand Down Expand Up @@ -75,6 +76,9 @@ def package(self):
copy(self, "*", dst=os.path.join(self.package_folder, "include"), src=os.path.join(self.source_folder, "include"))

def package_info(self):
self.cpp_info.bindirs = []
self.cpp_info.libdirs = []

self.cpp_info.set_property("cmake_file_name", "pegtl")
self.cpp_info.set_property("cmake_target_name", "taocpp::pegtl")
# TODO: back to global scope in conan v2 once cmake_find_package_* generators removed
Expand Down
2 changes: 2 additions & 0 deletions recipes/taocpp-pegtl/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"3.2.8":
folder: "3.x.x"
"3.2.7":
folder: "3.x.x"
"3.2.6":
Expand Down

0 comments on commit 359822d

Please sign in to comment.