public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuild optional dependancy question
@ 2002-03-11 15:20 Brian M. Rzycki
  2002-03-11 15:24 ` Bob Phan
  0 siblings, 1 reply; 2+ messages in thread
From: Brian M. Rzycki @ 2002-03-11 15:20 UTC (permalink / raw
  To: gentoo-dev

Hello everyone!

I'm a recent convert to gentoo from debian (at least on my workstation) 
and I love it!

Gentoo doesn't have two of my favorite programs available as .ebuilds.
No big deal, I decided to roll up my sleeves and get cracking on
creating them for everyone.  And herein lies the problem.

The first program (zile -- zile.sourceforge.net) was a breeze using the
skel.ebuild.  I plan on uploading it to bugs as soon as I get my second
ebuild correct.

The second program (yafc -- yafc.sourceforge.net) is not as
straightforward as zile.  For the uninitiated, yafc is an interactive
ftp client similar to lftp with support for socks4/5, kerberos4/5, and
sftp.  Yafc's configure script automatically enables/disables ssh and
readline if it finds the libraries.  The same is not true for socks and
kerberos.  I merged kth-krb (kerberos4) and saw it installed everything in
/usr/athena.  When I manually gave configure the parameter
--with-krb4=/usr/athena it compiled with kerberos4 support.  I had similar
results with dante (socks4/5).  

After discovering I had to manually apply parameters to the configure
script in order for socks/kerberos support I went looking for use
variables. I planned on using the "if [ -z "use_var" ]" trick from the
gentoo-howto.  Unfortunately I didn't see either socks or krb4/5 use
variables.  

So my question is this:  What is the correct gentoo way of discovering
these packages?  Should I consult /var/db/pkg/app_group/app_name* to see
if the program is installed?  Should I check the physical location for
the libraries (a la -d /usr/athena)?  Or am I just a numbskull and
missing some obvious feature of portage which makes my life much easier?

Any help is appreciated -- I'd love to maintain a couple of ebuilds for
everyone.  It sure seems easier being a maintainer for gentoo than for
debian ;).

-- 
Brian M. Rzycki
"Alright, WHO let the polack near the computer?!?"


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] ebuild optional dependancy question
  2002-03-11 15:20 [gentoo-dev] ebuild optional dependancy question Brian M. Rzycki
@ 2002-03-11 15:24 ` Bob Phan
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Phan @ 2002-03-11 15:24 UTC (permalink / raw
  To: gentoo-dev

On Mon, 11 Mar 2002, Brian M. Rzycki wrote:

> The second program (yafc -- yafc.sourceforge.net) is not as
> straightforward as zile.  For the uninitiated, yafc is an interactive
> ftp client similar to lftp with support for socks4/5, kerberos4/5, and
> sftp.  Yafc's configure script automatically enables/disables ssh and
> readline if it finds the libraries.  The same is not true for socks and
> kerberos.  I merged kth-krb (kerberos4) and saw it installed everything in
> /usr/athena.  When I manually gave configure the parameter
> --with-krb4=/usr/athena it compiled with kerberos4 support.  I had similar
> results with dante (socks4/5).  
> 
> After discovering I had to manually apply parameters to the configure
> script in order for socks/kerberos support I went looking for use
> variables. I planned on using the "if [ -z "use_var" ]" trick from the
> gentoo-howto.  Unfortunately I didn't see either socks or krb4/5 use
> variables.  
> 
> So my question is this:  What is the correct gentoo way of discovering
> these packages?  Should I consult /var/db/pkg/app_group/app_name* to see
> if the program is installed?  Should I check the physical location for
> the libraries (a la -d /usr/athena)?  Or am I just a numbskull and
> missing some obvious feature of portage which makes my life much easier?

I was actually planning on making a yafc ebuild myself :).  Anyway, you
want to use the notation like this (which is all in the developer howto):

DEPEND="...
        lots of usual stuff
        ...
        NAME_OF_USE_VAR? ( >=category/package-version_number )

for example:

        krb4? ( >=app-crypt/kth-krb-1.1-r1 )
 
Then, in the src_compile secion of the ebuild, you want to put:

local myopts

if [ -n "`use krb4`" ]
then
        myopts="${myopts} --with-krb4"
fi

./configure \
        ${myopts}

You might want to read some other ebuilds to get a good feel as to how
this works.

Disclaimer:
I'm not a gentoo developer, so my suggestions are subject to critisizm.
Also, krb4 is not a recognized USE parameter.  You might want to ask an
official gentoo developer how that should be handled, perhaps there should
be an official gentoo USE parameter for kerberos 4 and 5.  My suggestion
is krb4 and krb5, but that's just my suggestion.

Hope this was helpful.

-- 
/*
 * Bob Phan <bob@endlressrecursion.net,rphan@nrgn.com>
 * Computational Chemistry Informatics
 * Neurogen Corporation
 * (203)488-8201 x4645
 *
 * To understand recursion, you must first understand recursion.
 */



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-11 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-11 15:20 [gentoo-dev] ebuild optional dependancy question Brian M. Rzycki
2002-03-11 15:24 ` Bob Phan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox