Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= sly-asdf |
4 |
PORTVERSION= 20210308 |
5 |
CATEGORIES= editors elisp |
6 |
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} |
7 |
|
8 |
MAINTAINER= olce.freebsd.ports@certner.fr |
9 |
COMMENT= SLY support for ASDF |
10 |
|
11 |
LICENSE= GPLv3 |
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= mmgeorge |
20 |
GH_TAGNAME= bcaeba9b73b582ae1c4fadc23c71ee7e38d9a64e |
21 |
|
22 |
NO_ARCH= yes |
23 |
|
24 |
EMACS_COMPILE= ${EMACS_CMD} --batch --no-site-file -L ${WRKSRC} \ |
25 |
-f batch-byte-compile |
26 |
|
27 |
PLIST_THIS_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} |
28 |
THIS_LISPDIR= ${PREFIX}/${PLIST_THIS_LISPDIR} |
29 |
PLIST_SUB+= THIS_LISPDIR=${PLIST_THIS_LISPDIR} |
30 |
|
31 |
OPTIONS_DEFINE= DOCS |
32 |
|
33 |
PORTDOCS= README.md |
34 |
|
35 |
post-patch: |
36 |
cd ${WRKSRC} && rm -f *flymake* |
37 |
|
38 |
do-build: |
39 |
cd ${WRKSRC} && ${EMACS_COMPILE} sly-*.el |
40 |
|
41 |
do-install: |
42 |
@${MKDIR} ${STAGEDIR}${THIS_LISPDIR} |
43 |
(cd ${WRKSRC} && \ |
44 |
${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \ |
45 |
"! ( -depth 1 ( ${PORTDOCS:C/^(.*)$/-name \1 -o/} \ |
46 |
-name LICENSE -o -name *\.md ) -o \ |
47 |
-path \./test* -o -path \./.[^.]* -o \ |
48 |
-name *\.orig )") |
49 |
|
50 |
post-install-DOCS-on: |
51 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
52 |
${INSTALL_DATA} ${PORTDOCS:%=${WRKSRC}/%} ${STAGEDIR}${DOCSDIR} |
53 |
|
54 |
.include <bsd.port.mk> |