Add the bomstrip port - strip the UTF-8 BOM bytes from text files,
implemented in many programming languages. The port uses my patchset which adds three new implementations, some build infrastructure, a manual page and a couple of other fixes. Author: Mechiel Lukkien <mechiel@xs4all.nl> WWW: http://www.xs4all.nl/~mechiel/projects/bomstrip/
This commit is contained in:
parent
51ed940665
commit
f05c384708
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214830
@ -34,6 +34,7 @@
|
||||
SUBDIR += bibtool
|
||||
SUBDIR += bidiv
|
||||
SUBDIR += bn-aspell
|
||||
SUBDIR += bomstrip
|
||||
SUBDIR += br-aspell
|
||||
SUBDIR += british-ispell
|
||||
SUBDIR += bsddiff
|
||||
|
28
textproc/bomstrip/Makefile
Normal file
28
textproc/bomstrip/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# New ports collection makefile for: bomstrip
|
||||
# Date created: 14 June 2008
|
||||
# Whom: Peter Pentchev <roam@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= bomstrip
|
||||
PORTVERSION= 8
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://www.xs4all.nl/~mechiel/projects/bomstrip/files/:main \
|
||||
http://devel.ringlet.net/textproc/bomstrip/:ringlet
|
||||
DISTFILES= ${DISTNAME}.tgz:main,ringlet \
|
||||
${DISTNAME}-roam-03-extra-files.tar.gz:ringlet
|
||||
|
||||
PATCHFILES= ${DISTNAME}-roam-03.patch
|
||||
PATCH_SITES= http://devel.ringlet.net/textproc/bomstrip/
|
||||
|
||||
MAINTAINER= roam@FreeBSD.org
|
||||
COMMENT= Strip Byte-Order Marks (BOM) from UTF-8 text
|
||||
|
||||
USE_GMAKE= yes
|
||||
MAKE_ENV+= BINGRP="${BINGRP}"
|
||||
|
||||
MAN1= bomstrip.1 bomstrip-files.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
.include <bsd.port.mk>
|
9
textproc/bomstrip/distinfo
Normal file
9
textproc/bomstrip/distinfo
Normal file
@ -0,0 +1,9 @@
|
||||
MD5 (bomstrip-8.tgz) = d70b1cbeab5104b6700be6d1b000ba6d
|
||||
SHA256 (bomstrip-8.tgz) = 2810e1602530e9554c33b4ef06d8828c7066ae2e30f469dce377d1c76e1668a8
|
||||
SIZE (bomstrip-8.tgz) = 6101
|
||||
MD5 (bomstrip-8-roam-03-extra-files.tar.gz) = 05eab1708560a00dea0b3066dac80786
|
||||
SHA256 (bomstrip-8-roam-03-extra-files.tar.gz) = 22f0dcdf3bedbbd50ef999e0107eefbb72a4ff26379ba82c868cf0d07baf65a1
|
||||
SIZE (bomstrip-8-roam-03-extra-files.tar.gz) = 480
|
||||
MD5 (bomstrip-8-roam-03.patch) = da3e21c5225dffd4bd8a74b423524d1e
|
||||
SHA256 (bomstrip-8-roam-03.patch) = 2392486b36c6ea9402b27e95c1c87d7ab7723c023b0ce603a43cacdfa37ae987
|
||||
SIZE (bomstrip-8-roam-03.patch) = 13141
|
20
textproc/bomstrip/pkg-descr
Normal file
20
textproc/bomstrip/pkg-descr
Normal file
@ -0,0 +1,20 @@
|
||||
Bomstrip is a very simple tool that removes BOM's (byte-order-marks)
|
||||
from utf-8 files. Actually, it is a set of tools that all do the same
|
||||
thing, but - for added entertainment value - in multiple programming
|
||||
languages (python, c, java, brainfuck, ook!, perl, sed, postscript,
|
||||
pascal, unlambda, limbo, haskell, ocaml, php, ruby). You want to always
|
||||
have this tool within hand-reach, no matter where you are and which
|
||||
compilers/interpreters you keep close to you.
|
||||
|
||||
Each tool reads from stdin and writes to stdout. It accepts no options
|
||||
or arguments. It never writes into files directly. All files are public
|
||||
domain. It exists for the purpose of noting how stupid BOM's in utf-8
|
||||
files are.
|
||||
|
||||
Oh, in case you didn't know yet: utf-8 does not have byte-ordering
|
||||
issues, so there is absolutely no need to have three bytes (the
|
||||
utf-8-BOM) that do not say anything about the byte-order (since there
|
||||
is nothing to say).
|
||||
|
||||
Author: Mechiel Lukkien <mechiel@xs4all.nl>
|
||||
WWW: http://www.xs4all.nl/~mechiel/projects/bomstrip/
|
49
textproc/bomstrip/pkg-plist
Normal file
49
textproc/bomstrip/pkg-plist
Normal file
@ -0,0 +1,49 @@
|
||||
bin/bomstrip
|
||||
bin/bomstrip-files
|
||||
%%DATADIR%%/source/bomstrip.awk
|
||||
%%DATADIR%%/source/bomstrip.b
|
||||
%%DATADIR%%/source/bomstrip.bf
|
||||
%%DATADIR%%/source/bomstrip.c
|
||||
%%DATADIR%%/source/bomstrip.cpp
|
||||
%%DATADIR%%/source/bomstrip.hs
|
||||
%%DATADIR%%/source/bomstrip.ocaml
|
||||
%%DATADIR%%/source/bomstrip.ook
|
||||
%%DATADIR%%/source/bomstrip.pas
|
||||
%%DATADIR%%/source/bomstrip.php
|
||||
%%DATADIR%%/source/bomstrip.pl
|
||||
%%DATADIR%%/source/bomstrip-2.pl
|
||||
%%DATADIR%%/source/bomstrip.ps
|
||||
%%DATADIR%%/source/bomstrip.py
|
||||
%%DATADIR%%/source/bomstrip.rb
|
||||
%%DATADIR%%/source/bomstrip.sed
|
||||
%%DATADIR%%/source/bomstrip.unl
|
||||
%%DATADIR%%/tests/bom0
|
||||
%%DATADIR%%/tests/bom1
|
||||
%%DATADIR%%/tests/bom-ml1
|
||||
%%DATADIR%%/tests/bom-ml2
|
||||
%%DATADIR%%/tests/bom-ml3
|
||||
%%DATADIR%%/tests/bom-ml4
|
||||
%%DATADIR%%/tests/nobom0
|
||||
%%DATADIR%%/tests/nobom1
|
||||
%%DATADIR%%/tests/nobom2
|
||||
%%DATADIR%%/tests/nobom-ml1
|
||||
%%DATADIR%%/tests/nobom-ml2
|
||||
%%DATADIR%%/tests/nobom-ml3
|
||||
%%DATADIR%%/tests/nobom-ml4
|
||||
%%DATADIR%%/tests/correct/rbom0
|
||||
%%DATADIR%%/tests/correct/rbom1
|
||||
%%DATADIR%%/tests/correct/rbom-ml1
|
||||
%%DATADIR%%/tests/correct/rbom-ml2
|
||||
%%DATADIR%%/tests/correct/rbom-ml3
|
||||
%%DATADIR%%/tests/correct/rbom-ml4
|
||||
%%DATADIR%%/tests/correct/rnobom0
|
||||
%%DATADIR%%/tests/correct/rnobom1
|
||||
%%DATADIR%%/tests/correct/rnobom2
|
||||
%%DATADIR%%/tests/correct/rnobom-ml1
|
||||
%%DATADIR%%/tests/correct/rnobom-ml2
|
||||
%%DATADIR%%/tests/correct/rnobom-ml3
|
||||
%%DATADIR%%/tests/correct/rnobom-ml4
|
||||
@dirrm %%DATADIR%%/source
|
||||
@dirrm %%DATADIR%%/tests/correct
|
||||
@dirrm %%DATADIR%%/tests
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user