Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= sly-named-readtables |
4 |
PORTVERSION= 20191013 |
5 |
CATEGORIES= editors elisp |
6 |
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} |
7 |
|
8 |
MAINTAINER= olce.freebsd.ports@certner.fr |
9 |
COMMENT= Support different readtables in the same file for SLY |
10 |
|
11 |
LICENSE= PD |
12 |
|
13 |
MY_DEPENDS= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/sly/sly.el:editors/sly |
14 |
BUILD_DEPENDS= ${MY_DEPENDS} |
15 |
RUN_DEPENDS= ${MY_DEPENDS} |
16 |
|
17 |
USES= emacs |
18 |
USE_GITHUB= yes |
19 |
GH_ACCOUNT= joaotavora |
20 |
GH_TAGNAME= a5a42674ccffa97ccd5e4e9742beaf3ea719931f |
21 |
|
22 |
NO_ARCH= yes |
23 |
|
24 |
EMACS_COMPILE= ${EMACS_CMD} --batch --no-site-file -L ${WRKSRC} -f batch-byte-compile |
25 |
|
26 |
THIS_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
27 |
PLIST_SUB= THIS_LISPDIR=${THIS_LISPDIR} |
28 |
|
29 |
# File is buggy and can't be used as documented upstream |
30 |
EXCLUDED_FILES= ${PORTNAME}-autoloads.el |
31 |
|
32 |
OPTIONS_DEFINE= DOCS EXAMPLES |
33 |
|
34 |
PORTDOCS= README.md screenshot.png |
35 |
PORTEXAMPLES= example.lisp |
36 |
|
37 |
do-build: |
38 |
cd ${WRKSRC} && ${EMACS_COMPILE} sly-*.el |
39 |
|
40 |
do-install: |
41 |
@${MKDIR} ${STAGEDIR}${THIS_LISPDIR} |
42 |
(cd ${WRKSRC} && \ |
43 |
${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \ |
44 |
"! ( -depth 1 ( ${EXCLUDED_FILES:C/^(.*)$/-name \1 -o/} \ |
45 |
${PORTDOCS:C/^(.*)$/-name \1 -o/} \ |
46 |
${PORTEXAMPLES:C/^(.*)$/-name \1 -o/} \ |
47 |
-name LICENSE -o -name *\.md -o -name \.[^.]* ) )") |
48 |
|
49 |
post-install-DOCS-on: |
50 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
51 |
${INSTALL_DATA} ${PORTDOCS:%=${WRKSRC}/%} ${STAGEDIR}${DOCSDIR} |
52 |
|
53 |
post-install-EXAMPLES-on: |
54 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
55 |
${INSTALL_DATA} ${PORTEXAMPLES:%=${WRKSRC}/%} ${STAGEDIR}${EXAMPLESDIR} |
56 |
|
57 |
.include <bsd.port.mk> |