pegtl: version bump (#4621)
* pegtl: version bump * pegtl: added 2.1.4 * pegtl: reorder versions * pegtl: fix flake8
This commit is contained in:
parent
158f99f9ad
commit
ddb0704028
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
|
|
||||||
# package has a Makefile, but only to build examples
|
# package has a Makefile, but only to build examples
|
||||||
class Pegtl(Package):
|
class Pegtl(CMakePackage):
|
||||||
"""The Parsing Expression Grammar Template Library (PEGTL) is a
|
"""The Parsing Expression Grammar Template Library (PEGTL) is a
|
||||||
zero-dependency C++11 header-only library for creating parsers
|
zero-dependency C++11 header-only library for creating parsers
|
||||||
according to a Parsing Expression Grammar (PEG).
|
according to a Parsing Expression Grammar (PEG).
|
||||||
@ -36,9 +36,15 @@ class Pegtl(Package):
|
|||||||
homepage = "https://github.com/taocpp/PEGTL"
|
homepage = "https://github.com/taocpp/PEGTL"
|
||||||
url = "https://github.com/taocpp/PEGTL/tarball/1.3.1"
|
url = "https://github.com/taocpp/PEGTL/tarball/1.3.1"
|
||||||
|
|
||||||
version('1.3.1', '11efc4beac8f4f5153466d56074e9f0c')
|
version('develop', git='https://github.com/taocpp/PEGTL', branch='master')
|
||||||
|
version('2.1.4', 'e5288b6968e6e910287fce93dc5557bf')
|
||||||
|
version('2.0.0', 'c772828e7188459338a920c21f9896db')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
variant('debug', default=False, description='Build debug version')
|
||||||
mkdirp(prefix.include)
|
|
||||||
install_tree('pegtl', join_path(prefix.include, 'pegtl'))
|
def build_type(self):
|
||||||
install('pegtl.hh', prefix.include)
|
spec = self.spec
|
||||||
|
if '+debug' in spec:
|
||||||
|
return 'Debug'
|
||||||
|
else:
|
||||||
|
return 'Release'
|
||||||
|
Loading…
Reference in New Issue
Block a user