aboutsummaryrefslogtreecommitdiffstats
path: root/net/raggle/Makefile
blob: a1d65cf4c8f70316c9ae060946a480f67f5dc458 (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
47
# Created by: gslin@ccca.nctu.edu.tw
# $FreeBSD$

PORTNAME=   raggle
PORTVERSION=    0.4.4
CATEGORIES= net
MASTER_SITES=   http://www.raggle.org/files/

MAINTAINER= jadawin@FreeBSD.org
COMMENT=    Console RSS aggregator written in Ruby

RUN_DEPENDS=    ${RUBY_SITELIBDIR}/ncurses.rb:${PORTSDIR}/devel/ruby-ncurses

USE_RUBY=   yes
USE_RUBY_FEATURES=  rexml yaml

NO_BUILD=   yes

MAN1=       raggle.1
DOCS=       AUTHORS BUGS COPYING ChangeLog README TODO \
        doc/default_config.rb doc/pauls_feeds.opml.gz \
        doc/theme_documentation.txt

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/raggle ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DATADIR}/themes \
    ${STAGEDIR}${DATADIR}/extras/web_ui/images \
    ${STAGEDIR}${DATADIR}/extras/web_ui/inc ${STAGEDIR}${DATADIR}/extras/win32
    ${INSTALL_DATA} ${WRKSRC}/extras/*.rb ${STAGEDIR}${DATADIR}/extras
    ${INSTALL_DATA} ${WRKSRC}/extras/web_ui/*.html \
    ${STAGEDIR}${DATADIR}/extras/web_ui
    ${INSTALL_DATA} ${WRKSRC}/extras/web_ui/images/* \
    ${STAGEDIR}${DATADIR}/extras/web_ui/images
    ${INSTALL_DATA} ${WRKSRC}/extras/web_ui/inc/* \
    ${STAGEDIR}${DATADIR}/extras/web_ui/inc
    ${INSTALL_DATA} ${WRKSRC}/extras/win32/* ${STAGEDIR}${DATADIR}/extras/win32
    ${INSTALL_DATA} ${WRKSRC}/themes/* ${STAGEDIR}${DATADIR}/themes
.if ${PORT_OPTIONS:MDOCS} 
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>