blob: 4689500381cc192702a065d4ab19c9cef9359acc (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# New ports collection makefile for: redmine
# Date created: 2009-02-24
# Whom: Bernhard Froehlich <decke@bluelife.at>
#
# $FreeBSD$
#
PORTNAME= redmine
PORTVERSION= 1.1.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= decke@FreeBSD.org
COMMENT= A flexible project management web application
RUN_DEPENDS= rackup:${PORTSDIR}/www/rubygem-rack \
rubygem-i18n>=0.4.2:${PORTSDIR}/devel/rubygem-i18n
USE_RUBY= yes
USE_RUBY_FEATURES= iconv
USE_RAKE= yes
NO_BUILD= yes
SUB_LIST+= RUBY_NAME=${RUBY_NAME}
OPTIONS= MYSQL "Enable MySQL support" on \
POSTGRESQL "Enable PostgreSQL support" off \
RMAGIC "Enable Gantt charts support" on \
THIN "Use Thin WEB server" on \
PASSENGER "Use Apache/Nginx WEB server" off
.include <bsd.port.pre.mk>
.if defined(WITH_MYSQL)
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/mysql.so:${PORTSDIR}/databases/ruby-mysql
.endif
.if defined(WITH_POSTGRESQL)
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/pg.so:${PORTSDIR}/databases/ruby-pg
.endif
.if defined(WITH_RMAGIC)
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/RMagick2.so:${PORTSDIR}/graphics/ruby-rmagick
.endif
.if defined(WITH_THIN)
RUN_DEPENDS+= thin:${PORTSDIR}/www/rubygem-thin
USE_RC_SUBR= redmine
.endif
.if defined(WITH_PASSENGER)
RUN_DEPENDS+= passenger-config:${PORTSDIR}/www/rubygem-passenger
.endif
.if !defined(WITH_THIN) && !defined(WITH_PASSENGER)
IGNORE= either Thin or Apache/Nginx WEB server option required. \
Please 'make config' again.
.endif
post-patch:
# hack to fix template syntax for rubygem-i18n >= 0.5.0
${FIND} ${WRKSRC} -name "*.yml" -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|{{|%{|g ; s|}}|}|g'
do-install:
${MKDIR} ${WWWDIR}
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${WWWDIR} "! -name *.orig ! -name *.bak")
${MKDIR} ${WWWDIR}/public/plugin_assets
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
${FIND} ${WWWDIR}/script -type f -exec ${CHMOD} 755 {} \;
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|