Subject: Re: depending on either teTeX or teTeX2
To: Jeremy C. Reed <reed@reedmedia.net>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 05/20/2003 08:40:00
--A9z/3b/E4MkkD+7G
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:
>=20
> > DEPENDS+=3D       teTeX[12]-[0-9]*:../../print/teTeX[12]
>=20
> 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
this:

  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).


regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>                   --
--                  <salo@silcnet.org>                   --

--A9z/3b/E4MkkD+7G
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)

iD8DBQE+yc2/iwjDDlS8cmMRAk0vAKCOpOPzeLyzMXC6AmnR+/+fXLUFZgCggkmY
f63+OpXNXU5IHJTSRwvP+a4=
=Sjjs
-----END PGP SIGNATURE-----

--A9z/3b/E4MkkD+7G--