blob: d0a934eb24aed30df7d01cc37b558a90625da086 (
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
|
PORTNAME= mergestat
DISTVERSIONPREFIX= v
DISTVERSION= 0.5.4
PORTREVISION= 21
CATEGORIES= textproc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Query git repositories with SQL
WWW= https://www.mergestat.com/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= fails to build
DEPRECATED= Marked BROKEN for over a year
EXPIRATION_DATE=2024-05-31
BUILD_DEPENDS= sqlite3>=3.0.0:databases/sqlite3
LIB_DEPENDS= libgit2.so:devel/libgit2
USES= go:modules pkgconfig
GO_MODULE= github.com/${PORTNAME}/${PORTNAME}
GO_BUILDFLAGS= -tags sqlite_vtable,sqlite_json1,system_libgit2
GO_TESTFLAGS= ${GO_BUILDFLAGS}
CGO_CFLAGS+= -DUSE_LIBSQLITE3
CGO_LDFLAGS+= -Wl,--unresolved-symbols=ignore-in-object-files
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
pre-patch:
@${MKDIR} ${WRKSRC}/vendor/go.riyazali.net/sqlite/bridge
@${CP} ${FILESDIR}/bridge.h ${FILESDIR}/bridge.c ${WRKSRC}/vendor/go.riyazali.net/sqlite/bridge
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|