Bug 179604 - [NEW PORT] deskutils/send2trash: Small package that sends files to the Trash
Summary: [NEW PORT] deskutils/send2trash: Small package that sends files to the Trash
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 04:40 UTC by nemysis
Modified: 2013-07-08 19:20 UTC (History)
0 users

See Also:


Attachments
file.shar (3.29 KB, text/plain)
2013-06-16 04:40 UTC, nemysis
no flags Details
send2trash.shar (3.51 KB, application/x-shar)
2013-06-17 15:56 UTC, nemysis
no flags Details
send2trash.shar (3.53 KB, application/x-shar)
2013-06-17 18:39 UTC, nemysis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2013-06-16 04:40:00 UTC
Send2Trash is a small package that sends files to the Trash (or Recycle Bin)
*natively* and on *all platforms*.

WWW: http://hg.hardcoded.net/send2trash/

Fix: Please add attachment as deskutils/send2trash

Shar is also here

https://github.com/nemysis/FreeBSD_Ports/blob/master/pr/deskutils/send2trash.shar

Patch attached with submission follows:
How-To-Repeat: This Port is needed for games/anki-2.0.11

anki
Traceback (most recent call last):
  File "/usr/local/bin/anki", line 5, in <module>
    import aqt
  File "/usr/local/share/anki/aqt/__init__.py", line 5, in <module>
    from aqt.qt import *
  File "/usr/local/share/anki/aqt/qt.py", line 7, in <module>
    from anki.utils import isWin, isMac
  File "/usr/local/share/anki/anki/__init__.py", line 32, in <module>
    from anki.storage import Collection
  File "/usr/local/share/anki/anki/storage.py", line 9, in <module>
    from anki.collection import _Collection
  File "/usr/local/share/anki/anki/collection.py", line 12, in <module>
    from anki.media import MediaManager
  File "/usr/local/share/anki/anki/media.py", line 7, in <module>
    import send2trash
ImportError: No module named send2trash


With installed deskutils/send2trash Anki works


Build log

https://redports.org/buildarchive/20130616031600-62911/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-16 04:40:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->beech

beech@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 nemysis 2013-06-17 15:56:11 UTC
Use now correctly

USE_PYTHON=     2.7

CONFLICTS=      send2trash3k --> a other Port for Python 3

PLIST_SUB=      PYVER=${PYTHON_VER}

Use PYVER pkg-plist

%%PYTHON_SITELIBDIR%%/send2trash-1.2.0-py%%PYVER%%.egg/


Build log

https://redports.org/buildarchive/20130617133101-33350/
Comment 3 nemysis 2013-06-17 18:39:15 UTC
Remove not needed and not correct

CONFLICTS=	send2trash3k
Comment 4 William Grzybowski freebsd_committer freebsd_triage 2013-07-08 19:14:40 UTC
Responsible Changed
From-To: beech->wg

I'll take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-07-08 19:19:08 UTC
Author: wg
Date: Mon Jul  8 18:18:59 2013
New Revision: 322527
URL: http://svnweb.freebsd.org/changeset/ports/322527

Log:
  deskutils/py-send2trash: small package that sends files to the Trash
  
  Send2Trash is a small package that sends files to the Trash (or Recycle Bin)
  natively and on all platforms.
  
  WWW: http://hg.hardcoded.net/send2trash/
  
  PR:		ports/179604
  Submitted by:	nemysis <nemysis@gmx.ch>

Added:
  head/deskutils/py-send2trash/
  head/deskutils/py-send2trash/Makefile   (contents, props changed)
  head/deskutils/py-send2trash/distinfo   (contents, props changed)
  head/deskutils/py-send2trash/pkg-descr   (contents, props changed)
  head/deskutils/py-send2trash/pkg-plist   (contents, props changed)
Modified:
  head/deskutils/Makefile

Modified: head/deskutils/Makefile
==============================================================================
--- head/deskutils/Makefile	Mon Jul  8 18:14:55 2013	(r322526)
+++ head/deskutils/Makefile	Mon Jul  8 18:18:59 2013	(r322527)
@@ -216,6 +216,7 @@
     SUBDIR += plopfolio
     SUBDIR += preferencepanes
     SUBDIR += preferences
+    SUBDIR += py-send2trash
     SUBDIR += py-vobject
     SUBDIR += pybookreader
     SUBDIR += pypanel

Added: head/deskutils/py-send2trash/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/py-send2trash/Makefile	Mon Jul  8 18:18:59 2013	(r322527)
@@ -0,0 +1,29 @@
+# Created by: nemysis <nemysis@gmx.ch>
+# $FreeBSD$
+
+PORTNAME=	send2trash
+PORTVERSION=	1.2.0
+CATEGORIES=	deskutils
+MASTER_SITES=	CHEESESHOP
+DISTNAME=	Send2Trash-${PORTVERSION}
+
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Small package that sends files to the Trash
+
+LICENSE=	BSD
+
+USE_PYTHON=	yes
+USE_PYDISTUTILS=easy_install
+PYDISTUTILS_PKGNAME=	Send2Trash
+
+PORTDOCS=	CHANGES README
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>

Added: head/deskutils/py-send2trash/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/py-send2trash/distinfo	Mon Jul  8 18:18:59 2013	(r322527)
@@ -0,0 +1,2 @@
+SHA256 (Send2Trash-1.2.0.tar.gz) = 9de6d116218650bf24607175cc8e2c2d8a87898491339c13871b0fd462120d04
+SIZE (Send2Trash-1.2.0.tar.gz) = 5033

Added: head/deskutils/py-send2trash/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/py-send2trash/pkg-descr	Mon Jul  8 18:18:59 2013	(r322527)
@@ -0,0 +1,4 @@
+Send2Trash is a small package that sends files to the Trash (or Recycle Bin)
+natively and on all platforms.
+
+WWW: http://hg.hardcoded.net/send2trash/

Added: head/deskutils/py-send2trash/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/py-send2trash/pkg-plist	Mon Jul  8 18:18:59 2013	(r322527)
@@ -0,0 +1,20 @@
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_osx.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_osx.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_osx.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_other.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_other.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_other.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_win.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_win.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash/plat_win.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/send2trash
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 William Grzybowski freebsd_committer freebsd_triage 2013-07-08 19:19:12 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!