Skip to content

Commit

Permalink
Translate the manual page from EUC-KR to UTF-8 using iconv(1) at build
Browse files Browse the repository at this point in the history
time and install the unformatted version to be processed by mandoc(1)
at run time rather than misformatting it with USE_GROFF.
OK Jung Lee (MAINTAINER) and naddy@
  • Loading branch information
ischwarze committed May 14, 2017
1 parent 66f2fb8 commit 88ce6cd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions korean/hanterm-xf/Makefile
@@ -1,12 +1,12 @@
# $OpenBSD: Makefile,v 1.24 2016/04/09 20:14:48 naddy Exp $
# $OpenBSD: Makefile,v 1.25 2017/05/14 23:12:55 schwarze Exp $

COMMENT= X Hangul Terminal (XFree86 xterm Based)

V= 2.0.6-177
DISTNAME= hanterm-xf-$V
CATEGORIES= korean
PKGNAME= hanterm-xf-${V:S/-/./}
REVISION= 3
REVISION= 4
EPOCH= 0

MASTER_SITES= http://kldp.net/frs/download.php/3281/
Expand All @@ -19,7 +19,6 @@ MAINTAINER= Jung Lee <moorang@gmail.com>
WANTLIB= ICE SM X11 Xaw Xext Xmu Xt c iconv termcap util

LIB_DEPENDS= converters/libiconv
USE_GROFF = Yes
NO_TEST= Yes

CONFIGURE_STYLE= gnu
Expand All @@ -33,4 +32,10 @@ CONFIGURE_ARGS= --enable-box-char \
--enable-256-color \
--enable-tcap-query

post-build:
iconv -f EUC-KR -t UTF-8 ${WRKSRC}/hanterm.man > ${WRKBUILD}/hanterm.1

post-install:
${INSTALL_MAN} ${WRKBUILD}/hanterm.1 ${PREFIX}/man/man1/

.include <bsd.port.mk>

0 comments on commit 88ce6cd

Please sign in to comment.