Date: Sun, 29 Dec 2002 09:11:28 +1100 From: Edwin Groothuis <edwin@mavetju.org> To: Tim Daneliuk <tundra@tundraware.com> Cc: FreeBSD Ports Mailing List <freebsd-ports@FreeBSD.ORG> Subject: Re: Port Authoring Questions Message-ID: <20021228221128.GA50581@k7.mavetju> In-Reply-To: <3E0DCE12.5020707@tundraware.com> References: <3E0DCE12.5020707@tundraware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 28, 2002 at 10:15:14AM -0600, Tim Daneliuk wrote: > Is there a way to express a dependency which says something like, > "this program requires Python 2.2 *or later*". I don't want to > have to modify the port every time Python changes version, but I need > at least version 2.2 in place for the port in question. "USE_PYTHON=yes" > does not appear to guarantee any particular version of Python. > > In a similar vein, I want to make sure the correct version of Tkinter is > installed. At the moment, I am using this: > > BUILD_DEPENDS=${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter > RUN_DEPENDS=${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter > > > Again, this does not specify a version - i.e., That this version of > Tkinter tracks the Python 2.2 or later release. I think you can do it with PYTHON_REL. .if ${PYTHON_REL} < 220 BROKEN= "Need python version > 2.2, found ${PYTHON_REL} .endif Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php 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?20021228221128.GA50581>