aboutsummaryrefslogtreecommitdiffstats
path: root/irc/rbot/Makefile
blob: f9b56261243c9a2da8f8d38073c2bbec49a72986 (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
37
38
39
40
41
42
43
44
45
46
# Created by: David Bushong <david+ports@bushong.net>
# $FreeBSD$

PORTNAME=   rbot
PORTVERSION=    20160325
PORTREVISION=   0
PORTEPOCH=  1
CATEGORIES= irc ruby

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    Ruby IRC bot similar to infobot

LICENSE=    GPLv2 MIT
LICENSE_COMB=   dual
LICENSE_FILE_GPLv2= ${WRKSRC}/GPLv2
LICENSE_FILE_MIT=   ${WRKSRC}/COPYING.rbot

RUN_DEPENDS=    ${RUBY_SITEARCHLIBDIR}/tokyocabinet.so:databases/ruby-tokyocabinet \
        rubygem-gettext>=0:devel/rubygem-gettext \
        rubygem-htmlentities>=0:textproc/rubygem-htmlentities \
        rubygem-hpricot>=0:www/rubygem-hpricot \
        rubygem-mechanize>=0:www/rubygem-mechanize \
        rubygem-tzinfo>=0:devel/rubygem-tzinfo \
        rubygem-oauth>=0:net/rubygem-oauth \
        rubygem-oauth2>=0:net/rubygem-oauth2
LIB_DEPENDS=    libtokyocabinet.so:databases/tokyocabinet

USE_RUBY=   yes
USE_RUBY_SETUP= yes
CONFIGURE_ARGS= --prefix=${PREFIX}

USE_GITHUB= yes
GH_ACCOUNT= ruby-${PORTNAME}
GH_TAGNAME= e358601cc521d8aced941eb928fae2d8c53cf0c2

SUB_FILES=  pkg-message

PORTDOCS=   REQUIREMENTS ChangeLog

OPTIONS_DEFINE= DOCS

post-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>