diff --git a/converters/Makefile b/converters/Makefile index 5c769f0ea3f6..bf76af850bac 100644 --- a/converters/Makefile +++ b/converters/Makefile @@ -1,184 +1,185 @@ COMMENT = Character code converters SUBDIR += R-cran-RJSONIO SUBDIR += R-cran-arabic2kansuji SUBDIR += R-cran-base64enc SUBDIR += R-cran-jsonlite SUBDIR += R-cran-rjson SUBDIR += aish SUBDIR += ascii2binary SUBDIR += asr10 SUBDIR += base64 SUBDIR += base91 SUBDIR += bibtexconv SUBDIR += bmfdec SUBDIR += bsdconv SUBDIR += btoa SUBDIR += chmview SUBDIR += cl-babel SUBDIR += cl-babel-sbcl SUBDIR += cmios9 SUBDIR += cocot SUBDIR += convmv + SUBDIR += dos2ansi SUBDIR += dos2unix SUBDIR += dosunix SUBDIR += drg2sbg SUBDIR += dumpasn1 SUBDIR += enca SUBDIR += fconv SUBDIR += fix-mime-charset SUBDIR += fondu SUBDIR += fribidi SUBDIR += gbase SUBDIR += gbsdconv SUBDIR += hs-aeson-pretty SUBDIR += hs-dhall-bash SUBDIR += hs-dhall-json SUBDIR += hs-dhall-yaml SUBDIR += i18ntools SUBDIR += ical2html SUBDIR += iconv SUBDIR += iconv-extra SUBDIR += iconv-rfc1345 SUBDIR += ish SUBDIR += libb64 SUBDIR += libiconv SUBDIR += libticonv SUBDIR += libutf-8 SUBDIR += linux-c7-fribidi SUBDIR += lua-iconv SUBDIR += lua-json SUBDIR += mimelib SUBDIR += mmencode SUBDIR += mpack SUBDIR += nomyso SUBDIR += o3read SUBDIR += ocaml-base64 SUBDIR += ocaml-jsonm SUBDIR += osm2mp SUBDIR += osm2pgrouting SUBDIR += osm2pgsql SUBDIR += p5-Bencode SUBDIR += p5-Boulder SUBDIR += p5-Convert-ASCII-Armour SUBDIR += p5-Convert-ASN1 SUBDIR += p5-Convert-BER SUBDIR += p5-Convert-Base32 SUBDIR += p5-Convert-Bencode SUBDIR += p5-Convert-Bencode_XS SUBDIR += p5-Convert-BinHex SUBDIR += p5-Convert-Binary-C SUBDIR += p5-Convert-IBM390 SUBDIR += p5-Convert-Moji SUBDIR += p5-Convert-Morse SUBDIR += p5-Convert-NLS_DATE_FORMAT SUBDIR += p5-Convert-PEM SUBDIR += p5-Convert-Recode SUBDIR += p5-Convert-TNEF SUBDIR += p5-Convert-UU SUBDIR += p5-Convert-UUlib SUBDIR += p5-Cpanel-JSON-XS SUBDIR += p5-Cstools SUBDIR += p5-Data-AMF SUBDIR += p5-Encode SUBDIR += p5-Encode-Base32-Crockford SUBDIR += p5-Encode-Base32-GMP SUBDIR += p5-Encode-Base58-GMP SUBDIR += p5-Encode-Detect SUBDIR += p5-Encode-Detect-CJK SUBDIR += p5-Encode-DoubleEncodedUTF8 SUBDIR += p5-Encode-IMAPUTF7 SUBDIR += p5-Encode-JIS2K SUBDIR += p5-Encode-Locale SUBDIR += p5-Encode-Punycode SUBDIR += p5-Encode-compat SUBDIR += p5-Encoding-BER SUBDIR += p5-Encoding-FixLatin SUBDIR += p5-Format-Human-Bytes SUBDIR += p5-JSON SUBDIR += p5-JSON-Any SUBDIR += p5-JSON-DWIW SUBDIR += p5-JSON-MaybeXS SUBDIR += p5-JSON-PP SUBDIR += p5-JSON-Tiny SUBDIR += p5-JSON-XS SUBDIR += p5-JSON-XS-VersionOneAndTwo SUBDIR += p5-LaTeXML SUBDIR += p5-MIME-Base32 SUBDIR += p5-MIME-Base64 SUBDIR += p5-MIME-Base64-URLSafe SUBDIR += p5-Net-IDN-Nameprep SUBDIR += p5-Number-Nary SUBDIR += p5-Number-RecordLocator SUBDIR += p5-PerlIO-via-Unidecode SUBDIR += p5-Sereal SUBDIR += p5-Sereal-Decoder SUBDIR += p5-Sereal-Encoder SUBDIR += p5-Storable-AMF SUBDIR += p5-String-Multibyte SUBDIR += p5-Text-Bidi SUBDIR += p5-Text-Iconv SUBDIR += p5-Text-Unidecode SUBDIR += p5-URI-UTF8-Punycode SUBDIR += p5-Unicode-IMAPUtf7 SUBDIR += p5-Unicode-Map SUBDIR += p5-Unicode-Map8 SUBDIR += p5-Unicode-MapUTF8 SUBDIR += p5-Unicode-RecursiveDowngrade SUBDIR += p5-Unicode-String SUBDIR += p5-Unicode-Stringprep SUBDIR += p5-Unicode-UTF8simple SUBDIR += p5-WAP-wbxml SUBDIR += p5-XML-WBXML SUBDIR += p5-bsdconv SUBDIR += p5-plutil SUBDIR += pdf2djvu SUBDIR += pear-Services_JSON SUBDIR += pecl-igbinary SUBDIR += php-bsdconv SUBDIR += php81-iconv SUBDIR += php81-mbstring SUBDIR += php82-iconv SUBDIR += php82-mbstring SUBDIR += php83-iconv SUBDIR += php83-mbstring SUBDIR += psiconv SUBDIR += py-bencode.py SUBDIR += py-bencoder SUBDIR += py-better-bencode SUBDIR += py-bsdconv SUBDIR += py-gotenberg-client SUBDIR += py-rencode SUBDIR += py-svglib SUBDIR += py-text-unidecode SUBDIR += py-unidecode SUBDIR += py-webencodings SUBDIR += py-zfec SUBDIR += rcctools SUBDIR += recode SUBDIR += rubygem-base32 SUBDIR += rubygem-base64 SUBDIR += rubygem-iconv SUBDIR += rubygem-json-ld SUBDIR += rubygem-json-ld-preloaded SUBDIR += rubygem-po_to_json SUBDIR += rubygem-ruby-bsdconv SUBDIR += rubygem-url_safe_base64 SUBDIR += rubygem-xdr SUBDIR += showkey SUBDIR += simdutf SUBDIR += ta2as SUBDIR += tnef SUBDIR += trans SUBDIR += tuc SUBDIR += unix2dos SUBDIR += uudeview SUBDIR += uulib SUBDIR += wkhtmltopdf SUBDIR += xdeview SUBDIR += xml2c SUBDIR += yj SUBDIR += yj-bruceadams SUBDIR += ytnef .include diff --git a/converters/dos2ansi/Makefile b/converters/dos2ansi/Makefile new file mode 100644 index 000000000000..94c28f139c41 --- /dev/null +++ b/converters/dos2ansi/Makefile @@ -0,0 +1,53 @@ +PORTNAME= dos2ansi +DISTVERSION= 2.0 +CATEGORIES= converters +MASTER_SITES= ${WWW}/releases/download/v${DISTVERSION}/ + +MAINTAINER= zirias@FreeBSD.org +COMMENT= Converter for old MS-DOS/ANSI.SYS text files +WWW= https://github.com/Zirias/dos2ansi + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +FLAVORS= x11 nox11 +FLAVOR?= x11 +nox11_OPTIONS_EXCLUDE= BITMAP SCALABLE +nox11_PKGNAMESUFFIX= -nox11 +x11_OPTIONS_SLAVE= SHOWANSI +x11_RUN_DEPENDS= xterm:x11/xterm + +USES= compiler:c11 gmake tar:xz +MAKEFILE= GNUmakefile +ALL_TARGET= strip +CONFLICTS_INSTALL= ${PORTNAME} ${PORTNAME}-nox11 + +OPTIONS_DEFINE= DOCS HTML MANPAGES NCURSES SHOWANSI +OPTIONS_DEFAULT= MANPAGES NCURSES BITMAP SCALABLE +OPTIONS_GROUP= FONTS +OPTIONS_GROUP_FONTS= BITMAP SCALABLE +OPTIONS_EXCLUDE= ${${FLAVOR}_OPTIONS_EXCLUDE} +OPTIONS_SLAVE= ${${FLAVOR}_OPTIONS_SLAVE} +OPTIONS_SUB= yes +BITMAP_DESC= Add bitmap fonts from x11-fonts/ibmfonts +HTML_DESC= Build and install HTML manpages +NCURSES_DESC= Build with terminfo-based color output +SCALABLE_DESC= Add scalable fonts from x11-fonts/oldschool-pc-fonts +SHOWANSI_DESC= Install showansi script + +BITMAP_RUN_DEPENDS= ibmfonts>0:x11-fonts/ibmfonts + +HTML_MAKE_ENV= WITH_HTML=1 + +MANPAGES_MAKE_ENV_OFF= WITH_MAN=0 + +NCURSES_USES= ncurses +NCURSES_MAKE_ENV= INCLUDES=-I${NCURSESINC} +NCURSES_MAKE_ENV_OFF= WITH_CURSES=0 +NCURSES_LDFLAGS= -Wl,--as-needed + +SCALABLE_RUN_DEPENDS= oldschool-pc-fonts>0:x11-fonts/oldschool-pc-fonts + +SHOWANSI_MAKE_ENV_OFF= WITH_SHOWANSI=0 + +.include diff --git a/converters/dos2ansi/distinfo b/converters/dos2ansi/distinfo new file mode 100644 index 000000000000..065593fd5ed3 --- /dev/null +++ b/converters/dos2ansi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1710187093 +SHA256 (dos2ansi-2.0.tar.xz) = a34979621f932fae36b3bfc77ddad26c172e6d05bc68aae865cb3eaf663db70c +SIZE (dos2ansi-2.0.tar.xz) = 74408 diff --git a/converters/dos2ansi/pkg-descr b/converters/dos2ansi/pkg-descr new file mode 100644 index 000000000000..8ad90e775f99 --- /dev/null +++ b/converters/dos2ansi/pkg-descr @@ -0,0 +1,7 @@ +A tool to convert MS-DOS/ANSI.SYS text files to modern terminals. + +This tool converts MS-DOS text files using ANSI.SYS escape sequences to a +format a modern terminal can display. The output will use a Unicode encoding +of characters and only ANSI SGR escape sequences to set basic foreground and +background colors, intensity and blinking attribute. The input is expected to +use CP-437 or one of the other supported DOS codepages. diff --git a/converters/dos2ansi/pkg-plist b/converters/dos2ansi/pkg-plist new file mode 100644 index 000000000000..4d07d150ed7a --- /dev/null +++ b/converters/dos2ansi/pkg-plist @@ -0,0 +1,12 @@ +bin/dos2ansi +%%SHOWANSI%%bin/showansi +%%SHOWANSI%%@sample %%ETCDIR%%/showansirc.sample +@comment %%DOCSDIR%%/LICENSE.txt +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%HTML%%%%DOCSDIR%%/html/dos2ansi.1.html +%%HTML%%%%SHOWANSI%%%%DOCSDIR%%/html/showansi.1.html +%%SHOWANSI%%%%DATADIR%%/showansi/fonts.bitmap +%%SHOWANSI%%%%DATADIR%%/showansi/fonts.mixed +%%SHOWANSI%%%%DATADIR%%/showansi/fonts.scalable +%%MANPAGES%%share/man/man1/dos2ansi.1.gz +%%MANPAGES%%%%SHOWANSI%%share/man/man1/showansi.1.gz