0
0
Fork 0
haikuports/app-text/dos2unix/dos2unix-7.4.2.recipe

60 lines
1.4 KiB
Bash

SUMMARY="Converter between DOS and Unix end-of-line delimiters"
DESCRIPTION="DOS/Windows uses CR/LF at the end of lines whereas UNIX has \
just LF. Dos2unix and unix2dos are simple command line tools to convert \
between the two formats."
HOMEPAGE="https://sourceforge.net/projects/dos2unix"
COPYRIGHT="2009-2015 Erwin Waterlander
1998 Christian Wurll
1998 Bernd Johannes Wuebben
1994-1995 Benjamin Lin"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="http://downloads.sourceforge.net/project/dos2unix/dos2unix/$portVersion/dos2unix-$portVersion.tar.gz"
CHECKSUM_SHA256="6035c58df6ea2832e868b599dfa0d60ad41ca3ecc8aa27822c4b7a9789d3ae01"
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
PATCHES="dos2unix-$portVersion.patchset"
fi
ARCHITECTURES="all"
PROVIDES="
dos2unix = $portVersion compat >= 7
cmd:dos2unix
cmd:unix2dos
cmd:mac2unix
cmd:unix2mac
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:find
cmd:xargs
"
BUILD()
{
find -name "*.1" | xargs touch
make $jobArgs ENABLE_NLS= MANFILES= MANPOTFILE= prefix="$prefix"
}
INSTALL()
{
make strip install MANFILES= ENABLE_NLS= MANPOTFILE= prefix="$prefix"
mkdir -p $docDir $manDir
mv $prefix/share/doc/dos2unix-*/* $docDir/
rm -rf $docDir/fr $docDir/de $docDir/es $docDir/nl $docDir/pl \
$docDir/uk $docDir/pt_BR
mv $prefix/share/man/man1 $manDir/
rm -rf $prefix/share
}