Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2002 14:13:54 +0200
From:      Lars Thegler <lars@thegler.dk>
To:        Volker Stolz <vs@lambda.foldr.org>
Cc:        ports@freebsd.org
Subject:   Re: Wrangling with dependency on specific perl version
Message-ID:  <3DB14C82.1060506@thegler.dk>
References:  <20021018142654.GA61644@lambda.foldr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Volker Stolz wrote:
> Would the following be acceptable to prevent this port
> from being built on host like 4.6 which don't have a
> required in-tree version of perl?

I have been toying with this exact problem. I see only a couple of ports 
Makefiles are attempting to deal with this. There is no exact current 
best practice, but I personally like the way Tobez does this in 
net/p5-NetAddr-IP:

.if !defined(BATCH)
pre-fetch:
   @${PERL} -M5.6.0 -e '' >/dev/null 2>&1 || \
   ( ${ECHO_CMD} "This port requires perl 5.6.0" ; exit 1 )
.endif

This gives instant feedback, and also allows finer granularity (e.g. 
perl >= 5.6.1)

/Lars


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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