Date: Mon, 12 Sep 2005 20:49:11 +0200 (CEST) From: Emanuel Haupt <ehaupt@critical.ch> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/86017: new port: textproc/uni2ascii - Convert between UTF-8 Unicode and 7-bit ASCII equivalents Message-ID: <200509121849.j8CInBW6014975@beaver.critical.ch> Resent-Message-ID: <200509121850.j8CIo5gP087749@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 86017 >Category: ports >Synopsis: new port: textproc/uni2ascii - Convert between UTF-8 Unicode and 7-bit ASCII equivalents >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 12 18:50:05 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Emanuel Haupt >Release: FreeBSD 5.4-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD beaver.critical.ch 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Wed Jul 27 20:19:15 CEST 2005 root@beaver.critical.ch:/usr/obj/usr/src/RELENG_5_4/src/sys/BEAVER i386 >Description: new port: textproc/uni2ascii - Convert between UTF-8 Unicode and 7-bit ASCII equivalents uni2ascii and ascii2uni convert between UTF-8 Unicode and any of a variety of 7-bit ASCII equivalents including: hexadecimal and decimal HTML numeric character references, \u-escapes, standard hexadecimal, and raw hexadecimal. >How-To-Repeat: >Fix: --- uni2ascii.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # uni2ascii # uni2ascii/Makefile # uni2ascii/pkg-descr # uni2ascii/distinfo # echo c - uni2ascii mkdir -p uni2ascii > /dev/null 2>&1 echo x - uni2ascii/Makefile sed 's/^X//' >uni2ascii/Makefile << 'END-of-uni2ascii/Makefile' X# New ports collection makefile for: uni2ascii X# Date created: 12 Sep 2005 X# Whom: Emanuel Haupt <ehaupt@critical.ch> X# X# $FreeBSD$ X# X XPORTNAME= uni2ascii XPORTVERSION= 2.1 XCATEGORIES= textproc XMASTER_SITES= http://critical.ch/distfiles/ X XMAINTAINER= ehaupt@critical.ch XCOMMENT= Convert between UTF-8 Unicode and 7-bit ASCII equivalents X XUSE_GETTEXT= yes X XCFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib -lintl XDEFINES= -DPACKAGE=\"${PORTNAME}\" -DLOCALEDIR=\"${LOCALBASE}/share/locale\" -DINTLIZE X XSRC1= uni2ascii Get_UTF32_From_UTF8 XSRC2= ascii2uni GetWord putu8 X XPLIST_FILES= bin/uni2ascii bin/ascii2uni XMAN1= uni2ascii.1 ascii2uni.1 X Xdo-build: X.for f in ${SRC1} X ${CC} ${CFLAGS} ${DEFINES} -c ${WRKSRC}/${f}.c -o ${WRKSRC}/${f}.o X.endfor X ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} \ X ${SRC1:C/(.*)/${WRKSRC}\/\1.o/} X.for f in ${SRC2} X ${CC} ${CFLAGS} ${DEFINES} -o ${WRKSRC}/${f}.o -c ${WRKSRC}/${f}.c X.endfor X ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/ascii2uni \ X ${SRC2:C/(.*)/${WRKSRC}\/\1.o/} X Xdo-install: X.for f in ${PORTNAME} ascii2uni X ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/${f}.1 ${MANPREFIX}/man/man1 X.endfor X X.include <bsd.port.mk> END-of-uni2ascii/Makefile echo x - uni2ascii/pkg-descr sed 's/^X//' >uni2ascii/pkg-descr << 'END-of-uni2ascii/pkg-descr' Xuni2ascii and ascii2uni convert between UTF-8 Unicode and any of a variety of X7-bit ASCII equivalents including: hexadecimal and decimal HTML numeric Xcharacter references, \u-escapes, standard hexadecimal, and raw hexadecimal. X XWWW: http://freshmeat.net/projects/uni2ascii/ X X- ehaupt Xehaupt@critical.ch END-of-uni2ascii/pkg-descr echo x - uni2ascii/distinfo sed 's/^X//' >uni2ascii/distinfo << 'END-of-uni2ascii/distinfo' XMD5 (uni2ascii-2.1.tar.gz) = 82d9340942b0fcaff527005428060e02 XSIZE (uni2ascii-2.1.tar.gz) = 17487 END-of-uni2ascii/distinfo exit --- uni2ascii.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509121849.j8CInBW6014975>