In an attempt to write some hangul on OpenBSD, i updated some ports ;) Here is an update for libhangul. Included is an upstream patch [1], which i found while checking the freebsd port.

Alongside goes a new port ibus-hangul (please see my other mail). I bumped the major lib version to 1, because that's what ibus-hangul expects.

Any comments?

Nils

[1] https://github.com/choehwanjin/libhangul/commit/3e59c64a985a1355d116319d69973b29d0d8ec66

Index: Makefile
===================================================================
RCS file: /cvs/ports/korean/libhangul/Makefile,v
retrieving revision 1.8
diff -u -p -u -r1.8 Makefile
--- Makefile    9 Apr 2016 20:14:48 -0000       1.8
+++ Makefile    12 Apr 2017 08:54:07 -0000
@@ -2,26 +2,28 @@

 COMMENT=       hangul input library

-DISTNAME=      libhangul-0.0.10
-REVISION =     1
+NAME=          libhangul-0.1.0
+DISTNAME=      3442-${NAME}
+PKGNAME=       ${NAME}
+WRKSRC=                ${WRKDIR}/${NAME}
+WRKDIST=       ${WRKDIR}/${NAME}

-SHARED_LIBS=   hangul  0.1     # .1.0
+SHARED_LIBS=   hangul  1.0     # 1.0

 CATEGORIES=    korean inputmethods

-HOMEPAGE=      http://kldp.net/projects/hangul/
+HOMEPAGE=      http://kldp.net/hangul/

 # LGPLv2.1+
 PERMIT_PACKAGE_CDROM=  Yes

-WANTLIB=       iconv
+WANTLIB=       c iconv

+MODULES=       devel/gettext
 LIB_DEPENDS=   converters/libiconv

-MASTER_SITES=  http://kldp.net/frs/download.php/5417/
+MASTER_SITES=  http://kldp.net/hangul/release/

 CONFIGURE_STYLE=gnu
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
-               LDFLAGS="-L${LOCALBASE}/lib -liconv"

 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/korean/libhangul/distinfo,v
retrieving revision 1.3
diff -u -p -u -r1.3 distinfo
--- distinfo    18 Jan 2015 03:14:18 -0000      1.3
+++ distinfo    12 Apr 2017 08:54:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (libhangul-0.0.10.tar.gz) = rwciASYyqyr8IBaqZkO9aXnhQPrMVqkRpaRfl/5h1MU=
-SIZE (libhangul-0.0.10.tar.gz) = 2828525
+SHA256 (3442-libhangul-0.1.0.tar.gz) = WQWqXFV9jUbhkP7Br911ur87wIbvKGtCAHVycDZYKVo=
+SIZE (3442-libhangul-0.1.0.tar.gz) = 2899845
Index: patches/patch-hangul_hangulctype_c
===================================================================
RCS file: patches/patch-hangul_hangulctype_c
diff -N patches/patch-hangul_hangulctype_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-hangul_hangulctype_c  12 Apr 2017 08:54:07 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+https://github.com/choehwanjin/libhangul/commit/3e59c64a985a1355d116319d69973b29d0d8ec66
+--- hangul/hangulctype.c.orig  Wed Apr 12 10:10:13 2017
++++ hangul/hangulctype.c       Wed Apr 12 10:11:29 2017
+@@ -518,6 +518,10 @@ hangul_jamo_to_cjamo(ucschar c)
+       0x0000,     /* 0xd7c4 */
+       0x0000,     /* 0xd7c5 */
+       0x0000,     /* 0xd7c6 */
++      0x0000,     /* 0xd7c7 */
++      0x0000,     /* 0xd7c8 */
++      0x0000,     /* 0xd7c9 */
++      0x0000,     /* 0xd7ca */
+       0x0000,     /* 0xd7cb */
+       0x0000,     /* 0xd7cc */
+       0x3138,     /* 0xd7cd */
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/korean/libhangul/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -u -r1.3 PLIST
--- pkg/PLIST   16 Mar 2015 18:07:49 -0000      1.3
+++ pkg/PLIST   12 Apr 2017 08:54:07 -0000
@@ -1,4 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.3 2015/03/16 18:07:49 naddy Exp $
+@bin bin/hangul
 include/hangul-1.0/
 include/hangul-1.0/hangul.h
 lib/libhangul.a
@@ -8,3 +9,4 @@ lib/pkgconfig/libhangul.pc
 share/libhangul/
 share/libhangul/hanja/
 share/libhangul/hanja/hanja.txt
+share/locale/ko/LC_MESSAGES/libhangul.mo

Reply via email to