* [gentoo-dev] ebuild question
@ 2005-03-03 3:40 pepone pepone
2005-03-03 3:47 ` Jeremy Hanmer
0 siblings, 1 reply; 6+ messages in thread
From: pepone pepone @ 2005-03-03 3:40 UTC (permalink / raw
To: gentoo-dev
Hello I ´m trying to create a new ebuild for Ice (Internet Comunication Engine)
http://www.zeroc.com
this is my first ebuild and i want know how in my ebuild can
detect the version of a program that is installed in the system
the problem is that in order to suscefuly compile my package i need to
export DB_FLAGS and DB_IFLAGS acording to the db version that is instaled
in the system
thanks in adavantage
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild question
2005-03-03 3:40 [gentoo-dev] ebuild question pepone pepone
@ 2005-03-03 3:47 ` Jeremy Hanmer
2005-03-03 10:26 ` Aaron Walker
0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Hanmer @ 2005-03-03 3:47 UTC (permalink / raw
To: gentoo-dev
you should be able to use the has_version function. More details at
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?
part=2&chap=1
On Mar 2, 2005, at 7:40 PM, pepone pepone wrote:
> Hello I ´m trying to create a new ebuild for Ice (Internet
> Comunication Engine)
> http://www.zeroc.com
>
> this is my first ebuild and i want know how in my ebuild can
> detect the version of a program that is installed in the system
>
> the problem is that in order to suscefuly compile my package i need to
> export DB_FLAGS and DB_IFLAGS acording to the db version that is
> instaled
> in the system
>
> thanks in adavantage
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild question
2005-03-03 3:47 ` Jeremy Hanmer
@ 2005-03-03 10:26 ` Aaron Walker
2005-03-03 20:23 ` Jeremy Hanmer
2005-03-04 3:25 ` [gentoo-dev] ebuild question (versionator.eclass) Octavio Ruiz (Ta^3)
0 siblings, 2 replies; 6+ messages in thread
From: Aaron Walker @ 2005-03-03 10:26 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeremy Hanmer wrote:
> you should be able to use the has_version function. More details at
> http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml? part=2&chap=1
has_version only returns 0 or 1 depending whether the package is installed or
not, so it's useless in this case. best_version would be a better alternative,
however that alone won't solve the problem.
Read about best_version in the ebuild(5) manual page. After you're done with
that, read about the versionator eclass in the versionator.eclass(5) manual
page (may have to emerge portage-manpages). You'll probably have to use a
combination of both to do what you're trying to achieve.
HTH
- --
printk(KERN_EMERG "PCI: Tell willy he's wrong
");
linux-2.6.6/arch/parisc/kernel/pci.c
Aaron Walker <ka0ttic@gentoo.org>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCJuZhC3poscuANHARAno+AJ0S4wl1FnzHKuKSeNj92CBKMsOpogCgmhrR
9lSrUePKgaiEePdqlNVZpaM=
=bznu
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild question
2005-03-03 10:26 ` Aaron Walker
@ 2005-03-03 20:23 ` Jeremy Hanmer
2005-03-04 0:42 ` Aaron Walker
2005-03-04 3:25 ` [gentoo-dev] ebuild question (versionator.eclass) Octavio Ruiz (Ta^3)
1 sibling, 1 reply; 6+ messages in thread
From: Jeremy Hanmer @ 2005-03-03 20:23 UTC (permalink / raw
To: gentoo-dev
On Mar 3, 2005, at 2:26 AM, Aaron Walker wrote:
>
> has_version only returns 0 or 1 depending whether the package is
> installed or
> not, so it's useless in this case. best_version would be a better
> alternative,
> however that alone won't solve the problem.
That's all that's really needed since all you'd care about in this
instance is the existance of one of 2 or 3 major versions. Just look
for >=sys-libs-4.0 then 3.0 and so-on, compiling for the first one you
find.
> Read about best_version in the ebuild(5) manual page. After you're
> done with
> that, read about the versionator eclass in the versionator.eclass(5)
> manual
> page (may have to emerge portage-manpages). You'll probably have to
> use a
> combination of both to do what you're trying to achieve.
>
> HTH
>
> - --
> printk(KERN_EMERG "PCI: Tell willy he's wrong
> ");
> linux-2.6.6/arch/parisc/kernel/pci.c
>
> Aaron Walker <ka0ttic@gentoo.org>
> [ BSD | cron | forensics | shell-tools | commonbox | netmon | vim |
> web-apps ]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
>
> iD8DBQFCJuZhC3poscuANHARAno+AJ0S4wl1FnzHKuKSeNj92CBKMsOpogCgmhrR
> 9lSrUePKgaiEePdqlNVZpaM=
> =bznu
> -----END PGP SIGNATURE-----
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild question
2005-03-03 20:23 ` Jeremy Hanmer
@ 2005-03-04 0:42 ` Aaron Walker
0 siblings, 0 replies; 6+ messages in thread
From: Aaron Walker @ 2005-03-04 0:42 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeremy Hanmer wrote:
>
> On Mar 3, 2005, at 2:26 AM, Aaron Walker wrote:
>
>>
>> has_version only returns 0 or 1 depending whether the package is
>> installed or
>> not, so it's useless in this case. best_version would be a better
>> alternative,
>> however that alone won't solve the problem.
>
>
> That's all that's really needed since all you'd care about in this
> instance is the existance of one of 2 or 3 major versions. Just look
> for >=sys-libs-4.0 then 3.0 and so-on, compiling for the first one you
> find.
That would be the incorrect way of going about it. As I said in my previous
post, use versionator.eclass. One call to best_version and one call to
get_major_version is all that's needed.
- --
Love America -- or give it back.
Aaron Walker <ka0ttic@gentoo.org>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCJ678C3poscuANHARAn1hAKDGWTixj9QVHjCMLgzLu75yLmywbgCfT1+h
YlWOglosHIp5XrbfHE/u4XA=
=VZ1q
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-dev] ebuild question (versionator.eclass)
2005-03-03 10:26 ` Aaron Walker
2005-03-03 20:23 ` Jeremy Hanmer
@ 2005-03-04 3:25 ` Octavio Ruiz (Ta^3)
1 sibling, 0 replies; 6+ messages in thread
From: Octavio Ruiz (Ta^3) @ 2005-03-04 3:25 UTC (permalink / raw
To: gentoo-dev
Aaron Walker, who happens to be smarter than you, thinks:
> that, read about the versionator eclass in the versionator.eclass(5) manual
> page (may have to emerge portage-manpages).
O.o!
Great, I have in my overlay an ebuild which I made and I'm testing it right
now..
hdf5_hl-1.6.2.1.ebuild - hdf5_hl-5162p1.tar.gz
---
PKG_VER="${PV:0:5}"
PKG_REV="${PV:6}"
MY_PKG="${PN}-5${PKG_VER//./}${PKG_REV:+p${PKG_REV}}"
SRC_URI="ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/hdf5_hl/src/${MY_PKG}.tar.gz"
---
Use of versionator.eclass seems to be the elegant solution, just I need to
read de eclass...
Cool stuff Ciaran, ;-)
--
Function reject.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-03-04 3:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 3:40 [gentoo-dev] ebuild question pepone pepone
2005-03-03 3:47 ` Jeremy Hanmer
2005-03-03 10:26 ` Aaron Walker
2005-03-03 20:23 ` Jeremy Hanmer
2005-03-04 0:42 ` Aaron Walker
2005-03-04 3:25 ` [gentoo-dev] ebuild question (versionator.eclass) Octavio Ruiz (Ta^3)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox