2022-02-11 14:58:02 +00:00
|
|
|
PORTNAME= gorss
|
|
|
|
PORTVERSION= 0.3
|
|
|
|
DISTVERSIONPREFIX= v
|
2023-08-17 08:03:46 +00:00
|
|
|
PORTREVISION= 14
|
2022-02-11 14:58:02 +00:00
|
|
|
CATEGORIES= net www
|
|
|
|
|
2022-08-23 11:51:28 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2022-02-11 14:58:02 +00:00
|
|
|
COMMENT= Simple RSS/Atom reader written in Go
|
2022-09-07 21:06:12 +00:00
|
|
|
WWW= https://github.com/Lallassu/gorss
|
2022-02-11 14:58:02 +00:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
USES= go:modules
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= Lallassu
|
|
|
|
|
2023-08-17 08:03:46 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if (${OPSYS} == FreeBSD && ( ${OSVERSION} < 1400000))
|
|
|
|
USES+= ncurses:port
|
|
|
|
.endif
|
|
|
|
|
2022-02-11 14:58:02 +00:00
|
|
|
.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}/themes/default.theme \
|
|
|
|
${DATADIR_REL}/themes/irssi.theme \
|
|
|
|
${DATADIR_REL}/themes/night.theme
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${LN} -sf xdg_linux.go \
|
|
|
|
${WRKSRC}/vendor/github.com/OpenPeeDeeP/xdg/xdg_${OPSYS:tl}.go
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${CP} -a ${WRKSRC}/themes ${STAGEDIR}${DATADIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|