summaryrefslogtreecommitdiff
path: root/editors/slime/Makefile
blob: bf8d61c44fa0c0b09fc6aacffc6f3edfc48d7d77 (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
# Created by: Dominic Mitchell
# $FreeBSD$

PORTNAME=	slime
DISTVERSIONPREFIX=	v
DISTVERSION=	2.26.1-9
PORTREVISION=	1
DISTVERSIONSUFFIX=	-gf368e22a
CATEGORIES=	editors elisp
PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}

MAINTAINER=	joe@thrallingpenguin.com
COMMENT=	Superior Lisp Interaction Mode for Emacs

LICENSE=	PD

BUILD_DEPENDS=	texinfo>=5.2:print/texinfo

USES=		emacs gmake
USE_GITHUB=	yes

ALL_TARGET=	all contrib-compile doc-slime.info
INFO=		slime
NO_ARCH=	yes
PORTDOCS=	CONTRIBUTING.md NEWS PROBLEMS README.md
SUB_FILES=	pkg-message
SUB_LIST=	SLIME_LISPDIR="${SLIME_LISPDIR}"

OPTIONS_DEFINE=	DOCS

SLIME_LISPDIR=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/slime

do-install:
	@${MKDIR} ${STAGEDIR}${SLIME_LISPDIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${SLIME_LISPDIR} \
		"! ( -name CONTRIBUTING.md -o -name NEWS -o -name PROBLEMS \
		-o -name README.md -o -name Makefile -o -name doc \
		-o -path \./doc/* )")

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${INSTALL_WRKSRC}/contrib/README.md \
		${STAGEDIR}${DOCSDIR}/README-contrib.md
	(cd ${INSTALL_WRKSRC}/doc && ${INSTALL_DATA} slime-refcard.pdf \
		slime-small.pdf ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>