summaryrefslogtreecommitdiff
path: root/net/gorss/Makefile
blob: ca1ea8f590d47092c1082ca2672fd9accd9c771d (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
PORTNAME=	gorss
PORTVERSION=	0.4
DISTVERSIONPREFIX=	v
PORTREVISION=	6
CATEGORIES=	net www

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple RSS/Atom reader written in Go
WWW=		https://github.com/Lallassu/gorss

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_GITHUB=	yes
GH_ACCOUNT=	Lallassu

.include "${.CURDIR}/Makefile.deps"

GO_BUILDFLAGS=	-ldflags "-w -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/internal.Version=${PORTVERSION}"
GO_TARGET=	./cmd/${PORTNAME}

PLIST_FILES=	bin/${PORTNAME} \
		${DATADIR_REL}/gorss.conf \
		${DATADIR_REL}/themes/default.theme \
		${DATADIR_REL}/themes/irssi.theme \
		${DATADIR_REL}/themes/night.theme

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
		${WRKSRC}/vendor/github.com/OpenPeeDeeP/xdg/xdg_bsd.go

post-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${CP} -a ${WRKSRC}/gorss.conf ${WRKSRC}/themes ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>