Gentoo Archives: gentoo-dev

From: Markos Chandras <hwoarang@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Passing arguments to eqmake3
Date: Wed, 13 May 2009 21:47:35
Message-Id: 200905140047.08692.hwoarang@gentoo.org
In Reply to: [gentoo-dev] Passing arguments to eqmake3 by Nikos Chantziaras
1 > I have a package that uses qmake (from Qt 3) as its build system and
2 > that installs into /usr/local by default (as any well packaged software
3 > should do). This of course can be overridden at build time. In this
4 > case, with:
5 >
6 > qmake PREFIX=/usr projectfile.pro
7 >
8 > In order to install into /usr (as any well written ebuild should do.)
9 > In the ebuild however, eqmake3 doesn't seem to accept any arguments. This:
10 >
11 > eqmake3 PREFIX=/usr projectfile.pro | die "qmake failed"
12 >
13 > results in:
14 >
15 > * Project .pro file "PREFIX=/usr" does not exists
16 > * qmake cannot handle non-existing .pro files
17 >
18 > when trying to emerge. What can I do?
19
20 You could try use the following
21
22 eqmake3 <project_name>.pro PREFIX=/usr
23
24 project name must be argument ${1} ( according to eclass )
25
26 ps: You dont need ' | die ' statement. eqmake3 dies by itself :)
27 --
28 Markos Chandras (hwoarang)
29 Gentoo Linux Developer [KDE/Qt/Sunrise/Sound]
30 Web: http://hwoarang.silverarrow.org

Attachments

File name MIME type
signature.asc application/pgp-signature