mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Merged in puckipedia/haikuports/dos2unix (pull request #52)
Add new version of Dos2Unix
This commit is contained in:
38
app-text/dos2unix/dos2unix-1.0.1.recipe
Normal file
38
app-text/dos2unix/dos2unix-1.0.1.recipe
Normal file
@@ -0,0 +1,38 @@
|
||||
SUMMARY="dos2unix and unix2dos end of line file convertors."
|
||||
DESCRIPTION="DOS/Windows like to put CR/LF at the end of lines whereas UNIX like to have just LF. Dos2unix and unix2dos are simple parser/converter command line programs to convert between the two formats."
|
||||
HOMEPAGE="http://github.com/puckipedia/dos2unix"
|
||||
SRC_URI="git://github.com/puckipedia/dos2unix.git#553720356be18ca60cae3d970a575520aef5a4f4"
|
||||
REVISION="1"
|
||||
COPYRIGHT="Public Domain"
|
||||
LICENSE="Public Domain"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
dos2unix = 1.0.1 compat >= 1
|
||||
cmd:dos2unix
|
||||
cmd:unix2dos
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:g++
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src
|
||||
g++ -O -o ../dos2unix dos2unix.c
|
||||
g++ -O -o ../unix2dos unix2dos.c
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
cp dos2unix $binDir/dos2unix
|
||||
cp unix2dos $binDir/unix2dos
|
||||
}
|
||||
Reference in New Issue
Block a user