Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2010 21:11:52 GMT
From:      Artem Naluzhnyy <tut@nhamon.com.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/145633: [patch] www/redmine: add extra options to the port
Message-ID:  <201004112111.o3BLBqZ9087534@www.freebsd.org>
Resent-Message-ID: <201004112120.o3BLK1O2085559@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145633
>Category:       ports
>Synopsis:       [patch] www/redmine: add extra options to the port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 11 21:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Artem Naluzhnyy
>Release:        
>Organization:
>Environment:
>Description:
  * Add optional Gantt chars support (graphics/ruby-rmagick)
  * Replace mandatory Thin (www/rubygem-thin) dependency with optional Thin or Apache/Ngnix support (www/rubygem-passenger)
>How-To-Repeat:

>Fix:
diff -ruN redmine.bak/Makefile redmine/Makefile
--- redmine.bak/Makefile	2010-04-11 19:24:51.000000000 +0000
+++ redmine/Makefile	2010-04-11 20:57:00.000000000 +0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	redmine
 PORTVERSION=	0.9.3
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_RUBYFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,18 +15,17 @@
 MAINTAINER=	decke@FreeBSD.org
 COMMENT=	A flexible project management web application
 
-RUN_DEPENDS=	rackup:${PORTSDIR}/www/rubygem-rack \
-		thin:${PORTSDIR}/www/rubygem-thin
-
 USE_RUBY=	yes
 USE_RUBY_FEATURES=	iconv
 USE_RAKE=	yes
 NO_BUILD=	yes
-USE_RC_SUBR=	redmine
 SUB_LIST+=	RUBY_NAME=${RUBY_NAME}
 
-OPTIONS=	MYSQL	"Enable MySQL Support" on \
-		POSTGRESQL "Enable PostgreSQL Support" off
+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>
 
@@ -38,6 +37,24 @@
 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
+
 do-install:
 	${MKDIR} ${WWWDIR}
 	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "*" ${WWWDIR} "! -name *.orig")


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004112111.o3BLBqZ9087534>