1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/redmine/Makefile
Sunpoet Po-Chuan Hsieh 4a632d5c9f - Update RUN_DEPENDS
- Silence extract message
- Simplify do-install: remove .bak and .orig files in post-patch:
- Remove no-op CHMOD for WRKSRC/script
- Use @(owner,group,mode) and @dir(owner,group,mode) syntax instead of CHMOD/CHOWN
- Bump PORTREVISION for package change
2015-06-10 16:47:35 +00:00

94 lines
3.0 KiB
Makefile

# Created by: Bernhard Froehlich <decke@bluelife.at>
# $FreeBSD$
PORTNAME= redmine
PORTVERSION= 2.6.3
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.redmine.org/releases/
MAINTAINER= ruby@FreeBSD.org
COMMENT= Flexible project management web application
LICENSE= GPLv2
RUN_DEPENDS= rubygem-builder>=3.0.0:${PORTSDIR}/devel/rubygem-builder \
rubygem-bundler>=0:${PORTSDIR}/sysutils/rubygem-bundler \
rubygem-coderay>=1.0.9:${PORTSDIR}/textproc/rubygem-coderay \
rubygem-fastercsv>=1.5.0:${PORTSDIR}/devel/rubygem-fastercsv \
rubygem-i18n>=0.7.0:${PORTSDIR}/devel/rubygem-i18n \
rubygem-net-ldap>=0.3.1:${PORTSDIR}/net/rubygem-net-ldap \
rubygem-rack-openid>=0:${PORTSDIR}/www/rubygem-rack-openid \
rubygem-rails>=3.2.16:${PORTSDIR}/www/rubygem-rails \
rubygem-rake>=0:${PORTSDIR}/devel/rubygem-rake \
rubygem-rbpdf>=0:${PORTSDIR}/print/rubygem-rbpdf \
rubygem-redcarpet>=3.0:${PORTSDIR}/textproc/rubygem-redcarpet \
rubygem-request_store>=1.1.0:${PORTSDIR}/devel/rubygem-request_store \
rubygem-rubytree>=0:${PORTSDIR}/devel/rubygem-rubytree
NO_ARCH= yes
NO_BUILD= yes
USE_RUBY= yes
USES= cpe
USERS= ${WWWOWN}
GROUPS= ${WWWGRP}
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
SUB_LIST= RUBY_NAME=${RUBY_NAME}
OPTIONS_DEFINE= MYSQL MYSQL2 POSTGRESQL RMAGIC WWWSERVER
OPTIONS_DEFAULT=MYSQL2 RMAGIC WWWSERVER THIN
OPTIONS_SINGLE= WWWSERVER
OPTIONS_SINGLE_WWWSERVER= THIN PASSENGER
POSTGRESQL_DESC=Enable PostgreSQL support
RMAGIC_DESC= Enable Gantt charts support
THIN_DESC= Use Thin WEB server
PASSENGER_DESC= Use Apache/Nginx WEB server
MYSQL2_DESC= MySQL database support (via mysql2 rubygem)
NO_OPTIONS_SORT=yes
MYSQL_RUN_DEPENDS= rubygem-mysql>=2.8.1:${PORTSDIR}/databases/rubygem-mysql
MYSQL2_RUN_DEPENDS= rubygem-mysql2>=0:${PORTSDIR}/databases/rubygem-mysql2
POSTGRESQL_RUN_DEPENDS= rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg
RMAGIC_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-Gemfile
RMAGIC_RUN_DEPENDS= rubygem-rmagick>=2.0.0:${PORTSDIR}/graphics/rubygem-rmagick
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MWWWSERVER}
.if ${PORT_OPTIONS:MTHIN}
RUN_DEPENDS+= thin:${PORTSDIR}/www/rubygem-thin
USE_RC_SUBR= redmine
SUB_LIST+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-thin-Gemfile
.endif
.if ${PORT_OPTIONS:MPASSENGER}
RUN_DEPENDS+= passenger-config:${PORTSDIR}/www/rubygem-passenger
.endif
.endif
post-extract:
@${RM} ${WRKSRC}/.hgignore ${WRKSRC}/.travis.yml
@${MV} ${WRKSRC}/config/settings.yml ${WRKSRC}/config/settings.yml-dist
post-patch:
@${FIND} ${WRKSRC} -name '*.bak' -o -name '*.orig' -delete
pre-install:
${MKDIR} ${WRKSRC}/public/plugin_assets
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
${MKDIR} ${STAGEDIR}${WWWDIR}/tmp/pids
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
post-install:
${TOUCH} ${STAGEDIR}${WWWDIR}/Gemfile.lock
if ! [ -r ${STAGEDIR}${WWWDIR}/config/settings.yml ]; then \
${INSTALL_DATA} ${STAGEDIR}${WWWDIR}/config/settings.yml-dist \
${STAGEDIR}${WWWDIR}/config/settings.yml; \
fi
.include <bsd.port.mk>