aboutsummaryrefslogtreecommitdiffstats
path: root/www/p5-RT-Extension-MandatoryOnTransition
diff options
context:
space:
mode:
authormatthew <matthew@FreeBSD.org>2013-12-02 01:51:42 +0800
committermatthew <matthew@FreeBSD.org>2013-12-02 01:51:42 +0800
commit3d07538bd3e2b924d014e27f2ff7e9314fae3bac (patch)
tree2cdcc0648640cb2223af863fc4a99233ed50c3a4 /www/p5-RT-Extension-MandatoryOnTransition
parent4f98617f81fd2464fcdcfca54caa16efd17c57e0 (diff)
downloadfreebsd-ports-gnome-3d07538bd3e2b924d014e27f2ff7e9314fae3bac.tar.gz
freebsd-ports-gnome-3d07538bd3e2b924d014e27f2ff7e9314fae3bac.tar.zst
freebsd-ports-gnome-3d07538bd3e2b924d014e27f2ff7e9314fae3bac.zip
Update all the RT extension modules to work with www/rt42 and make
that the new default.
Diffstat (limited to 'www/p5-RT-Extension-MandatoryOnTransition')
-rw-r--r--www/p5-RT-Extension-MandatoryOnTransition/Makefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/www/p5-RT-Extension-MandatoryOnTransition/Makefile b/www/p5-RT-Extension-MandatoryOnTransition/Makefile
index c5ee7bb38ab7..4b74e5420a47 100644
--- a/www/p5-RT-Extension-MandatoryOnTransition/Makefile
+++ b/www/p5-RT-Extension-MandatoryOnTransition/Makefile
@@ -3,6 +3,7 @@
PORTNAME= RT-Extension-MandatoryOnTransition
DISTVERSION= 0.04
+PORTREVISION= 1
CATEGORIES= www net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -12,16 +13,30 @@ COMMENT= Extension to require core and ticket custom fields on status changes
LICENSE= GPLv2
-BUILD_DEPENDS= rt${RT_VER}>4.0.8:${PORTSDIR}/www/rt${RT_VER}
-RUN_DEPENDS= rt${RT_VER}>4.0.8:${PORTSDIR}/www/rt${RT_VER}
+OPTIONS_SINGLE= RTVERSION
+OPTIONS_SINGLE_RTVERSION= RT40 RT42
+RT40_DESC= Install for rt-4.0.x (www/rt40)
+RT42_DESC= Install for rt-4.2.x (www/rt42)
+OPTIONS_DEFAULT= RT42
+
+.include <bsd.port.options.mk>
+
+.for opt in 40 42
+.if ${PORT_OPTIONS:MRT${opt}}
+RT_VER= ${opt}
+.endif
+.endfor
+
+### Temporary for debugging
+#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER}
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/rt:${PORTSDIR}/www/rt${RT_VER}
+RUN_DEPENDS= ${LOCALBASE}/bin/rt:${PORTSDIR}/www/rt${RT_VER}
USES= perl5
USE_PERL5= configure
PLIST_SUB+= RT_VER=${RT_VER}
-RT_VER= 40
-
-#MAN3PREFIX= ${PREFIX}
# Note: You can install using an arbitrary $PREFIX but only if it
# matches the $PREFIX used to install www/rt{38,40}. Hence ignore