mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
SUMMARY="A small tool to turn CRLF into LF without fuss!"
|
|
DESCRIPTION="
|
|
ConvertToLF is a filter that removes the carriage returns used in the end of \
|
|
file markers on some operating systems. Haiku uses just a line feed to mark \
|
|
the end of line, and gcc, the Haiku compiler and StyledEdit don't function \
|
|
properly with carriage returns in source code / text files.
|
|
"
|
|
HOMEPAGE="https://github.com/HaikuArchives/ConvertToLF/"
|
|
COPYRIGHT="2001 fReT"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
srcGitRev="d8ec50f92a65d9fd1058adf98fe2515fbafa243c"
|
|
SOURCE_URI="https://github.com/HaikuArchives/ConvertToLF/archive/d8ec50f92a65d9fd1058adf98fe2515fbafa243c.tar.gz"
|
|
CHECKSUM_SHA256="dccdd4341b53c12b572d5e4f5b6fc57cc83190eec5e82933083995e3db2b7497"
|
|
SOURCE_DIR="ConvertToLF-$srcGitRev"
|
|
|
|
ARCHITECTURES="?all x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
converttolf = $portVersion
|
|
addon:ConvertToLF = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:xres
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
g++ -lbe -ltracker -o ConvertToLF Source/Strip.cpp
|
|
rc -o ConvertToLF.rsrc Source/ConvertToLF.rdef
|
|
xres -o ConvertToLF ConvertToLF.rsrc
|
|
mimeset -f ConvertToLF
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $addOnsDir/Tracker
|
|
cp ConvertToLF $addOnsDir/Tracker
|
|
}
|