aboutsummaryrefslogtreecommitdiffstats
path: root/lang/quack/Makefile
blob: 82a533568db4a5b0b8d428984c05de1147eb5d5b (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
# New ports collection makefile for:    Quack
# Date created:             24 October 2003
# Whom:                 Kimura Fuyuki <fuyuki@nigredo.org>
#
# $FreeBSD$
#

PORTNAME=   quack
PORTVERSION=    0.27
CATEGORIES= lang scheme elisp
MASTER_SITES=   http://www.neilvandyke.org/quack/
DISTNAME=   ${PORTNAME}
EXTRACT_SUFX=   .el
DIST_SUBDIR=    ${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Enhanced support for editing and running Scheme code

RUN_DEPENDS=    wget:${PORTSDIR}/ftp/wget

EMACS_PORT_NAME?=   emacs21

NO_WRKSUBDIR=   yes
EXTRACT_CMD=    ${CP}
EXTRACT_BEFORE_ARGS=    # empty
EXTRACT_AFTER_ARGS= ${WRKSRC}

PLIST_FILES=    ${EMACS_VERSION_SITE_LISPDIR}/quack/quack.el \
        ${EMACS_VERSION_SITE_LISPDIR}/quack/quack.elc
PLIST_DIRS= ${EMACS_VERSION_SITE_LISPDIR}/quack

ELISPDIR=   ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64"
BROKEN=     "does not build on ia64"
.endif

do-build:
    cd ${WRKSRC}; ${EMACS_CMD} -batch -q -f batch-byte-compile quack.el

do-install:
    ${MKDIR} ${ELISPDIR}
    ${INSTALL_DATA} ${WRKSRC}/quack.* ${ELISPDIR}

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>