mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
md4c: new recipe.
This commit is contained in:
73
dev-util/md4c/md4c-0.3.4.recipe
Normal file
73
dev-util/md4c/md4c-0.3.4.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="A C Markdown parser"
|
||||
DESCRIPTION="MD4C is C Markdown parser which: \
|
||||
* aims to be compliant to the latest version of the CommonMark specification, \
|
||||
* supports some commonly requested and accepted extensions, \
|
||||
* is implemented in one source file and one header file, \
|
||||
* is easy to reuse in other projects, \
|
||||
* parses the complete document and calls callback functions, \
|
||||
* is performant"
|
||||
HOMEPAGE="https://github.com/mity/md4c/"
|
||||
COPYRIGHT="2016-2019 Martin Mitáš"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/release-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cf3f6b75d4b1304551a68272d3b403e4cd0952d976a280e8b7db68090354486f"
|
||||
SOURCE_DIR="md4c-release-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
md4c$secondaryArchSuffix = $portVersion
|
||||
cmd:md2html$secondaryArchSuffix
|
||||
lib:libmd4c$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
md4c${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmd4c$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
md4c$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. $cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libmd4c
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user