summaryrefslogtreecommitdiff
path: root/www/gist/Makefile
blob: 8d96b5950eb285c1006889723c5ea600988e7ad9 (plain) (blame)
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
# Created by: Ricky E. <codeblock@eighthbit.net>

PORTNAME=	gist
PORTVERSION=	5.1.0
DISTVERSIONPREFIX=	v
CATEGORIES=	www net

MAINTAINER=	changlp@cs.nctu.edu.tw
COMMENT=	Gist pastebin posting command

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.MIT

RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss

CONFLICTS=	p5-App-gist py*-python-gist yorick # bin/gist

USE_GITHUB=	yes
GH_ACCOUNT=	defunkt

USE_RUBY=	YES
RUBY_NO_BUILD_DEPENDS=	YES
NO_BUILD=	YES
NO_ARCH=	yes

PLIST_FILES=	bin/gist \
		man/man1/gist.1.gz

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/build/gist

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/build/gist ${STAGEDIR}${PREFIX}/bin/gist
	${INSTALL_MAN} ${WRKSRC}/build/gist.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

.include <bsd.port.mk>