summaryrefslogtreecommitdiff
path: root/www/php-tt-rss/Makefile
blob: 72d0c9704478adb91c6375f19dcdad5b00a5920f (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
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
# $NetBSD: Makefile,v 1.10 2014/06/29 15:23:47 ryoon Exp $

TTRVER=		1.12
DISTNAME=	Tiny-Tiny-RSS-${TTRVER}
PKGNAME=	${PHP_PKG_PREFIX}-tt-rss-${TTRVER}
CATEGORIES=	www
MASTER_SITES=	-http://github.com/gothfox/Tiny-Tiny-RSS/archive/${TTRVER}.tar.gz

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	http://tt-rss.org/
COMMENT=	Tiny Tiny RSS is an open source web-based RSS feed reader
LICENSE=	gnu-gpl-v2

DEPENDS+=	${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring
DEPENDS+=	${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
DEPENDS+=	${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php-dom
DEPENDS+=	${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv

.include "options.mk"

USE_PKGLOCALEDIR=	yes
USE_LANGUAGES=		# none

NO_BUILD=	yes

USE_TOOLS+=	pax

TR_DIR=		share/tt-rss
INSTALLATION_DIRS=	${TR_DIR}

CHECK_INTERPRETER_SKIP+=	share/tt-rss/lib/dojo-src/rebuild-dojo.sh
CHECK_INTERPRETER_SKIP+=	share/tt-rss/update.php
CHECK_INTERPRETER_SKIP+=	share/tt-rss/update_daemon2.php
CHECK_INTERPRETER_SKIP+=	share/tt-rss/utils/extract-i18n-js.pl

.include "../../mk/bsd.prefs.mk"

APACHE_USER?=	www
APACHE_GROUP?=	www
PKG_GROUPS=	${APACHE_GROUP}
PKG_USERS=	${APACHE_USER}:${APACHE_GROUP}

PKG_USERS_VARS=		APACHE_USER
PKG_GROUPS_VARS=	APACHE_GROUP

FILES_SUBST+=	WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
		TR_DIR=${TR_DIR}

CONF_FILES_PERMS=	${PREFIX}/share/tt-rss/config.php-dist \
			${PREFIX}/share/tt-rss/config.php \
			${APACHE_USER} ${APACHE_GROUP} 640

do-install:
	cd ${WRKSRC} && pax -rw -pmp * \
		${DESTDIR}${PREFIX}/share/tt-rss

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"