diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2011-04-27 02:19:19 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2011-04-27 02:19:19 +0800 |
commit | 136ba809e6099f392811ae8354e60587a1db22fc (patch) | |
tree | 78323b205bab1352f759f5bf2ae4ed737319e830 /converters | |
parent | e55c2dd7d71f4753e7c444bf5a6c174918d7f6ba (diff) | |
download | freebsd-ports-gnome-136ba809e6099f392811ae8354e60587a1db22fc.tar.gz freebsd-ports-gnome-136ba809e6099f392811ae8354e60587a1db22fc.tar.zst freebsd-ports-gnome-136ba809e6099f392811ae8354e60587a1db22fc.zip |
- Update to 4.8
PR: ports/156619
Submitted by: Kuan-Chung Chiu <buganini@gmail.com> (maintainer)
Diffstat (limited to 'converters')
-rw-r--r-- | converters/bsdconv/Makefile | 30 | ||||
-rw-r--r-- | converters/bsdconv/distinfo | 4 | ||||
-rw-r--r-- | converters/bsdconv/files/extra-patch-strndup | 25 | ||||
-rw-r--r-- | converters/bsdconv/pkg-plist | 61 |
4 files changed, 69 insertions, 51 deletions
diff --git a/converters/bsdconv/Makefile b/converters/bsdconv/Makefile index f75dfeb63550..fa8a6df55735 100644 --- a/converters/bsdconv/Makefile +++ b/converters/bsdconv/Makefile @@ -6,21 +6,37 @@ # PORTNAME= bsdconv -PORTVERSION= 4.3 +PORTVERSION= 4.8 CATEGORIES= converters -MASTER_SITES= http://cloud.github.com/downloads/buganini/bsdconv/ +MASTER_SITES= https://github.com/buganini/${PORTNAME}/tarball/${PORTVERSION}/ +DISTNAME= buganini-${PORTNAME}-${PORTVERSION}-0-g${GITVERSION} MAINTAINER= buganini@gmail.com COMMENT= BSD licensed charset/encoding converter library +LICENSE= BSD + +GITVERSION= 75b8c7d +FETCH_ARGS= -pRr +WRKSRC= ${WRKDIR}/buganini-${PORTNAME}-${GITVERSION} + +OPTIONS= EXTRA "Extra codecs (Chinese specifics)" off + USE_LDCONFIG= yes MAKE_ARGS= PREFIX=${PREFIX} -.include <bsd.port.pre.mk> +ALL_TARGET= libbsdconv bsdconv_mktable meta bsdconv codecs_basic +INSTALL_TARGET= install_main install_basic + +.include <bsd.port.options.mk> -#.if ${OSVERSION} < 701101 -EXTRA_PATCHES= ${FILESDIR}/extra-patch-strndup -#.endif +.if defined(WITH_EXTRA) +ALL_TARGET+= codecs_extra +INSTALL_TARGET+=install_extra +PLIST_SUB= EXTRA="" +.else +PLIST_SUB= EXTRA="@comment " +.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/converters/bsdconv/distinfo b/converters/bsdconv/distinfo index ad7dbd900359..f5f740ed625c 100644 --- a/converters/bsdconv/distinfo +++ b/converters/bsdconv/distinfo @@ -1,2 +1,2 @@ -SHA256 (bsdconv-4.3.tar.gz) = c456db155aa5f6f342edd3e6ff0561d79a3a3f1723670ecc60626711bed7fe1d -SIZE (bsdconv-4.3.tar.gz) = 3704402 +SHA256 (buganini-bsdconv-4.8-0-g75b8c7d.tar.gz) = 0580749fadce6878e0012520dceeecb7d3ac67e35637c467f2db37b44951f08f +SIZE (buganini-bsdconv-4.8-0-g75b8c7d.tar.gz) = 4223831 diff --git a/converters/bsdconv/files/extra-patch-strndup b/converters/bsdconv/files/extra-patch-strndup deleted file mode 100644 index d0d6aa261950..000000000000 --- a/converters/bsdconv/files/extra-patch-strndup +++ /dev/null @@ -1,25 +0,0 @@ ---- src/bsdconv_func.c.orig 2009-10-11 19:26:58.000000000 +0800 -+++ src/bsdconv_func.c 2009-10-14 21:30:50.000000000 +0800 -@@ -25,6 +25,7 @@ - #endif - #include <string.h> - #include "bsdconv.h" -+#include <stdlib.h> - - int loadcodec(struct bsdconv_codec_t *cd, char *path, int maponly){ - #ifdef WIN32 -@@ -138,3 +139,14 @@ - return r; - } - #endif -+ -+char * strndup(const char *str, size_t len){ -+ size_t l=strlen(str); -+ char *r; -+ if(len<l){ -+ l=len; -+ } -+ r=malloc(l); -+ memcpy(r, str, l); -+ return r; -+} diff --git a/converters/bsdconv/pkg-plist b/converters/bsdconv/pkg-plist index bacc23359a75..86d2dd8eda2d 100644 --- a/converters/bsdconv/pkg-plist +++ b/converters/bsdconv/pkg-plist @@ -4,6 +4,8 @@ include/bsdconv.h lib/libbsdconv.so lib/libbsdconv.so.4 %%DATADIR%%/from/3F +%%DATADIR%%/from/ANSI-CONTROL +%%DATADIR%%/from/ANSI-CONTROL.so %%DATADIR%%/from/ASCII %%DATADIR%%/from/ASCII-NAMED-HTML-ENTITY %%DATADIR%%/from/ASCII-NUMERIC-HTML-ENTITY @@ -12,25 +14,29 @@ lib/libbsdconv.so.4 %%DATADIR%%/from/BSDCONV %%DATADIR%%/from/BSDCONV.so %%DATADIR%%/from/BSDCONV_KEYWORD +%%DATADIR%%/from/BSDCONV_LOG +%%DATADIR%%/from/BSDCONV_LOG.so %%DATADIR%%/from/BYTE -%%DATADIR%%/from/CNS11643 -%%DATADIR%%/from/CNS11643.so +%%EXTRA%%%%DATADIR%%/from/CNS11643 +%%EXTRA%%%%DATADIR%%/from/CNS11643.so %%DATADIR%%/from/CP1251 %%DATADIR%%/from/CP1252 -%%DATADIR%%/from/CP936 +%%EXTRA%%%%DATADIR%%/from/CP936 %%DATADIR%%/from/CP949 -%%DATADIR%%/from/CP950 +%%EXTRA%%%%DATADIR%%/from/CP950 %%DATADIR%%/from/ESCAPE %%DATADIR%%/from/ESCAPE.so -%%DATADIR%%/from/GB2312 +%%EXTRA%%%%DATADIR%%/from/GB2312 %%DATADIR%%/from/GBK %%DATADIR%%/from/ISO-8859-1 -%%DATADIR%%/from/MOZ18 +%%DATADIR%%/from/NUL %%DATADIR%%/from/PASS %%DATADIR%%/from/PASS.so %%DATADIR%%/from/SHIFT-JIS -%%DATADIR%%/from/UNICODE -%%DATADIR%%/from/UNICODE.so +%%DATADIR%%/from/SKIP +%%DATADIR%%/from/SKIP.so +%%EXTRA%%%%DATADIR%%/from/UAO241 +%%DATADIR%%/from/UAO250 %%DATADIR%%/from/UTF-16BE %%DATADIR%%/from/UTF-16BE.so %%DATADIR%%/from/UTF-16LE @@ -41,19 +47,27 @@ lib/libbsdconv.so.4 %%DATADIR%%/from/UTF-32LE.so %%DATADIR%%/from/UTF-8 %%DATADIR%%/from/UTF-8.so -%%DATADIR%%/inter/CHEWING -%%DATADIR%%/inter/CNS11643 +%%DATADIR%%/inter/AMBIGUOUS-PAD +%%DATADIR%%/inter/AMBIGUOUS-PAD.so +%%DATADIR%%/inter/AMBIGUOUS-UNPAD +%%DATADIR%%/inter/AMBIGUOUS-UNPAD.so +%%DATADIR%%/inter/BIG5-DEFRAG +%%DATADIR%%/inter/BIG5-DEFRAG.so +%%DATADIR%%/inter/BSDCONV_INFO +%%DATADIR%%/inter/BSDCONV_INFO.so +%%EXTRA%%%%DATADIR%%/inter/CHEWING +%%EXTRA%%%%DATADIR%%/inter/CNS11643 %%DATADIR%%/inter/FROM_ALIAS %%DATADIR%%/inter/FULL %%DATADIR%%/inter/HALF -%%DATADIR%%/inter/HAN_PINYIN +%%EXTRA%%%%DATADIR%%/inter/HAN_PINYIN %%DATADIR%%/inter/INTER_ALIAS %%DATADIR%%/inter/JP_PINYIN %%DATADIR%%/inter/LOWER %%DATADIR%%/inter/MAC %%DATADIR%%/inter/NL2BR %%DATADIR%%/inter/TO_ALIAS -%%DATADIR%%/inter/UNICODE +%%EXTRA%%%%DATADIR%%/inter/UNICODE %%DATADIR%%/inter/UNIX %%DATADIR%%/inter/UPPER %%DATADIR%%/inter/UPSIDEDOWN @@ -61,10 +75,12 @@ lib/libbsdconv.so.4 %%DATADIR%%/inter/ZHCN %%DATADIR%%/inter/ZHTW %%DATADIR%%/inter/ZHTW_WORDS -%%DATADIR%%/inter/ZH_COMP -%%DATADIR%%/inter/ZH_DECOMP +%%EXTRA%%%%DATADIR%%/inter/ZH_COMP +%%EXTRA%%%%DATADIR%%/inter/ZH_DECOMP %%DATADIR%%/to/3F %%DATADIR%%/to/3F.so +%%DATADIR%%/to/ANSI-CONTROL +%%DATADIR%%/to/ANSI-CONTROL.so %%DATADIR%%/to/ASCII %%DATADIR%%/to/ASCII-ESCAPED-UNICODE %%DATADIR%%/to/ASCII-ESCAPED-UNICODE.so @@ -72,6 +88,8 @@ lib/libbsdconv.so.4 %%DATADIR%%/to/ASCII-HEX-NUMERIC-HTML-ENTITY.so %%DATADIR%%/to/ASCII-HTML-CNS11643-IMG %%DATADIR%%/to/ASCII-HTML-CNS11643-IMG.so +%%DATADIR%%/to/ASCII-HTML-INFO +%%DATADIR%%/to/ASCII-HTML-INFO.so %%DATADIR%%/to/ASCII-HTML-UNICODE-IMG %%DATADIR%%/to/ASCII-HTML-UNICODE-IMG.so %%DATADIR%%/to/ASCII-NAMED-HTML-ENTITY @@ -79,20 +97,29 @@ lib/libbsdconv.so.4 %%DATADIR%%/to/BSDCONV %%DATADIR%%/to/BSDCONV.so %%DATADIR%%/to/BSDCONV_KEYWORD +%%DATADIR%%/to/BSDCONV_LOG +%%DATADIR%%/to/BSDCONV_LOG.so +%%DATADIR%%/to/BSDCONV_RAW +%%DATADIR%%/to/BSDCONV_RAW.so %%DATADIR%%/to/BSDCONV_STDOUT %%DATADIR%%/to/BSDCONV_STDOUT.so %%DATADIR%%/to/BYTE -%%DATADIR%%/to/CNS11643 -%%DATADIR%%/to/CNS11643.so +%%EXTRA%%%%DATADIR%%/to/CNS11643 +%%EXTRA%%%%DATADIR%%/to/CNS11643.so %%DATADIR%%/to/CP936 %%DATADIR%%/to/CP936_TRANS %%DATADIR%%/to/CP950 %%DATADIR%%/to/CP950_TRANS -%%DATADIR%%/to/GB2312 +%%EXTRA%%%%DATADIR%%/to/GB2312 %%DATADIR%%/to/GBK %%DATADIR%%/to/ISO-8859-1 +%%DATADIR%%/to/NUL %%DATADIR%%/to/PASS %%DATADIR%%/to/PASS.so +%%DATADIR%%/to/RAW +%%DATADIR%%/to/RAW.so +%%EXTRA%%%%DATADIR%%/to/UAO241 +%%DATADIR%%/to/UAO250 %%DATADIR%%/to/UCS-2BE %%DATADIR%%/to/UCS-2BE.so %%DATADIR%%/to/UCS-2LE |