blob: 3d3aab9702abf2a33e1557b9725b00318ba0d25e (
plain) (
blame)
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
|
PORTNAME= libegit2
DISTVERSION= g20200515
PORTREVISION= 6
CATEGORIES= devel elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= yasu@FreeBSD.org
COMMENT= Emacs bindings for libgit2
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgit2.so:devel/libgit2
USES= cmake:noninja emacs pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= magit
GH_TAGNAME= 0ef8b13
USE_LDCONFIG= yes
CMAKE_ON= USE_SYSTEM_LIBGIT2
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} \
's,%%LIBEGIT2_INSTALL_DIR%%,${PREFIX}/${EMACS_VERSION_SITE_LISPDIR},' \
${WRKSRC}/libgit.el
post-build:
(cd ${WRKSRC} \
&& ${EMACS_CMD} -Q -batch -L . -f batch-byte-compile libgit.el)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
${INSTALL_PROGRAM} ${WRKSRC}/../.build/libegit2.so \
${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
${INSTALL_DATA} ${WRKSRC}/libgit.el ${WRKSRC}/libgit.elc \
${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|