Re: help about merging PLIST and PFRAG.$flavor

2016-04-27 Thread Stuart Henderson
On 2016/04/27 12:22, Jiri B wrote:
> On Wed, Apr 27, 2016 at 06:09:22PM +0200, Dmitrij D. Czarkoff wrote:
> > Jiri B said:
> > > I'm working on a port (recoll desktop indexer) and it can be
> > > built without GUI and with QT4 GUI.
> > > 
> > > My question is: how to handle PLIST when most of the files are
> > > same for both version of the app but each version add just
> > > couple of files more?
> > > 
> > > Should I have 'no_x11' flavor and a flavor for 'gui' and one
> > > PLIST with '%%no_x11%%' and '%%qui%%'?
> > > 
> > > I'm not sure if I can have two flavors and no "default"...
> > > 
> > > An advise is appreciated.
> > 
> > So you want to give users a choice between gui and no gui.  The one most
> > likely to be used should become default FLAVOR.  Another one should
> > become either "no_x11" or "qt4".
> 
> This is clear but flavors generally do not have individual PLIST
> files, that's why there's PFRAG.$flavor and you put '%%$flavor%%'
> into PLIST.
> 
> I would probably like to achive:
> 
> - "no_x11" flavor package
> - "python" subpackage
> - "qt4" flavor package (should be default, -main iiuc)
> 
> no_x11 flavor package one more binary

So you need %%no_x11%% and a PFRAG.no_x11 file. See e.g. editors/emacs
for an example.

> python has just python stuff linked against recoll library

Does the flavour affect this subpackage or not? If not you'll need
to override the flavouring of the subpackage, something like this,
FULLPKGNAME-python = somename-python-$V
FULLPKGPATH-python = ${PKGPATH},python

> qt4 flavor package has some more binaries, desktop files, images.

And you also need %%!no_x11%% and PFRAG.no-no_x11, also see emacs.

> PLIST has most of content, libs, data files, examples
> 
> How to combine all of this?
> 
> j.
> 



Re: help about merging PLIST and PFRAG.$flavor

2016-04-27 Thread Jiri B
On Wed, Apr 27, 2016 at 06:09:22PM +0200, Dmitrij D. Czarkoff wrote:
> Jiri B said:
> > I'm working on a port (recoll desktop indexer) and it can be
> > built without GUI and with QT4 GUI.
> > 
> > My question is: how to handle PLIST when most of the files are
> > same for both version of the app but each version add just
> > couple of files more?
> > 
> > Should I have 'no_x11' flavor and a flavor for 'gui' and one
> > PLIST with '%%no_x11%%' and '%%qui%%'?
> > 
> > I'm not sure if I can have two flavors and no "default"...
> > 
> > An advise is appreciated.
> 
> So you want to give users a choice between gui and no gui.  The one most
> likely to be used should become default FLAVOR.  Another one should
> become either "no_x11" or "qt4".

This is clear but flavors generally do not have individual PLIST
files, that's why there's PFRAG.$flavor and you put '%%$flavor%%'
into PLIST.

I would probably like to achive:

- "no_x11" flavor package
- "python" subpackage
- "qt4" flavor package (should be default, -main iiuc)

no_x11 flavor package one more binary
python has just python stuff linked against recoll library
qt4 flavor package has some more binaries, desktop files, images.

PLIST has most of content, libs, data files, examples

How to combine all of this?

j.



Re: help about merging PLIST and PFRAG.$flavor

2016-04-27 Thread Dmitrij D. Czarkoff
Jiri B said:
> I'm working on a port (recoll desktop indexer) and it can be
> built without GUI and with QT4 GUI.
> 
> My question is: how to handle PLIST when most of the files are
> same for both version of the app but each version add just
> couple of files more?
> 
> Should I have 'no_x11' flavor and a flavor for 'gui' and one
> PLIST with '%%no_x11%%' and '%%qui%%'?
> 
> I'm not sure if I can have two flavors and no "default"...
> 
> An advise is appreciated.

So you want to give users a choice between gui and no gui.  The one most
likely to be used should become default FLAVOR.  Another one should
become either "no_x11" or "qt4".

-- 
Dmitrij D. Czarkoff



help about merging PLIST and PFRAG.$flavor

2016-04-26 Thread Jiri B
Hi,

I'm working on a port (recoll desktop indexer) and it can be
built without GUI and with QT4 GUI.

My question is: how to handle PLIST when most of the files are
same for both version of the app but each version add just
couple of files more?

Should I have 'no_x11' flavor and a flavor for 'gui' and one
PLIST with '%%no_x11%%' and '%%qui%%'?

I'm not sure if I can have two flavors and no "default"...

An advise is appreciated.

j.