Re: [Fink-devel] Conditional use of InfoDocs: in .info file

2007-09-26 Thread Alexander Hansen
On 9/25/07, Philip Lamb [EMAIL PROTECTED] wrote:
 Hi all,

 The package I am curently working on has two variants, with only one
 of them building a particular .info doc (to be installed in /sw/share/
 info). However, it seems that the InfoDocs field in fink doesn't
 support the conditional syntax like:

 InfoDocs: (%type_raw[-variant] = -variant) somedoc.info

 Is there some other means to allow conditional use of the InfoDocs
 field?

 Regards,
 Phil.

You might have to resort to a manual install of the Info files in that case.

-- 
Alexander K. Hansen
akh AT finkproject DOT org
Fink User Liaison and Documenter

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Conditional use of InfoDocs: in .info file

2007-09-26 Thread Philip Lamb

On 27/09/2007, at 7:27 AM, Alexander Hansen wrote:

On 9/25/07, Philip Lamb [EMAIL PROTECTED] wrote:

Is there some other means to allow conditional use of the InfoDocs
field?
You might have to resort to a manual install of the Info files in  
that case.


OK, for reference for anyone else who might need to do this in  
future, a line in the package .info file:


InfoDocs: FOO.info BAR.info

is currently (Fink version 0.27.6) approximately equivalent to:

PostInstScript: 
if [ -f %p/share/info/dir ]; then
  if [ -f %p/sbin/install-info ]; then
%p/sbin/install-info --infodir=%p/share/info %p/share/info/ 
FOO.info
%p/sbin/install-info --infodir=%p/share/info %p/share/info/ 
BAR.info

  elif [ -f %p/bootstrap/sbin/install-info ]; then
%p/bootstrap/sbin/install-info --infodir=%p/share/info %p/ 
share/info/FOO.info
%p/bootstrap/sbin/install-info --infodir=%p/share/info %p/ 
share/info/BAR.info

  fi
fi

PreRmScript: 
if [ -f %p/share/info/dir ]; then
  %p/sbin/install-info --infodir=%p/share/info --remove FOO.info
  %p/sbin/install-info --infodir=%p/share/info --remove BAR.info
fi


Regards,
Phil.

smime.p7s
Description: S/MIME cryptographic signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Conditional use of InfoDocs: in .info file

2007-09-25 Thread Philip Lamb

Hi all,

The package I am curently working on has two variants, with only one  
of them building a particular .info doc (to be installed in /sw/share/ 
info). However, it seems that the InfoDocs field in fink doesn't  
support the conditional syntax like:


InfoDocs: (%type_raw[-variant] = -variant) somedoc.info

Is there some other means to allow conditional use of the InfoDocs  
field?


Regards,
Phil.

smime.p7s
Description: S/MIME cryptographic signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel