~necoro/catapult/overlay

« back to all changes in this revision

Viewing changes to app-portage/catapult/catapult-9999.ebuild

  • Committer: Necoro
  • Date: 2008-03-11 21:26:33 UTC
  • Revision ID: svn-v3-single-overlay:62b72bf6-f7c0-4232-8d11-646e4a2d0066:overlay:59
re-introduced portage useflag

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
LICENSE="GPL-2"
14
14
SLOT="0"
15
15
KEYWORDS="~x86"
16
 
IUSE="python"
 
16
IUSE="portage python"
 
17
 
 
18
DEFAULT_DEPEND="!portage? ( app-portage/catapult-portage )"
17
19
 
18
20
DEPEND="dev-util/cmake
19
21
                python? ( dev-lang/python >=dev-lang/swig-1.3.31 )"
20
22
RDEPEND="sys-apps/dbus
21
23
                python? ( dev-lang/python )"
22
24
 
 
25
PDEPEND="portage? ( app-portage/catapult-portage )
 
26
                $DEFAULT_DEPEND"
 
27
 
23
28
pkg_setup ()
24
29
{
 
30
        if ! use portage; then
 
31
                ewarn "No backend selected. Defaulting to portage."
 
32
        fi
 
33
 
25
34
        if use python && ! built_with_use dev-lang/swig python; then
26
35
                echo
27
36
                eerror "dev-lang/swig has not been built with python support."