From owner-svn-ports-all@freebsd.org Thu Mar 28 19:25:46 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0004F15666C5; Thu, 28 Mar 2019 19:25:45 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5EB787B13; Thu, 28 Mar 2019 19:25:45 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 80A9723A55; Thu, 28 Mar 2019 19:25:45 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2SJPjNK043371; Thu, 28 Mar 2019 19:25:45 GMT (envelope-from matthew@FreeBSD.org) Received: (from matthew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2SJPhim043362; Thu, 28 Mar 2019 19:25:43 GMT (envelope-from matthew@FreeBSD.org) Message-Id: <201903281925.x2SJPhim043362@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: matthew set sender to matthew@FreeBSD.org using -f From: Matthew Seaman Date: Thu, 28 Mar 2019 19:25:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r497055 - in head/www: p5-RT-Authen-ExternalAuth p5-RT-Extension-CommandByMail p5-RT-Extension-Gravatar p5-RT-Extension-LDAPImport p5-RT-Extension-MandatoryOnTransition p5-RT-Extension-... X-SVN-Group: ports-head X-SVN-Commit-Author: matthew X-SVN-Commit-Paths: in head/www: p5-RT-Authen-ExternalAuth p5-RT-Extension-CommandByMail p5-RT-Extension-Gravatar p5-RT-Extension-LDAPImport p5-RT-Extension-MandatoryOnTransition p5-RT-Extension-QuickAssign p5-RT-Extensi... X-SVN-Commit-Revision: 497055 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: A5EB787B13 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 19:25:46 -0000 Author: matthew Date: Thu Mar 28 19:25:43 2019 New Revision: 497055 URL: https://svnweb.freebsd.org/changeset/ports/497055 Log: Modernize and flavourize RT Extension ports Convert the RT{40,42,44} options to new rt42 and rt44 flavours. Drop all references to www/rt40 -- no longer in ports Default flavour is rt44, but several of these modules only support rt42. Ensure @rt42 flavour conflicts with www/rt44 port and vice-versa Re-order various sections and re-roll one patch to placate portlint Reviewed by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D17285 Modified: head/www/p5-RT-Authen-ExternalAuth/Makefile head/www/p5-RT-Extension-CommandByMail/Makefile head/www/p5-RT-Extension-Gravatar/Makefile head/www/p5-RT-Extension-LDAPImport/Makefile head/www/p5-RT-Extension-MandatoryOnTransition/Makefile head/www/p5-RT-Extension-QuickAssign/Makefile head/www/p5-RT-Extension-SLA/Makefile head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm head/www/p5-RTx-Calendar/Makefile Modified: head/www/p5-RT-Authen-ExternalAuth/Makefile ============================================================================== --- head/www/p5-RT-Authen-ExternalAuth/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Authen-ExternalAuth/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -8,46 +8,34 @@ MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org -COMMENT= RT extension to authenticate users against an external source +COMMENT= RT42 extension to authenticate users against an external source LICENSE= GPLv2 -BUILD_DEPENDS= ${RUN_DEPENDS} +BUILD_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ + p5-DBI>0:databases/p5-DBI \ + p5-Net-SSLeay>0:security/p5-Net-SSLeay \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ p5-DBI>0:databases/p5-DBI \ - p5-Net-SSLeay>0:security/p5-Net-SSLeay + p5-Net-SSLeay>0:security/p5-Net-SSLeay \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes - USES+= perl5 USE_PERL5= configure -# This module has been made part of core rt-4.4.x -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 +NO_ARCH= yes -.include +# This module has been made part of core rt-4.4.x +CONFLICTS_INSTALL= rt44 +RT_VER= 42 -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} - MAN3PREFIX= ${PREFIX} PLIST_SUB+= RTHOME=share/rt${RT_VER} # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{40,42}. Hence ignore +# matches the $PREFIX used to install www/rt42. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: Modified: head/www/p5-RT-Extension-CommandByMail/Makefile ============================================================================== --- head/www/p5-RT-Extension-CommandByMail/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-CommandByMail/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -3,42 +3,40 @@ PORTNAME= RT-Extension-CommandByMail PORTVERSION= 3.00 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= sysadmin@gkg.net COMMENT= RT Extension to change ticket metadata via email LICENSE= GPLv2 -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES= perl5 USE_PERL5= configure +NO_ARCH= yes + PLIST_SUB+= RTHOME=share/rt${RT_VER} # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ Modified: head/www/p5-RT-Extension-Gravatar/Makefile ============================================================================== --- head/www/p5-RT-Extension-Gravatar/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-Gravatar/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -3,42 +3,40 @@ PORTNAME= RT-Extension-Gravatar PORTVERSION= 2.01 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= sysadmin@gkg.net COMMENT= RT Extension to change ticket metadata via email LICENSE= GPLv2 -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES= perl5 USE_PERL5= configure +NO_ARCH= yes + PLIST_SUB+= RTHOME=share/rt${RT_VER} # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ Modified: head/www/p5-RT-Extension-LDAPImport/Makefile ============================================================================== --- head/www/p5-RT-Extension-LDAPImport/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-LDAPImport/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -3,52 +3,49 @@ PORTNAME= RT-Extension-LDAPImport PORTVERSION= 0.36 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www net perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= RT extension to import users from an LDAP store -LICENSE_COMB= dual LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ - p5-Class-Accessor>0:devel/p5-Class-Accessor + p5-Class-Accessor>0:devel/p5-Class-Accessor \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} +RUN_DEPENDS= p5-perl-ldap>0:net/p5-perl-ldap \ + p5-Class-Accessor>0:devel/p5-Class-Accessor \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES+= perl5 USE_PERL5= configure -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 +NO_ARCH= yes -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} - MAN3PREFIX= ${PREFIX} +MAN3PREFIX= ${PREFIX} PLIST_SUB+= RTHOME=share/rt${RT_VER} # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt{42,44}. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ Modified: head/www/p5-RT-Extension-MandatoryOnTransition/Makefile ============================================================================== --- head/www/p5-RT-Extension-MandatoryOnTransition/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-MandatoryOnTransition/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -5,37 +5,32 @@ PORTNAME= RT-Extension-MandatoryOnTransition DISTVERSION= 0.18 CATEGORIES= www net perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= Extension to require core and ticket custom fields on status changes LICENSE= GPLv2 -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT42 RT44 -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 +.endif + USES= perl5 USE_PERL5= configure + +NO_ARCH= yes PLIST_SUB+= RT_VER=${RT_VER} Modified: head/www/p5-RT-Extension-QuickAssign/Makefile ============================================================================== --- head/www/p5-RT-Extension-QuickAssign/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-QuickAssign/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -12,33 +12,22 @@ COMMENT= RT Extension to add owner change links on tic LICENSE= GPLv2 -# this is not compatible with RT 4.4 at this time. -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 - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes - USES= perl5 USE_PERL5= configure +NO_ARCH= yes + +# this is not compatible with RT 4.4 at this time. +CONFLICTS_INSTALL= rt44 +RT_VER=42 + PLIST_SUB+= RTHOME=share/rt${RT_VER} # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore +# matches the $PREFIX used to install www/rt42. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ Modified: head/www/p5-RT-Extension-SLA/Makefile ============================================================================== --- head/www/p5-RT-Extension-SLA/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-SLA/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -3,6 +3,7 @@ PORTNAME= RT-Extension-SLA PORTVERSION= 1.04 +PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -12,36 +13,20 @@ COMMENT= RT extension to automate due dates using serv LICENSE= GPLv2 -BUILD_DEPENDS= ${RUN_DEPENDS} -RUN_DEPENDS= p5-Business-Hours>0:misc/p5-Business-Hours +BUILD_DEPENDS= p5-Business-Hours>0:misc/p5-Business-Hours \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} +RUN_DEPENDS= p5-Business-Hours>0:misc/p5-Business-Hours \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -# SLA functionality comes as standard in RT 4.4.x -CONFLICTS_INSTALL= rt44-4.4.* - -NO_ARCH= yes - USES+= perl5 USE_PERL5= configure -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 +NO_ARCH= yes -.include +# SLA functionality comes as standard in RT 4.4.x +CONFLICTS_INSTALL= rt44 +RT_VER= 42 -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} -.endif -.endfor - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} - -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} - PLIST_SUB+= RTHOME=share/rt${RT_VER} SUB_LIST+= RTHOME=share/rt${RT_VER} @@ -50,7 +35,7 @@ SUB_LIST+= INITIALDATA=plugins/RT-Extension-SLA/etc/in SUB_FILES+= pkg-message # Note: You can install using an arbitrary $PREFIX but only if it -# matches the $PREFIX used to install www/rt{38,40,42}. Hence ignore +# matches the $PREFIX used to install www/rt42. Hence ignore # $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ Modified: head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm ============================================================================== --- head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RT-Extension-SLA/files/patch-inc__Module__Install__RTx.pm Thu Mar 28 19:25:43 2019 (r497055) @@ -1,6 +1,6 @@ ---- ./inc/Module/Install/RTx.pm.orig 2014-07-01 20:40:45.000000000 +0100 -+++ ./inc/Module/Install/RTx.pm 2014-07-03 23:02:03.735533399 +0100 -@@ -77,7 +77,7 @@ +--- inc/Module/Install/RTx.pm.orig 2014-12-18 22:31:31 UTC ++++ inc/Module/Install/RTx.pm +@@ -85,7 +85,7 @@ sub RTx { my %index = map { $_ => 1 } @INDEX_DIRS; $self->no_index( directory => $_ ) foreach grep !$index{$_}, @DIRS; Modified: head/www/p5-RTx-Calendar/Makefile ============================================================================== --- head/www/p5-RTx-Calendar/Makefile Thu Mar 28 19:20:39 2019 (r497054) +++ head/www/p5-RTx-Calendar/Makefile Thu Mar 28 19:25:43 2019 (r497055) @@ -5,7 +5,6 @@ PORTNAME= RTx-Calendar PORTVERSION= 1.01 CATEGORIES= www perl5 MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- MAINTAINER= matthew@FreeBSD.org COMMENT= Calendar extension module for the RT ticketing system @@ -13,39 +12,37 @@ COMMENT= Calendar extension module for the RT ticketin LICENSE_COMB= dual LICENSE= ART10 GPLv1+ -BUILD_DEPENDS= ${RUN_DEPENDS} + +BUILD_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ + p5-Data-ICal>0:deskutils/p5-Data-ICal \ + p5-DateTime-Set>0:devel/p5-DateTime-Set \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} RUN_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ p5-Data-ICal>0:deskutils/p5-Data-ICal \ - p5-DateTime-Set>0:devel/p5-DateTime-Set + p5-DateTime-Set>0:devel/p5-DateTime-Set \ + ${LOCALBASE}/bin/rt:www/rt${RT_VER} -NO_ARCH= yes +FLAVOR?= ${FLAVORS:[1]} +FLAVORS= rt44 rt42 +rt42_PKGNAMEPREFIX= p5-RT42- +rt42_CONFLICTS_INSTALL= rt44 +rt44_PKGNAMEPREFIX= p5-RT44- +rt44_CONFLICTS_INSTALL= rt42 -USES+= perl5 -USE_PERL5= configure - -OPTIONS_SINGLE= RTVERSION -OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 -RT40_DESC= Install for rt-4.0.x (www/rt40) -RT42_DESC= Install for rt-4.2.x (www/rt42) -RT44_DESC= Install for rt-4.4.x (www/rt44) -OPTIONS_DEFAULT= RT44 - -.include - -.for opt in ${OPTIONS_SINGLE_RTVERSION} -.if ${PORT_OPTIONS:M${opt}} -RT_VER= ${opt:S/RT//} +.if ${FLAVOR} == rt44 +RT_VER= 44 +.elif ${FLAVOR} == rt42 +RT_VER= 42 .endif -.endfor -RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} +USES= perl5 +USE_PERL5= configure +NO_ARCH= yes + MAN3PREFIX= ${PREFIX} PLIST_SUB+= RTHOME=share/rt${RT_VER} - -### Temporary for debugging -#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} post-patch: @${FIND} ${WRKSRC} -name '*.orig' -delete