Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238831 - new ebuild: app-misc/trash-cli
Summary: new ebuild: app-misc/trash-cli
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Julian Ospald
URL: http://code.google.com/p/trash-cli/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2008-09-27 03:22 UTC by Ian Young
Modified: 2012-05-10 14:56 UTC (History)
5 users (show)

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


Attachments
trash-cli-0.1.10-r55.ebuild (trash-cli-0.1.10-r55.ebuild,432 bytes, text/plain)
2008-09-27 03:23 UTC, Ian Young
Details
trash-cli-0.2.1_pre168.ebuild (trash-cli-0.2.1_pre168.ebuild,499 bytes, text/plain)
2009-01-10 06:01 UTC, Ian Young
Details
sys-fs/trash-cli-0.11.1.2.ebuild (trash-cli-0.11.1.2.ebuild,548 bytes, text/plain)
2009-05-19 04:46 UTC, Ian Young
Details
trash-cli-0.11.1.2-r1.ebuild (trash-cli-0.11.1.2-r1.ebuild,529 bytes, text/plain)
2009-09-10 00:24 UTC, Jared B.
Details
updated ebuild for 0.11.2 (trash-cli-0.11.2.ebuild,545 bytes, text/plain)
2009-09-25 00:18 UTC, Jared B.
Details
updated ebuild for latest trash-cli-0.11.3-r315 (trash-cli-0.11.3-r315.ebuild,546 bytes, text/plain)
2011-01-16 19:02 UTC, waynedpj
Details
sys-fs/trash-cli-0.12.4.24.ebuild (trash-cli-0.12.4.24.ebuild,517 bytes, text/plain)
2012-05-10 05:35 UTC, Jared B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Young 2008-09-27 03:22:32 UTC
Hi,

Here's an ebuild I created for the trash-cli project.  I have never written an ebuild from scratch before, so hopefully this one won't take too much fixing ;)

trash-cli provides command-line access to trash cans that follow the freedesktop specification.  You can find examples and more at http://code.google.com/p/trash-cli/.
Comment 1 Ian Young 2008-09-27 03:23:50 UTC
Created attachment 166567 [details]
trash-cli-0.1.10-r55.ebuild
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2009-01-07 15:41:37 UTC
Do not use ebuild revision (-r) to identify upstream svn revisions. Rather use _beta or _p for that (i.e.  trash-cli-0.2.1_beta160 if this is a prerelase of 0.2.1 or trash-cli-0.2.1_p160 if this is a post-release). Look at the versionator eclass for easy extraction of version components.

Also note there are later tarballs up here:
http://code.google.com/p/trash-cli/downloads/list

Furthermore, what do you think about integrating your ebuild into the sunrise overlay? You should try!
Comment 3 Ian Young 2009-01-10 06:01:18 UTC
Created attachment 177938 [details]
trash-cli-0.2.1_pre168.ebuild

sys-fs/trash-cli-0.2.1_pre168.ebuild
Comment 4 Ian Young 2009-01-10 06:03:59 UTC
Updating for the latest release.  The package now needs the Unipath module, which has a new ebuild at bug #254382.
Comment 5 Jared B. 2009-05-11 06:34:41 UTC
Ian - thanks for your work on this.  I just installed trash-cli (and unipath) and it worked great.  I appreciate the effort.

All - this is a pretty handy utility that provides functionality I've been looking for on and off for a few years now.  It'd be great if we could get this merged into portage.  Is there any kind of ebuild cleanup, etc., that still needs to be done before this can be included?

Thanks.
Comment 6 Ian Young 2009-05-11 14:54:00 UTC
Looks like this could use another big version bump (those project devs are busy bees). I can try to get to that soon if no one else does it first.
Comment 7 Ian Young 2009-05-19 04:46:25 UTC
Created attachment 191742 [details]
sys-fs/trash-cli-0.11.1.2.ebuild

Version bump + man pages now install correctly.
Comment 8 Jared B. 2009-09-10 00:23:13 UTC
Installation depends on dev-python/setuptools.  Attaching slightly updated ebuild to address this.
Comment 9 Jared B. 2009-09-10 00:24:13 UTC
Created attachment 203650 [details]
trash-cli-0.11.1.2-r1.ebuild

update for setuptools dependency
Comment 10 Jared B. 2009-09-25 00:18:06 UTC
Created attachment 205179 [details]
updated ebuild for 0.11.2

updating ebuild for 0.11.2, also fixed a documentation bug with the last version.

Any news on getting this added to portage?
Comment 11 Arne Babenhauserheide 2010-03-17 11:00:01 UTC
Many thanks for the ebuild! 

A short review: I think trash-cli should not be amd64 stable while unipath isn't. 

You could add it to sunrise: http://overlays.gentoo.org/proj/sunrise
Comment 12 Arne Babenhauserheide 2010-03-17 12:05:50 UTC
Besides: Works flawlessly for me. 
Comment 13 bezetek 2010-05-15 04:35:03 UTC
(In reply to comment #11)
> Many thanks for the ebuild! 
> 
> A short review: I think trash-cli should not be amd64 stable while unipath
> isn't. 
> 
> You could add it to sunrise: http://overlays.gentoo.org/proj/sunrise
> 

Now , does it added to sunrise ? why can't I search it from sunrise ?

and where is the unipath package ?
Comment 14 Ian Young 2010-05-15 05:58:18 UTC
Bezetek, I don't think it's in sunrise. I haven't been motivated enough to put it in there, and I don't know that anyone else has either.

There's an ebuild for Unipath in bug #254382.
Comment 15 waynedpj 2011-01-16 19:02:16 UTC
Created attachment 260018 [details]
updated ebuild for latest trash-cli-0.11.3-r315

ahoy all,

  here is an updated ebuild for the latest trash-cli release.  i just had to change the ebuild variable PV to PVR to get it to work.

  any change on getting this in portage?  or at least sunrise?

peace
Comment 16 Octavian 2011-11-09 09:43:12 UTC
As a workaround if you have KDE installed you can use:

kioclient move <to_be_moved_to_trash> trash:/
Comment 17 Octavian 2011-11-19 21:58:17 UTC
A reason for me to have this application is that I am doing many actions (like various backups) where I am seldomly  interested in the old content.
 
What I usually do is to move the old files in Trash. Trash get automatically cleaned by removing the oldest files if it extends over a certain size. This is a nice way of keeping up2date data away from older data.
Comment 18 Jared B. 2012-05-10 05:34:24 UTC
I'm attaching an updated ebuild for version 0.12.4.24.  This contains a few changes:

* Project home is now at http://pypi.python.org/pypi/trash-cli/
* unipath dependency has been dropped (as such, this bug's dependency on bug 254382 can also be dropped)
* man pages are now available
* bumped minimum python ver to 2.7, as recommended by upstream

With unipath no longer required (and thus no out-of-tree dependencies), can this be reconsidered for inclusion in portage?
Comment 19 Jared B. 2012-05-10 05:35:15 UTC
Created attachment 311309 [details]
sys-fs/trash-cli-0.12.4.24.ebuild
Comment 20 waynedpj 2012-05-10 13:53:04 UTC
(In reply to comment #19)
> Created attachment 311309 [details]
> sys-fs/trash-cli-0.12.4.24.ebuild

thanks, working well here.

+1 for getting this useful utility into portage tree.
Comment 21 Julian Ospald 2012-05-10 14:56:46 UTC
Note:
HISTORY.txt: - Removed Unipath dependency

+*trash-cli-0.12.4 (10 May 2012)
+
+  10 May 2012; Julian Ospald <hasufell@gentoo.org> +trash-cli-0.12.4.ebuild,
+  +metadata.xml:
+  initial import wrt #238831