blob: 12c5c5da074a7376f895963d038a1d6e582b506a (
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
|
PORTNAME= emacsql
DISTVERSION= 3.1.1-43
DISTVERSIONSUFFIX= -g59de83a
CATEGORIES= databases elisp
PKGNAMESUFFIX= -devel${EMACS_PKGNAMESUFFIX}
MAINTAINER= yasu@FreeBSD.org
COMMENT= High-level Emacs Lisp RDBMS front-end (Development Version)
WWW= https://github.com/magit/emacsql
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/UNLICENSE
BUILD_DEPENDS= emacs-sqlite3-api${EMACS_PKGNAMESUFFIX}>=0.16:databases/emacs-sqlite3-api@${EMACS_FLAVOR} \
pg.el${EMACS_PKGNAMESUFFIX}>=0.16:databases/pg.el@${EMACS_FLAVOR}
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
RUN_DEPENDS= emacs-sqlite3-api${EMACS_PKGNAMESUFFIX}>=0.16:databases/emacs-sqlite3-api@${EMACS_FLAVOR} \
pg.el${EMACS_PKGNAMESUFFIX}>=0.16:databases/pg.el@${EMACS_FLAVOR}
USES= emacs gmake localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= magit
MAKE_ENV+= LOAD_PATH="-L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}"
MAKE_JOBS_UNSAFE= yes
TEST_TARGET= test
CONFLICTS_INSTALL= emacsql emacsql-emacs_*
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-patch:
${RM} ${WRKSRC}/sqlite/sqlite3.[ch]
${REINPLACE_CMD} 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/emacsql-sqlite.el
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/bin \
${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/sqlite/emacsql-sqlite \
${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc \
${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|