From 5cc8e256c781c756303a78d8f61ab11b2b3984e7 Mon Sep 17 00:00:00 2001 From: Tudor Nazarie Date: Fri, 6 Jan 2017 21:08:09 +0200 Subject: [PATCH] unrtf: added recipe (GCI 2016) (#991) --- app-text/unrtf/unrtf-0.21.9.recipe | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 app-text/unrtf/unrtf-0.21.9.recipe diff --git a/app-text/unrtf/unrtf-0.21.9.recipe b/app-text/unrtf/unrtf-0.21.9.recipe new file mode 100644 index 000000000..8b139be23 --- /dev/null +++ b/app-text/unrtf/unrtf-0.21.9.recipe @@ -0,0 +1,63 @@ +SUMMARY="Rich Text Format command line converter" +DESCRIPTION="UnRTF is a command-line program written in C which converts \ +documents in Rich Text Format (.rtf) to HTML, LaTeX, troff macros, and RTF \ +itself." +HOMEPAGE="https://www.gnu.org/software/unrtf/" +COPYRIGHT="2001-2015 Free Software Foundation" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://www.gnu.org/software/unrtf/unrtf-$portVersion.tar.gz" +CHECKSUM_SHA256="22a37826f96d754e335fb69f8036c068c00dd01ee9edd9461a36df0085fb8ddd" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="!x86_gcc2 x86" + +if [ "$targetArchitecture" != x86_gcc2 ]; then + commandBinDir=$binDir +else + commandBinDir=$prefix/bin +fi + +PROVIDES=" + unrtf$secondaryArchSuffix = $portVersion + cmd:unrtf = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libiconv$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autom4te + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + aclocal + automake --add-missing + runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir\ + LIBS=-liconv + make $jobArgs +} + +INSTALL() +{ + make install + sed -i \ + -e "s|$dataDir/|/system/$relativeDataDir/|" \ + $manDir/man1/unrtf.1 +} + +TEST() +{ + make check +}