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

MAINTAINER=	sec.research.2005@gmail.com
COMMENT=	Terminal interface for Stack Overflow
WWW=		https://github.com/samtay/so

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>