summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/chiconv/Makefile24
-rw-r--r--chinese/chiconv/distinfo2
-rw-r--r--chinese/chiconv/pkg-descr4
4 files changed, 31 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 5a176c52fbd2..d32cb46a9e9f 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -27,6 +27,7 @@
SUBDIR += cce
SUBDIR += cconv
SUBDIR += celvis
+ SUBDIR += chiconv
SUBDIR += cless
SUBDIR += cmexfonts
SUBDIR += cnprint
diff --git a/chinese/chiconv/Makefile b/chinese/chiconv/Makefile
new file mode 100644
index 000000000000..b30cacd46db5
--- /dev/null
+++ b/chinese/chiconv/Makefile
@@ -0,0 +1,24 @@
+# Created by: buganini@gmail.com
+# $FreeBSD$
+
+PORTNAME= chiconv
+PORTVERSION= 1.0
+CATEGORIES= chinese converters
+DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
+
+MAINTAINER= buganini@gmail.com
+COMMENT= Auto chinese encoding converter
+
+LICENSE= BSD
+
+LIB_DEPENDS= bsdconv:${PORTSDIR}/converters/bsdconv
+
+USE_GITHUB= yes
+GH_ACCOUNT= buganini
+GH_COMMIT= 046010f
+
+MAKE_ARGS= PREFIX=${PREFIX}
+
+PLIST_FILES= bin/chiconv
+
+.include <bsd.port.mk>
diff --git a/chinese/chiconv/distinfo b/chinese/chiconv/distinfo
new file mode 100644
index 000000000000..ae3ea40fcbdd
--- /dev/null
+++ b/chinese/chiconv/distinfo
@@ -0,0 +1,2 @@
+SHA256 (buganini-chiconv-1.0-0-g046010f.tar.gz) = ac8cdf73cebaf9725cdb2034d188fe1d2b988379b87fde269aa9b9b15fddf27c
+SIZE (buganini-chiconv-1.0-0-g046010f.tar.gz) = 1531
diff --git a/chinese/chiconv/pkg-descr b/chinese/chiconv/pkg-descr
new file mode 100644
index 000000000000..ff09498e56b6
--- /dev/null
+++ b/chinese/chiconv/pkg-descr
@@ -0,0 +1,4 @@
+Auto chinese encoding converter. It can detect UTF-8/Big5/GBK text and convert
+them to specified chinese encoding with transliteration.
+
+WWW: https://github.com/buganini/chiconv