From 8b805bf3d9412cbf342cc9249ae215032b976aab Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Fri, 3 May 2013 23:57:46 +0200 Subject: [PATCH] Add recipe for asciidoc (required to build git documentation) --- app-text/asciidoc/asciidoc-8.6.8.recipe | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 app-text/asciidoc/asciidoc-8.6.8.recipe diff --git a/app-text/asciidoc/asciidoc-8.6.8.recipe b/app-text/asciidoc/asciidoc-8.6.8.recipe new file mode 100644 index 000000000..6fa1f00c2 --- /dev/null +++ b/app-text/asciidoc/asciidoc-8.6.8.recipe @@ -0,0 +1,51 @@ +SUMMARY="Highly configurable text format for writing documentation" +DESCRIPTION=" + AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, man page. + + AsciiDoc is highly configurable: both the AsciiDoc source file syntax and the backend output markups (which can be almost any type of SGML/XML markup) can be customized and extended by the user." +HOMEPAGE="http://asciidoc.org" +LICENSE="GNU GPL v2" +COPYRIGHT="2002-2011 Stuart Rackham" +SRC_URI="http://sourceforge.net/projects/asciidoc/files/asciidoc/8.6.8/asciidoc-8.6.8.tar.gz" +CHECKSUM_MD5="6ffff1ab211f30481741ce4d1e4b12bf" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86" + +PROVIDES=" + asciidoc = $portVersion compat >= 8.6.8 + cmd:a2x = $portVersion compat >= 8 + cmd:asciidoc = $portVersion compat >= 8 + " + +REQUIRES=" + haiku >= $haikuVersion + " +BUILD_REQUIRES=" + cmd:gcc + cmd:ld + cmd:make + cmd:sed + " +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + " + +SOURCE_DIR="$portVersionedName" + +PATCH() +{ + sed -i -e 's|/usr/bin/env|/bin/env|' *.py +} + +BUILD() +{ + # TODO: separate data and configuration files. + runConfigure ./configure \ + --sysconfdir=$dataDir/asciidoc + make +} + +INSTALL() +{ + make install +}