diff --git a/app-text/catdoc/catdoc-0.95.recipe b/app-text/catdoc/catdoc-0.95.recipe new file mode 100644 index 000000000..e404ffd22 --- /dev/null +++ b/app-text/catdoc/catdoc-0.95.recipe @@ -0,0 +1,59 @@ +SUMMARY="Converter for Microsoft Word, Excel, PowerPoint and RTF files to text" +DESCRIPTION="CATDOC is program which reads MS-Word file and prints readable ASCII text to stdout, \ +just like Unix cat command. It also able to produce correct escape sequences if some UNICODE \ +charachers have to be represented specially in your typesetting system such as (La)TeX. + +It features runtime configuration, proper charset handling, user-definable output formats and \ +support for Word97 files, which contain UNICODE internally." +HOMEPAGE="https://www.wagner.pp.ru/~vitus/software/catdoc/" +COPYRIGHT="2016 Victor Wagner" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="http://ftp.wagner.pp.ru/pub/catdoc/catdoc-$portVersion.tar.gz" +CHECKSUM_SHA256="514a84180352b6bf367c1d2499819dfa82b60d8c45777432fa643a5ed7d80796" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandBinDir=$binDir +commandSuffix=$secondaryArchSuffix +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + catdoc$secondaryArchSuffix = $portVersion + cmd:catdoc$commandSuffix = $portVersion + cmd:catppt$commandSuffix = $portVersion + cmd:xls2csv$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoreconf + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + autoreconf -fi + runConfigure --omit-dirs binDir ./configure \ + --bindir=$commandBinDir \ + --disable-wordview + make $jobArgs +} + +INSTALL() +{ + mkdir -p $manDir/man1 + make install +}