diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-03-27 01:10:50 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-03-27 01:10:50 +0800 |
commit | 1954957d8b75d2d8853af50140e6622511cf5ca9 (patch) | |
tree | 18ed3054210c6b725ec392eb0d72c90334bbf169 /converters/siconv | |
parent | 35cf2a49597f7252d2ca52a7a8f07df95271ab63 (diff) | |
download | freebsd-ports-gnome-1954957d8b75d2d8853af50140e6622511cf5ca9.tar.gz freebsd-ports-gnome-1954957d8b75d2d8853af50140e6622511cf5ca9.tar.zst freebsd-ports-gnome-1954957d8b75d2d8853af50140e6622511cf5ca9.zip |
add siconv
siconv will convert data from one character set to another
Diffstat (limited to 'converters/siconv')
-rw-r--r-- | converters/siconv/Makefile | 24 | ||||
-rw-r--r-- | converters/siconv/distinfo | 1 | ||||
-rw-r--r-- | converters/siconv/files/patch-siconv.c | 29 | ||||
-rw-r--r-- | converters/siconv/pkg-comment | 1 | ||||
-rw-r--r-- | converters/siconv/pkg-descr | 3 | ||||
-rw-r--r-- | converters/siconv/pkg-plist | 1 |
6 files changed, 59 insertions, 0 deletions
diff --git a/converters/siconv/Makefile b/converters/siconv/Makefile new file mode 100644 index 000000000000..1afb3194e98c --- /dev/null +++ b/converters/siconv/Makefile @@ -0,0 +1,24 @@ +# ex:ts=8 +# New ports collection makefile for: siconv +# Date created: Mar 27, 2001 +# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= siconv +PORTVERSION= 0.2 +CATEGORIES= converters +MASTER_SITES= http://www.technocage.com/~caskey/siconv/download/ + +MAINTAINER= ijliao@FreeBSD.org + +LIB_DEPENDS= giconv.2:${PORTSDIR}/converters/libiconv + +do-build: + ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -o ${WRKSRC}/siconv ${WRKSRC}/siconv.c -lgiconv + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/siconv ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/converters/siconv/distinfo b/converters/siconv/distinfo new file mode 100644 index 000000000000..93d172f6c2ba --- /dev/null +++ b/converters/siconv/distinfo @@ -0,0 +1 @@ +MD5 (siconv-0.2.tar.gz) = 395903817e95fe68c2b1a70f3785f849 diff --git a/converters/siconv/files/patch-siconv.c b/converters/siconv/files/patch-siconv.c new file mode 100644 index 000000000000..98da7478427d --- /dev/null +++ b/converters/siconv/files/patch-siconv.c @@ -0,0 +1,29 @@ +--- siconv.c.orig Tue Mar 27 00:55:22 2001 ++++ siconv.c Tue Mar 27 01:02:20 2001 +@@ -27,7 +27,7 @@ + *****************************************************************************/ + + +-#include <iconv.h> ++#include <giconv.h> + #include <errno.h> + #include <stdio.h> /* printf() */ + #include <unistd.h> /* read() & write() */ +@@ -139,7 +139,7 @@ + void usage(void) { + printf("usage:\n"); + printf("\n"); +- printf(" convert stdin from iso-8859-1 to utf8 on stdout\n"); ++ printf(" convert stdin from iso-8859-1 to utf-8 on stdout\n"); + printf(" $ siconv\n"); + printf(" convert stdin from charset-A to charset-B on stdout\n"); + printf(" $ siconv charset-A charset-B\n"); +@@ -149,7 +149,7 @@ + + int main(int argc, char *argv[]) { + char *from = "iso-8859-1"; +- char *to = "unicode"; ++ char *to = "utf-8"; + + if ( argc == 3 ) { + from = argv[1]; diff --git a/converters/siconv/pkg-comment b/converters/siconv/pkg-comment new file mode 100644 index 000000000000..b0d1bce8c7a1 --- /dev/null +++ b/converters/siconv/pkg-comment @@ -0,0 +1 @@ +Convert data from one character set to another diff --git a/converters/siconv/pkg-descr b/converters/siconv/pkg-descr new file mode 100644 index 000000000000..a0040daef677 --- /dev/null +++ b/converters/siconv/pkg-descr @@ -0,0 +1,3 @@ +Convert data from one character set to another + +WWW: http://www.technocage.com/~caskey/siconv/ diff --git a/converters/siconv/pkg-plist b/converters/siconv/pkg-plist new file mode 100644 index 000000000000..1ef4892a2475 --- /dev/null +++ b/converters/siconv/pkg-plist @@ -0,0 +1 @@ +bin/siconv |