public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] query ebuild fields
@ 2019-06-21 17:27 Ian Zimmerman
  2019-06-21 17:41 ` Grant Taylor
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ian Zimmerman @ 2019-06-21 17:27 UTC (permalink / raw
  To: Gentoo-User Mailinglist

Is there a command to show the fields like DESCRIPTION and HOMEPAGE from
an installed ebuild, or is this one of the annoying gaps in the
framework that must be (and can be) trivially worked around?

Example: I have installed x11-terms/rxvt-unicode.  I don't know what it
is (no, really! :-P ) and I sure as h*ll don't know the exact version
number I have.  I want to visit the upstream website to learn more.

I know the following command will mostly do it, but it will
occassionally show too much and scroll the relevant result off the
screen.  Also, being a search, it is much slower than necessary.

emerge --search --quiet n x11-terms/rxvt-unicode

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] query ebuild fields
  2019-06-21 17:27 [gentoo-user] query ebuild fields Ian Zimmerman
@ 2019-06-21 17:41 ` Grant Taylor
  2019-06-21 21:59   ` [gentoo-user] " Ian Zimmerman
  2019-06-21 17:42 ` [gentoo-user] " Mick
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Grant Taylor @ 2019-06-21 17:41 UTC (permalink / raw
  To: gentoo-user

On 6/21/19 11:27 AM, Ian Zimmerman wrote:
> Is there a command to show the fields like DESCRIPTION and HOMEPAGE 
> from an installed ebuild, or is this one of the annoying gaps in the 
> framework that must be (and can be) trivially worked around?

Does equery meta not show what you want?

% equery meta x11-terms/rxvt-unicode
  * x11-terms/rxvt-unicode [gentoo]
Maintainer:  jer@gentoo.org (Jeroen Roovers)
Upstream:    Remote-ID:   cpe:/a:rxvt-unicode:rxvt-unicode ID: cpe
Homepage:    http://software.schmorp.de/pkg/rxvt-unicode.html
Location:    /usr/portage/x11-terms/rxvt-unicode
Keywords:    9.22-r1:0: alpha amd64 arm hppa ia64 ppc ppc64 sparc x86
Keywords:    9.22-r3:0: ~alpha ~amd64 ~amd64-linux ~arm ~arm64 ~hppa 
~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~sparc-solaris
                         ~x64-macos ~x86 ~x86-fbsd ~x86-linux ~x86-macos
Keywords:    9999:0:
License:     GPL-3

There's always something like this too.  ;-)

% egrep "(DESCRIPTION|HOMEPATE)" 
/usr/portage/x11-terms/rxvt-unicode/*.ebuild
/usr/portage/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r1.ebuild:DESCRIPTION="rxvt 
clone with xft and unicode support"
/usr/portage/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r3.ebuild:DESCRIPTION="rxvt 
clone with xft and unicode support"
/usr/portage/x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild:DESCRIPTION="rxvt 
clone with xft and unicode support"



x


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

* Re: [gentoo-user] query ebuild fields
  2019-06-21 17:27 [gentoo-user] query ebuild fields Ian Zimmerman
  2019-06-21 17:41 ` Grant Taylor
@ 2019-06-21 17:42 ` Mick
  2019-06-22  1:32   ` Bill Kenworthy
  2019-06-21 19:22 ` Urs Schütz
  2019-06-22  1:14 ` throwd
  3 siblings, 1 reply; 8+ messages in thread
From: Mick @ 2019-06-21 17:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]

On Friday, 21 June 2019 18:27:58 BST Ian Zimmerman wrote:
> Is there a command to show the fields like DESCRIPTION and HOMEPAGE from
> an installed ebuild, or is this one of the annoying gaps in the
> framework that must be (and can be) trivially worked around?
> 
> Example: I have installed x11-terms/rxvt-unicode.  I don't know what it
> is (no, really! :-P ) and I sure as h*ll don't know the exact version
> number I have.  I want to visit the upstream website to learn more.
> 
> I know the following command will mostly do it, but it will
> occassionally show too much and scroll the relevant result off the
> screen.  Also, being a search, it is much slower than necessary.
> 
> emerge --search --quiet n x11-terms/rxvt-unicode

I use 'eix -l <package>' to get this sort of information.  I'm sure there are 
cleverer options to use with eix, so it only prints the database fields you 
want, but the above has served most of my needs well.  Install app-portage/
eix, then run eix-update and from then on you can use eix-sync to sync portage 
and/or overlays with a mirror and search for the package you want.

rxvt-unicode is a terminal emulator, like xterm, konsole, terminology, xfce4-
terminal , etc. which you use within your xsession, instead of having to 
switch over to a tty.

There's even a page about it - I can't recall having read before, but it looks 
quite detailed:

https://wiki.gentoo.org/wiki/Rxvt-unicode
https://wiki.gentoo.org/wiki/Terminal_emulator

HTH
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [gentoo-user] query ebuild fields
  2019-06-21 17:27 [gentoo-user] query ebuild fields Ian Zimmerman
  2019-06-21 17:41 ` Grant Taylor
  2019-06-21 17:42 ` [gentoo-user] " Mick
@ 2019-06-21 19:22 ` Urs Schütz
  2019-06-22  1:14 ` throwd
  3 siblings, 0 replies; 8+ messages in thread
From: Urs Schütz @ 2019-06-21 19:22 UTC (permalink / raw
  To: gentoo-user

On 6/21/19 7:27 PM, Ian Zimmerman wrote:
> Is there a command to show the fields like DESCRIPTION and HOMEPAGE from
> an installed ebuild, or is this one of the annoying gaps in the
> framework that must be (and can be) trivially worked around?
...

Eix is faster for such things. You can format the output as you need it. 
Does the following do what you want?

eix -I --format '<name>\n<homepage>\n<description>\n\n' rxvt-unicode

urs


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

* [gentoo-user] Re: query ebuild fields
  2019-06-21 17:41 ` Grant Taylor
@ 2019-06-21 21:59   ` Ian Zimmerman
  2019-06-21 22:13     ` Grant Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Zimmerman @ 2019-06-21 21:59 UTC (permalink / raw
  To: gentoo-user

On 2019-06-21 11:41, Grant Taylor wrote:

> > Is there a command to show the fields like DESCRIPTION and HOMEPAGE
> > from an installed ebuild, or is this one of the annoying gaps in the
> > framework that must be (and can be) trivially worked around?
> 
> Does equery meta not show what you want?

No description.  It clearly gets the homepage info from the .ebuild file
(it doesn't exist anywhere else) so why it cannot also get the
description is beyond me.

> % egrep "(DESCRIPTION|HOMEPATE)" /usr/portage/x11-terms/rxvt-unicode/*.ebuild
> /usr/portage/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r1.ebuild:DESCRIPTION="rxvt clone with xft and unicode
> support"
> /usr/portage/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r3.ebuild:DESCRIPTION="rxvt clone with xft and unicode
> support"
> /usr/portage/x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild:DESCRIPTION="rxvt clone with xft and unicode support"

That's what I meant by "trivially worked around" :-)

BTW, does your prompt mean you are a csh user?  Wow.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] Re: query ebuild fields
  2019-06-21 21:59   ` [gentoo-user] " Ian Zimmerman
@ 2019-06-21 22:13     ` Grant Taylor
  0 siblings, 0 replies; 8+ messages in thread
From: Grant Taylor @ 2019-06-21 22:13 UTC (permalink / raw
  To: gentoo-user

On 6/21/19 3:59 PM, Ian Zimmerman wrote:
> No description.  It clearly gets the homepage info from the .ebuild 
> file (it doesn't exist anywhere else) so why it cannot also get the 
> description is beyond me.

¯\_(ツ)_/¯

> That's what I meant by "trivially worked around" :-)

;-)

> BTW, does your prompt mean you are a csh user?  Wow.

No.

Zsh.


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

* Re: [gentoo-user] query ebuild fields
  2019-06-21 17:27 [gentoo-user] query ebuild fields Ian Zimmerman
                   ` (2 preceding siblings ...)
  2019-06-21 19:22 ` Urs Schütz
@ 2019-06-22  1:14 ` throwd
  3 siblings, 0 replies; 8+ messages in thread
From: throwd @ 2019-06-22  1:14 UTC (permalink / raw
  To: gentoo-user

* Ian Zimmerman <itz@very.loosely.org> [2019-06-21 10:27:58 -0700]:

>Is there a command to show the fields like DESCRIPTION and HOMEPAGE from
>an installed ebuild, or is this one of the annoying gaps in the
>framework that must be (and can be) trivially worked around?

You could use portageq

portageq metadata /usr/portage/ ebuild $(qlist -Iv rxvt-unicode) DESCRIPTION HOMEPAGE



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

* Re: [gentoo-user] query ebuild fields
  2019-06-21 17:42 ` [gentoo-user] " Mick
@ 2019-06-22  1:32   ` Bill Kenworthy
  0 siblings, 0 replies; 8+ messages in thread
From: Bill Kenworthy @ 2019-06-22  1:32 UTC (permalink / raw
  To: gentoo-user

and
rattus ~ # esearch x11-terms/rxvt-unicode
[ Results for search key : x11-terms/rxvt-unicode ]
[ Applications found : 1 ]

*  x11-terms/rxvt-unicode
      Latest version available: 9.21
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 903 kB
      Homepage:    http://software.schmorp.de/pkg/rxvt-unicode.html
      Description: rxvt clone with xft and unicode support
      License:     GPL-3
 
rattus ~ #

its less a search than a database lookup like the locate command so its
very fast

rattus ~ # esearch app-portage/esearch
[ Results for search key : app-portage/esearch ]
[ Applications found : 1 ]

*  app-portage/esearch
      Latest version available: 1.3-r2
      Latest version installed: 1.3-r2
      Size of downloaded files: 18 kB
      Homepage:    https://github.com/fuzzyray/esearch
      Description: Replacement for 'emerge --search' with search-index
      License:     GPL-2
 
rattus ~ #



On 22/6/19 1:42 am, Mick wrote:
> On Friday, 21 June 2019 18:27:58 BST Ian Zimmerman wrote:
>> Is there a command to show the fields like DESCRIPTION and HOMEPAGE from
>> an installed ebuild, or is this one of the annoying gaps in the
>> framework that must be (and can be) trivially worked around?
>>
>> Example: I have installed x11-terms/rxvt-unicode.  I don't know what it
>> is (no, really! :-P ) and I sure as h*ll don't know the exact version
>> number I have.  I want to visit the upstream website to learn more.
>>
>> I know the following command will mostly do it, but it will
>> occassionally show too much and scroll the relevant result off the
>> screen.  Also, being a search, it is much slower than necessary.
>>
>> emerge --search --quiet n x11-terms/rxvt-unicode
> I use 'eix -l <package>' to get this sort of information.  I'm sure there are 
> cleverer options to use with eix, so it only prints the database fields you 
> want, but the above has served most of my needs well.  Install app-portage/
> eix, then run eix-update and from then on you can use eix-sync to sync portage 
> and/or overlays with a mirror and search for the package you want.
>
> rxvt-unicode is a terminal emulator, like xterm, konsole, terminology, xfce4-
> terminal , etc. which you use within your xsession, instead of having to 
> switch over to a tty.
>
> There's even a page about it - I can't recall having read before, but it looks 
> quite detailed:
>
> https://wiki.gentoo.org/wiki/Rxvt-unicode
> https://wiki.gentoo.org/wiki/Terminal_emulator
>
> HTH




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

end of thread, other threads:[~2019-06-22  1:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-21 17:27 [gentoo-user] query ebuild fields Ian Zimmerman
2019-06-21 17:41 ` Grant Taylor
2019-06-21 21:59   ` [gentoo-user] " Ian Zimmerman
2019-06-21 22:13     ` Grant Taylor
2019-06-21 17:42 ` [gentoo-user] " Mick
2019-06-22  1:32   ` Bill Kenworthy
2019-06-21 19:22 ` Urs Schütz
2019-06-22  1:14 ` throwd

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