Use iconv(1) to convert the russian manual page from KOI8-T to UTF-8

before installing; sthen@ agrees with the general direction.

Even though the russian manual is known to be heavily outdated, i
strongly dislike the idea of expecting porters to judge the quality
of the content of third-party documentation (as opposed to fixing
technical issues).  When i said as much on ports@, nobody really
objected.

So for now, merely fix the encoding.  If people *really* want the
manual page deleted, that can still be done.
This commit is contained in:
schwarze 2017-06-01 14:18:06 +00:00
parent 7f0ed188ba
commit 1654236699

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.48 2017/05/11 14:01:57 benoit Exp $
# $OpenBSD: Makefile,v 1.49 2017/06/01 14:18:06 schwarze Exp $
COMMENT= Joe's Own Editor
DISTNAME = joe-4.4
REVISION = 0
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=joe-editor/}
@ -13,9 +14,19 @@ PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c ncurses m util
BUILD_DEPENDS = converters/libiconv
CONFIGURE_STYLE= gnu
FAKE_FLAGS= sysconf_joedir=${PREFIX}/share/examples/joe \
sysconf_docdir=${PREFIX}/share/doc/joe
post-build:
iconv -f KOI8-T -t UTF-8 ${WRKSRC}/man/ru/joe.1 > \
${WRKBUILD}/man/ru/joe.1-utf8
post-install:
${INSTALL_MAN} ${WRKBUILD}/man/ru/joe.1-utf8 \
${PREFIX}/man/ru/man1/joe.1
.include <bsd.port.mk>