aboutsummaryrefslogtreecommitdiff
path: root/korean/man-doc/Makefile
blob: ac2302a54d07dc7215d053fa407a0f5f0f2cd4e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Hye-Shik Chang
# $FreeBSD$

PORTNAME=	man
PORTVERSION=	021120
PORTREVISION=	3
CATEGORIES=	korean
MASTER_SITES=	LOCAL/perky \
		http://people.freebsd.org/~perky/distfiles/
PKGNAMESUFFIX=	-doc
DISTNAME=	ko-man-doc-${PORTVERSION}

MAINTAINER=	hyun@caffeinated.codes
COMMENT=	Korean online manual pages

# If this port is ever resurrected, please make sure issues 212125,
# 217826 and 218176 are addressed
DEPRECATED=	Poor quality, severely outdated and undermaintained
EXPIRATION_DATE=2021-03-02

RUN_DEPENDS=	${LOCALBASE}/bin/groff:japanese/groff

post-patch:
	${SED} -e 's,%%PREFIX%%,${PREFIX},g' -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
		-e 's,gnroff,groff,g' ${WRKSRC}/scripts/kman.in > ${WRKDIR}/kman
	${RM} -r ${WRKSRC}/scripts

do-build:
	${FIND} ${WRKSRC} -type f | ${XARGS} ${GZIP_CMD}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/kman ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/man/ko_KR.eucKR
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . \
		${STAGEDIR}${PREFIX}/share/man/ko_KR.eucKR)

.include <bsd.port.mk>