summaryrefslogtreecommitdiff
path: root/www/so/Makefile
blob: d5be06c6e1e353f65aef0e61e482499d4615620b (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
PORTNAME=	so
DISTVERSIONPREFIX=	v
DISTVERSION=	0.4.6
PORTREVISION=	2
CATEGORIES=	www

MAINTAINER=	sec.research.2005@gmail.com
COMMENT=	Terminal interface for Stack Overflow

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo ssl
USE_GITHUB=	yes
GH_ACCOUNT=	samtay

PLIST_FILES=	bin/so
PORTDATA=	themes/*.toml
PORTDOCS=	*.md

OPTIONS_DEFINE=	DOCS

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/so
	${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC} && ${COPYTREE_SHARE} themes ${STAGEDIR}${DATADIR})

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>