Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191548 - Add X useflag to app-text/wgetpaste
Summary: Add X useflag to app-text/wgetpaste
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 02:30 UTC by René 'Necoro' Neumann
Modified: 2007-09-14 13:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/wgetpaste (wgetpaste,42 bytes, text/plain)
2007-09-07 02:39 UTC, René 'Necoro' Neumann
Details
new wgetpaste-2.4.ebuild (wgetpaste-2.4.ebuild,619 bytes, text/plain)
2007-09-07 02:40 UTC, René 'Necoro' Neumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2007-09-07 02:30:07 UTC
wgetpaste (one of the myriads of pastebin-clis) allows the user to paste the content of the clipboard. But on a vanilla installation it wants the user to do some extra work.

Thus I'd like to add an "X" useflag (similar to app-text/nopaste) which does this work for the user.

Reproducible: Always

Steps to Reproduce:
Comment 1 René 'Necoro' Neumann 2007-09-07 02:39:43 UTC
Created attachment 130230 [details]
/etc/wgetpaste

A standard config file for wgetpaste setting the get_from_clipboard() function as stated by the normal "wgetpaste -x" output.
Comment 2 René 'Necoro' Neumann 2007-09-07 02:40:51 UTC
Created attachment 130231 [details]
new wgetpaste-2.4.ebuild

And here the appropriate ebuild. It just adds the useflag "X" and if this is set, RDEPENDS on x11-misc/xclip and installs the config file.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-07 02:44:27 UTC
Nice, and why should it depend on xclip when it can work with xcut, klipper or whatever else?
Comment 4 René 'Necoro' Neumann 2007-09-07 02:59:41 UTC
(In reply to comment #3)
> Nice, and why should it depend on xclip when it can work with xcut, klipper or
> whatever else?
> 
Good point. Just wanted to supply a useful default...
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-09-07 03:07:08 UTC
Well, then make it a bit more flexible at least? :) Like: 

get_from_clipboard() {
        if [[ -x $(type -P xclip) ]] ; then 
            xclip -o
        elif [[ -x $(type -P xcut) ]] ; then
           ...
        elif
           ...
        else
}
Comment 6 René 'Necoro' Neumann 2007-09-07 05:06:43 UTC
I tried ... and it resulted in bug #191553 ;). And klipper seems to be only a GUI -- thus can't be accessed from CLI
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2007-09-14 11:57:08 UTC
reopen
Comment 8 Markus Ullmann (RETIRED) gentoo-dev 2007-09-14 12:59:57 UTC
Fixed upstream in 2.5 now :)
Comment 9 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-09-14 13:40:13 UTC
Should note that there will be no X use flag or dependency on xclip. Instead it now checks for the xclip binary as per comment 5 and uses xclip if present. Otherwise it bails with a message explaining to either emerge xclip or redefine the clipboard function to use something else...

Similarly a --xpaste has been introduced.