0
0
Fork 0
haikuports/app-text/multimarkdown/multimarkdown-6.4.0.recipe

84 lines
2.0 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

SUMMARY="Lightweight markup processor to produce HTML, LaTeX, and more"
DESCRIPTION="MultiMarkdown, or MMD, is a tool to help turn minimally marked-up \
plain text into well formatted documents, including HTML, PDF (by way of LaTeX), \
OPML, or OpenDocument (specifically, Flat OpenDocument or .fodt, which can \
in turn be converted into RTF, Microsoft Word, or virtually any other \
word-processing format)."
HOMEPAGE="https://fletcherpenney.net/multimarkdown/"
COPYRIGHT="2016-2018 Fletcher T. Penney
2005-2016 Troy D. Hanson
2013-2014 RAD Game Tools and Valve Software
2010-2014 Rich Geldreich and Tenacious Software LLC
1998-2001,2003-2011,2013 Stewart Heitmann"
LICENSE="BSD (3-clause)
MIT
Zlib"
REVISION="2"
SOURCE_URI="https://github.com/fletcher/MultiMarkdown-6/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="fa9daa089bc0f8bc1f69fd7365778d59210b446ce7008d03b87fb572df8ff5d3"
SOURCE_FILENAME="multimarkdown-$portVersion.tar.gz"
SOURCE_DIR="MultiMarkdown-6-$portVersion"
PATCHES="multimarkdown-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2 ?x86"
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
fi
PROVIDES="
multimarkdown$secondaryArchSuffix = $portVersion
cmd:markdown = $portVersion
cmd:mmd = $portVersion
cmd:mmd2all = $portVersion
cmd:mmd2epub = $portVersion
cmd:mmd2fodt = $portVersion
cmd:mmd2odt = $portVersion
cmd:mmd2opml = $portVersion
cmd:mmd2pdf = $portVersion
cmd:mmd2tex = $portVersion
cmd:multimarkdown = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
TEST_REQUIRES="
cmd:perl
"
BUILD()
{
cd build
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_BUILD_TYPE=Release ../
make $jobArgs
}
INSTALL()
{
cd build
make install
mkdir -p $dataDir
mv $prefix/share/* $dataDir
rmdir $prefix/share
}
TEST()
{
cd build
make test
}