1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/net/gorss/Makefile
Fernando Apesteguía 552ebd5e9b net/gorss: Fix PORTREVISION
Damn! Sorry for that.

Reported by:	eduardo@
Fixes:		37def7ff23
2023-08-21 09:30:39 +02:00

43 lines
968 B
Makefile

PORTNAME= gorss
PORTVERSION= 0.3
DISTVERSIONPREFIX= v
PORTREVISION= 14
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 <bsd.port.options.mk>
.if (${OPSYS} == FreeBSD && ( ${OSVERSION} < 1400000))
USES+= ncurses:port
.endif
.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>