summaryrefslogtreecommitdiffstats
path: root/japanese/ddskk/Makefile
blob: 28d71d76ed3a93886d59256b63d15f2f1ece3c56 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
# $FreeBSD$

PORTNAME=	ddskk
PORTVERSION=	15.1
PORTREVISION=	4
CATEGORIES=	japanese elisp
MASTER_SITES=	http://openlab.ring.gr.jp/skk/maintrunk/ \
		ftp://ftp.ring.gr.jp/pub/elisp/skk/maintrunk/ \
		http://www.ring.gr.jp/archives/elisp/skk/maintrunk/
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple Kana to Kanji conversion program on Emacsen

LICENSE=	GPLv2

NO_ARCH=	yes

USE_EMACS=	yes
MAKE_ARGS=	PREFIX="${STAGEDIR}${PREFIX}" \
		SKK_LISPDIR="${STAGEDIR}${PREFIX}/${SKK_LISPDIR}" \
		SKK_INFODIR="${STAGEDIR}${PREFIX}/${INFO_PATH}"
ALL_TARGET=	elc info

INFO=		skk
PORTDOCS=	*
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

SKK_LISPDIR=	${EMACS_VERSION_SITE_LISPDIR}/skk

post-patch:
	@${REINPLACE_CMD} -e \
		'/skk-tut-file/s|@TUT@|${PREFIX}/share/skk/SKK.tut|' \
		${WRKSRC}/skk-setup.el.in

pre-build:
.for i in skk-lookup.el skk-jisx0213.el
	@${MV} ${WRKSRC}/${i} ${WRKDIR}
.endfor

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/${SKK_LISPDIR}
.for i in skk-lookup.el skk-jisx0213.el
	(cd ${WRKDIR} && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${PREFIX}/${SKK_LISPDIR})
.endfor
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS.ja CODENAME.ja Contributors FAQ.ja NEWS.ja README
	(cd ${WRKSRC}/READMEs && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${DOCSDIR})
.endfor
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in Emacs.ad dot.emacs dot.skk
	(cd ${WRKSRC}/etc && ${INSTALL_DATA} ${i} \
		${STAGEDIR}${EXAMPLESDIR})
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud