From edd at debian.org  Sat Dec  7 20:24:58 2013
From: edd at debian.org (Dirk Eddelbuettel)
Date: Sat, 7 Dec 2013 13:24:58 -0600
Subject: [Rd] Depending/Importing data only packages
In-Reply-To: <CABtg=Km3TdbiEv2ygAYU4CEJbtw1W43c2r=6CNK4c199SxqwWw@mail.gmail.com>
References: <CABdHhvEXM_Bbr7GXP0nRiURCGfVzcFXOi--9sLUiBe3YrdP-qQ@mail.gmail.com>
	<52A35220.7010307@gmail.com>
	<CABtg=K=pVVZzRxj5JtLuP92kL1Fiho3gxC85HJouV6ZHjeikDw@mail.gmail.com>
	<52A36A75.5030900@gmail.com>
	<CABtg=Km3TdbiEv2ygAYU4CEJbtw1W43c2r=6CNK4c199SxqwWw@mail.gmail.com>
Message-ID: <21155.30218.21613.132618@max.nulle.part>


On 7 December 2013 at 13:58, G?bor Cs?rdi wrote:
| 'RequireOneOf' would be indeed useful.

The DESCRIPTION file follows Debian Control File formats. Another aspect of
these could be useful here: the '|' operator. Eg for ess (the Debian package)
we have

  Depends: dpkg (>= 1.15.4) | install-info, emacs23 | emacs22 | emacs21 | emacsen

saying that either a recent enough dpkg [package tool] or the install-info
package are needed [to deal with .info files] and that one of the available
emacs versions will do, with the first one being the default choice and the
last one a virtual package providing a catch-all fallback.

The R package does similar things to pick one of several blas and lapack
packages:

  Depends: zip, unzip, libpaper-utils, xdg-utils, \
    libblas3 | libblas.so.3 | libatlas3-base, [...] \
    liblapack3 | liblapack.so.3 | libatlas3-base, [...]

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



[Rd] Depending/Importing data only packages
Dirk Eddelbuettel