From 350de3fcee39ac8d344a3eda3cb6bdd98cc698e7 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 16 Oct 2013 16:15:24 -0600 Subject: [PATCH] Convert discount to working recipe --- app-text/discount/discount-2.1.3.recipe | 74 +++++++++++++++++++++---- 1 file changed, 62 insertions(+), 12 deletions(-) diff --git a/app-text/discount/discount-2.1.3.recipe b/app-text/discount/discount-2.1.3.recipe index 0671c341d..01a6664bf 100644 --- a/app-text/discount/discount-2.1.3.recipe +++ b/app-text/discount/discount-2.1.3.recipe @@ -1,23 +1,73 @@ -DESCRIPTION="An implementation of John Gruber's Markdown text to html language written in C" +SUMMARY="An implementation of John Gruber's Markdown text to html language written in C" +DESCRIPTION=" +Markdown provides a library that gives you formatting functions +suitable for marking down entire documents or lines of text, a +command-line program that you can use to mark down documents +interactively or from a script, and a tiny (3 programs so far) suite +of example programs that show how to fully utilize the markdown +library." + HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/" SRC_URI="http://www.pell.portland.or.us/~orc/Code/discount/discount-2.1.3.tar.bz2" REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" +LICENSE="BSD (4-clause)" +COPYRIGHT="2007-2012 David Loren Parsons" +ARCHITECTURES="x86 x86_gcc2" CHECKSUM_MD5="a1a4eade44f8141e38f2be7f2ed56c98" +SOURCE_DIR="$portVersionedName" + +PROVIDES=" + discount = $portVersion compat >= 2 + cmd:markdown = $portVersion compat >= 2 + cmd:makepage = $portVersion compat >= 2 + cmd:mkd2html = $portVersion compat >= 2 + cmd:theme = $portVersion compat >= 2 + " + +REQUIRES=" + haiku >= $haikuVersion + " + +BUILD_REQUIRES="" + +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:make + cmd:gcc + cmd:g++ + cmd:ld + cmd:ar + cmd:ranlib + cmd:sed + cmd:find + " + +PROVIDES_devel=" + discount_devel = $portVersion compat >= 2 + devel:libmarkdown + " + +REQUIRES_devel=" + discount == $portVersion + " + BUILD() { - cd discount-2.1.3 - ./configure.sh --prefix=$(finddir B_COMMON_DIRECTORY) \ - --mandir=$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man \ - --enable-all-features - make + ./configure.sh --prefix=$prefix \ + --execdir=$binDir \ + --sbindir=$sbinDir \ + --confdir=$settingsDir \ + --libdir=$libDir \ + --libexecdir=$libExecDir \ + --mandir=$manDir \ + --enable-all-features \ + --enable-shared + make INCDIR=$includeDir } INSTALL() { - cd discount-2.1.3 - make install.everything + make install.everything INCDIR=$includeDir + prepareInstalledDevelLibs libmarkdown + packageEntries devel $developDir } -LICENSE="BSD (4-clause)" -COPYRIGHT="2007-2012 David Loren Parsons"