mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
multimarkdown: new recipe (#3504)
This commit is contained in:
83
app-text/multimarkdown/multimarkdown-6.4.0.recipe
Normal file
83
app-text/multimarkdown/multimarkdown-6.4.0.recipe
Normal file
@@ -0,0 +1,83 @@
|
||||
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="1"
|
||||
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="!x86_gcc2 ?x86 x86_64"
|
||||
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
|
||||
}
|
||||
36
app-text/multimarkdown/patches/multimarkdown-6.4.0.patchset
Normal file
36
app-text/multimarkdown/patches/multimarkdown-6.4.0.patchset
Normal file
@@ -0,0 +1,36 @@
|
||||
From f9d04c1c1366fc68e1051037de62650347ab6f52 Mon Sep 17 00:00:00 2001
|
||||
From: My Name <mymail@mydomain.org>
|
||||
Date: Tue, 25 Dec 2018 12:56:48 +0000
|
||||
Subject: [PATCH] applying patch multimarkdown-6.4.0.patch
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
tests/MarkdownTest.pl | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a738a35..83fe951 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -531,7 +531,7 @@ ADD_PUBLIC_HEADER(libMultiMarkdown Sources/libMultiMarkdown/include/version.h)
|
||||
)
|
||||
#
|
||||
# Link the library to the app?
|
||||
- target_link_libraries(multimarkdown libMultiMarkdown)
|
||||
+ target_link_libraries(multimarkdown libMultiMarkdown bsd)
|
||||
# endif()
|
||||
|
||||
# Xcode settings for fat binaries
|
||||
diff --git a/tests/MarkdownTest.pl b/tests/MarkdownTest.pl
|
||||
index 36b25d7..cdefc90 100755
|
||||
--- a/tests/MarkdownTest.pl
|
||||
+++ b/tests/MarkdownTest.pl
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl
|
||||
+#!/bin/env perl
|
||||
|
||||
#
|
||||
# MarkdownTester -- Run tests for Markdown implementations
|
||||
--
|
||||
2.19.1
|
||||
|
||||
Reference in New Issue
Block a user