From 67cf1526e783ff7d34476f555d388307e1959b34 Mon Sep 17 00:00:00 2001 From: ahze Date: Tue, 4 Sep 2007 11:04:38 +0000 Subject: Make this port work if PORTNAME has a '-' in it git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9524 df743ca5-7f9a-e211-a948-0013205c9059 --- misc/gnome2-reference/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/gnome2-reference/Makefile b/misc/gnome2-reference/Makefile index 886e4e3f8..1f37192df 100644 --- a/misc/gnome2-reference/Makefile +++ b/misc/gnome2-reference/Makefile @@ -3,7 +3,7 @@ # Whom: Michael Johnson # # $FreeBSD$ -# $MCom: ports/misc/gnome2-reference/Makefile,v 1.4 2007/09/04 03:35:39 ahze Exp $ +# $MCom: ports/misc/gnome2-reference/Makefile,v 1.5 2007/09/04 03:37:13 ahze Exp $ PORTNAME= gnome2-reference PORTVERSION= 2.20 @@ -64,11 +64,11 @@ REF_LIST_INC= ${.CURDIR}/Makefile.inc .include .for ref in ${_PORT_REF_LIST:C/^([^:]+).*/\1/} -OPTIONS+= ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:U} "Install ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//} programing reference " on +OPTIONS+= ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U} "Install ${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//} programing reference " on .endfor .for ref in ${_PORT_REF_LIST} -.if !defined(WITHOUT_${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:U:C/^([^:]+).*/\1/}) +.if !defined(WITHOUT_${ref:C|^[^/]+/([^/]+).*|\1|:S/-reference//:S/-/_/:U:C/^([^:]+).*/\1/}) RUN_DEPENDS+= ${ref:C|^[^:]+:([^:]+).*|\1|:C|^[^/]+/([^/]+).*|\1|}>0:${PORTSDIR}/${ref:C/^([^:]+).*/\1/} .endif .endfor -- cgit v1.2.3