aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/egg-canna/Makefile
blob: 026f73bb74bc056ddf1a82b6fb3814d11d330eb7 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Hajimu UMEMOTO <ume@FreeBSD.org>
# $FreeBSD$

PORTNAME=   egg-canna
PORTVERSION=    20011110
PORTREVISION=   16
CATEGORIES= japanese editors elisp
MASTER_SITES=   http://cgi18.plala.or.jp/nyy/canna/
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}
DISTNAME=   ${PORTNAME}.el
EXTRACT_SUFX=   # empty

MAINTAINER= ume@FreeBSD.org
COMMENT=    Canna Conversion Facility in Egg Input Method Architecture

BUILD_DEPENDS=  ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/egg/egg-sim.el:editors/tamago${EMACS_SUFFIX}
RUN_DEPENDS:=   ${BUILD_DEPENDS}

USE_EMACS=  yes

.include <bsd.port.pre.mk>

.if ${EMACS_MAJOR_VER} >= 23
IGNORE=     does not build with Emacs 23 and later
.endif

.if ${EMACS_PORT_NAME} == emacs20
EMACS_SUFFIX=   ${PKGNAMESUFFIX}
.else
EMACS_SUFFIX=   #
.endif

NO_WRKSUBDIR=   yes

EXTRACT_CMD=        ${CP}
EXTRACT_BEFORE_ARGS=    -p
EXTRACT_AFTER_ARGS= .

PLIST_FILES=    ${EMACS_VERSION_SITE_LISPDIR}/${DISTNAME} \
        ${EMACS_VERSION_SITE_LISPDIR}/${DISTNAME}c

do-build:
    @cd ${WRKDIR} && ${EMACS_CMD} -batch -q -no-site-file -no-init-file \
        -f batch-byte-compile ${DISTNAME}

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
    @${INSTALL_DATA} ${WRKSRC}/${DISTNAME} \
        ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
    @${INSTALL_DATA} ${WRKSRC}/${DISTNAME}c \
        ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}

.include <bsd.port.post.mk>