On 10/13/2014 12:46 PM, Zac Medico wrote:
> Hi,
> 
> In order to solve bug #503802 [1], I would like to add a
> virtual/podofo-build package to pull in app-text/podofo and
> dev-libs/boost. Then packages like app-text/calibre can put
> virtual/podofo-build in DEPEND and app-text/podofo in RDEPEND. The
> advantage of this approach is that it makes it possible to use a command
> like `emerge --depclean --with-bdeps=n` to remove the build-time only
> boost package (and virtual/podofo-build), since boost is only needed for
> build-time headers. There may be some other possible ways to specify the
> dependency, but this approach is the most attractive one that I've seen.
> In fact, this approach is basically identical to the "Virtual for C++
> tr1 <type_traits>" example that's given in the dev-manual [2].
> 
> Would anyone like to suggest improvements to this idea, alternatives, or
> raise any objections?
> 
> [1] https://bugs.gentoo.org/show_bug.cgi?id=503802
> [2] http://devmanual.gentoo.org/general-concepts/virtuals/
> 

The proposed virtual/podofo-build ebuild is attached.
-- 
Thanks,
Zac
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

DESCRIPTION="Virtual package for building against PoDoFo"
HOMEPAGE=""
SRC_URI=""

LICENSE=""
SLOT="0"
KEYWORDS="amd64 ~arm hppa ppc ppc64 ~sparc x86"
IUSE="+boost idn debug test"

# Pull in boost for build-against header dependency (see bug #503802).
RDEPEND="
        ~app-text/podofo-0.9.2[boost=,idn=,debug=,test=]
        boost? ( dev-libs/boost )
"
DEPEND=""

Reply via email to