45 lines
993 B
Bash
45 lines
993 B
Bash
SUMMARY="The Parsing Expression Grammar Template Library"
|
|
DESCRIPTION="The Parsing Expression Grammar Template Library (PEGTL) is a \
|
|
zero-dependency C++11 header-only parser combinator library for creating \
|
|
parsers according to a Parsing Expression Grammar (PEG)."
|
|
HOMEPAGE="https://github.com/taocpp/PEGTL"
|
|
COPYRIGHT="2014-2018 Dr. Colin Hirsch and Daniel Frey"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a734e4e7a913e1243bc066a50a8448c241b036e017a26c6d00d366c11ac7dd05"
|
|
SOURCE_FILENAME="PEGTL-$portVersion.tar.gz"
|
|
SOURCE_DIR="PEGTL-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
pegtl = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++
|
|
cmd:make
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
install -d $includeDir $developDocDir/examples
|
|
cp -r include/tao/* $includeDir
|
|
install -t $developDocDir README.md
|
|
install -t $developDocDir/examples src/example/pegtl/*
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cmake .
|
|
make $jobArgs
|
|
}
|