1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/databases/emacsql/Makefile
Yasuhiro Kimura 585e00a411 databases/emacsql: New port: High-level Emacs Lisp RDBMS front-end
PR:		255958
Approved by:	lwhsu (mentor)
2021-06-01 22:18:54 -04:00

46 lines
1.2 KiB
Makefile

PORTNAME= emacsql
DISTVERSION= 3.0.0
CATEGORIES= databases elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= yasu@utahime.org
COMMENT= High-level Emacs Lisp RDBMS front-end
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/UNLICENSE
BUILD_DEPENDS= pg.el${EMACS_PKGNAMESUFFIX}>=0.13:databases/pg.el@${EMACS_FLAVOR}
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
RUN_DEPENDS= pg.el${EMACS_PKGNAMESUFFIX}>=0.13:databases/pg.el@${EMACS_FLAVOR}
USES= emacs localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= skeeto
MAKE_ENV+= LOAD_PATH="-L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}"
ALL_TARGET= binary compile
TEST_TARGET= check
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>