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/.
Created attachment 166567 [details] trash-cli-0.1.10-r55.ebuild
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!
Created attachment 177938 [details] trash-cli-0.2.1_pre168.ebuild sys-fs/trash-cli-0.2.1_pre168.ebuild
Updating for the latest release. The package now needs the Unipath module, which has a new ebuild at bug #254382.
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.
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.
Created attachment 191742 [details] sys-fs/trash-cli-0.11.1.2.ebuild Version bump + man pages now install correctly.
Installation depends on dev-python/setuptools. Attaching slightly updated ebuild to address this.
Created attachment 203650 [details] trash-cli-0.11.1.2-r1.ebuild update for setuptools dependency
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?
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
Besides: Works flawlessly for me.
(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 ?
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.
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
As a workaround if you have KDE installed you can use: kioclient move <to_be_moved_to_trash> trash:/
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.
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?
Created attachment 311309 [details] sys-fs/trash-cli-0.12.4.24.ebuild
(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.
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