Subject: Re: depending on either teTeX or teTeX2
To: Jeremy C. Reed <>
From: Lubomir Sedlacik <>
List: tech-pkg
Date: 05/20/2003 08:40:00
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 19, 2003 at 01:28:45PM -0700, Jeremy C. Reed wrote:
> On Mon, 19 May 2003, Dave wrote:
> > DEPENDS+=3D       teTeX[12]-[0-9]*:../../print/teTeX[12]
> Pick one or another. Because the resulting binary package
> doesn't have any mechanism for choosing. (And you don't want to have
> different packages with same name but different dependencies.)

that's a misleading suggestion.  the binary package indeed must have
only one to depend but there is no reason to force installation of
teTeX[12] when the other is already installed on the system while
building a depending package from sources and the package is fine with
any of them.

take a look at e.g. textproc/latex2html for an example how to achieve

  DEPENDS+=3D {teTeX-bin>=3D1.0.6,teTeX2-bin-[0-9]*}:../../print/teTeX-bin

it uses the installed teTeX package, if none is found then teTeX from
print/teTeX-bin is used (that's the package which will be listed as a
dependency in a binary package built from scratch).


-- Lubomir Sedlacik <>                   --
--                  <>                   --

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.2 (NetBSD)