blob: ce3daa450fd5f4a274ae175f60905e6309120ea6 (
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
62
63
64
65
66
67
68
|
PORTNAME= sly
DISTVERSION= 1.0.43
PORTREVISION= 1
CATEGORIES= editors elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= olce.freebsd.ports@certner.fr
COMMENT= Sylvester the Cat's Common Lisp IDE for Emacs
LICENSE= PD
USES= emacs gmake
USE_GITHUB= yes
GH_ACCOUNT= joaotavora
NO_ARCH= yes
INFO= sly
ALL_TARGET= all doc-sly.info
PLIST_THIS_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/sly
THIS_LISPDIR= ${PREFIX}/${PLIST_THIS_LISPDIR}
PLIST_SUB+= THIS_LISPDIR=${PLIST_THIS_LISPDIR}
PORTSCOUT= limit:^[0-9]
OPTIONS_DEFINE= DOCS DOCS_PDF
OPTIONS_DEFAULT=DOCS DOCS_PDF
DOCS_PDF_DESC= Build PDF documentation (requires DOCS)
ROOT_DOCS_FILES= CONTRIBUTING.md NEWS.md PROBLEMS.md README.md
GENERATED_DOCS_FILES= sly.html
DOCS_BUILD_DEPENDS= texinfo>=5.2:print/texinfo
DOCS_PDF_IMPLIES= DOCS
DOCS_PDF_USE= tex=latex:build tex=pdftex:build tex=dvipsk:build
.include <bsd.port.options.mk>
.if !empty(PORT_OPTIONS:MDOCS_PDF)
GENERATED_DOCS_FILES+= sly.pdf sly-refcard.pdf
.endif
ALL_TARGET+= ${GENERATED_DOCS_FILES:%=doc-%}
PORTDOCS:= CONTRIBUTING.md NEWS.md PROBLEMS.md README.md \
${GENERATED_DOCS_FILES}
do-install:
@${MKDIR} ${STAGEDIR}${THIS_LISPDIR}
(cd ${WRKSRC} && \
${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \
"! ( -depth 1 ( -name Makefile -o -name *\.md -o \
-name \.[^.]* ) -o \
-path \./doc* )")
${INSTALL_DATA} ${WRKSRC}/doc/${INFO}.info \
${STAGEDIR}${PREFIX}/${INFO_PATH}
# DOCS_PDF depends on DOCS
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${ROOT_DOCS_FILES:%=${WRKSRC}/%} \
${GENERATED_DOCS_FILES:%=${WRKSRC}/doc/%} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|