aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/tvrss/Makefile
blob: da4f75e95e780c4d8d996ffd608f8059598da3ff (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    tv rss
# Date created:     Sat Sep 30 01:40:54 UTC 2006
# Whom:         Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tvrss
DISTVERSION=    1.8beta
PORTREVISION=   1
CATEGORIES= net-p2p
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tvtrss

MAINTAINER= ports@FreeBSD.org
COMMENT=    Torrent RSS feed reader

RUN_DEPENDS=    \
        ${SITE_PERL}/${PERL_ARCH}/Data/Dumper.pm:${PORTSDIR}/devel/p5-Data-Dumper \
        ${SITE_PERL}/${PERL_ARCH}/Glib.pm:${PORTSDIR}/devel/p5-Glib2 \
        ${SITE_PERL}/${PERL_ARCH}/Gtk2/Gdk/Keysyms.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
        ${SITE_PERL}/${PERL_ARCH}/Gtk2/SimpleList.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
        ${SITE_PERL}/XML/RAI.pm:${PORTSDIR}/textproc/p5-XML-RAI \
        wget:${PORTSDIR}/ftp/wget

USE_PERL=   yes
NO_BUILD=   yes

PLIST_FILES=    \
        bin/${PORTNAME} \
        %%DATADIR%%/${PORTNAME}.png
PLIST_DIRS= \
        %%DATADIR%%

DESKTOP_ENTRIES=    "TV RSS" \
            "Torrent RSS feed reader" \
            "${DATADIR}/tvrss.png" \
            "tvrss" \
            "Application;P2P;Network;" \
            true

# RSS feeds
RSS_FEED_EZTV=  http://tvrss.net/feed/eztv/
RSS_FEED_VTV=   http://tvrss.net/feed/vtv/

post-patch:
    @${REINPLACE_CMD} -E \
        -e 's|/usr/bin/perl|${PERL}|' \
        ${WRKSRC}/${PORTNAME}
# rss feed source update
    @${REINPLACE_CMD} -E \
        -e 's|http://tvrss.net/sources/eztv/|${RSS_FEED_EZTV}|' \
        -e 's|http://tvrss.net/sources/vtv/|${RSS_FEED_VTV}|' \
        ${WRKSRC}/${PORTNAME}

do-install:
# icons
    @${MKDIR} ${DATADIR}
    @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${DATADIR}
# scripts
    @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>