aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-10-23 05:53:51 +0800
committermarcus <marcus@FreeBSD.org>2003-10-23 05:53:51 +0800
commit73b3287ce6c711480d51a6d94da4d473a4091778 (patch)
tree048f850aad16747899566762e1a36f28d02ba29f /net-p2p
parenta9e4e6906ec16deac130eae5f06758ab4f52c86a (diff)
downloadfreebsd-ports-gnome-73b3287ce6c711480d51a6d94da4d473a4091778.tar.gz
freebsd-ports-gnome-73b3287ce6c711480d51a6d94da4d473a4091778.tar.zst
freebsd-ports-gnome-73b3287ce6c711480d51a6d94da4d473a4091778.zip
Add gnome-btdownload, a GNOME interface for downloading and "executing"
BitTorrent files. It is designed as a mime-sinkfor BitTorrent files; not a front-end, more-or-less just a session dialog. See net/py-bittorrent for more information. You can use Nautilus and double click on one of torrent file to exec gnome-btdownload and start downloading . If you don't use Nautilus, you still can run gnome-btdownload <file>. PR: 58392 Submitted by: Jeremy Messenger <mezz7@cox.net>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/gnome-btdownload/Makefile32
-rw-r--r--net-p2p/gnome-btdownload/distinfo1
-rw-r--r--net-p2p/gnome-btdownload/files/patch-src::gnome-btdownload17
-rw-r--r--net-p2p/gnome-btdownload/pkg-descr5
-rw-r--r--net-p2p/gnome-btdownload/pkg-plist10
5 files changed, 65 insertions, 0 deletions
diff --git a/net-p2p/gnome-btdownload/Makefile b/net-p2p/gnome-btdownload/Makefile
new file mode 100644
index 000000000000..273a1f480631
--- /dev/null
+++ b/net-p2p/gnome-btdownload/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: gnome-btdownload
+# Date created: 21 October 2003
+# Whom: Mezz <mezz7@cox.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnome-btdownload
+PORTVERSION= 0.0.6
+CATEGORIES= net gnome
+MASTER_SITES= http://omapi.sourceforge.net/extra/${PORTNAME}/
+
+MAINTAINER= mezz7@cox.net
+COMMENT= A simple Gnome interface designed as a mime-sink for BitTorrent files
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/BitTorrent/__init__.py:${PORTSDIR}/net/py-bittorrent-core \
+ ${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_PYTHON= yes
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gnomeprefix
+GNU_CONFIGURE= yes
+
+MAN1= gnome-btdownload.1
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%X11PREFIX%%|${PREFIX}|g' \
+ ${WRKSRC}/src/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/net-p2p/gnome-btdownload/distinfo b/net-p2p/gnome-btdownload/distinfo
new file mode 100644
index 000000000000..3096afb8f787
--- /dev/null
+++ b/net-p2p/gnome-btdownload/distinfo
@@ -0,0 +1 @@
+MD5 (gnome-btdownload-0.0.6.tar.bz2) = 02a2754533ea2366430dac0e5f705839
diff --git a/net-p2p/gnome-btdownload/files/patch-src::gnome-btdownload b/net-p2p/gnome-btdownload/files/patch-src::gnome-btdownload
new file mode 100644
index 000000000000..f00b144cd660
--- /dev/null
+++ b/net-p2p/gnome-btdownload/files/patch-src::gnome-btdownload
@@ -0,0 +1,17 @@
+--- src/gnome-btdownload.orig Wed Oct 22 12:43:59 2003
++++ src/gnome-btdownload Wed Oct 22 12:56:24 2003
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import BitTorrent.download
+ import os.path, threading, sys, time
+@@ -36,7 +36,7 @@
+ if not locate_file:
+ try:
+ def fallback_locate_attempt_prefixes(path):
+- prefixes = ['', 'usr/', 'usr/local/']
++ prefixes = ['', '%%X11PREFIX%%/', 'usr/', 'usr/local/']
+
+ # Try them locally
+ for prefix in prefixes:
diff --git a/net-p2p/gnome-btdownload/pkg-descr b/net-p2p/gnome-btdownload/pkg-descr
new file mode 100644
index 000000000000..2a5b6aa7ce55
--- /dev/null
+++ b/net-p2p/gnome-btdownload/pkg-descr
@@ -0,0 +1,5 @@
+Gnome interface for 'executing' BitTorrent files. It is designed as a mime-sink
+for BitTorrent files. Not a front-end, more-or-less just a session dialog. See
+net/py-bittorrent for more information.
+
+WWW: http://omapi.sourceforge.net/extra/gnome-btdownload/
diff --git a/net-p2p/gnome-btdownload/pkg-plist b/net-p2p/gnome-btdownload/pkg-plist
new file mode 100644
index 000000000000..c737fca5eb7b
--- /dev/null
+++ b/net-p2p/gnome-btdownload/pkg-plist
@@ -0,0 +1,10 @@
+bin/gnome-btdownload
+share/gnome/application-registry/gnome-btdownload.applications
+share/gnome/gnome-btdownload/glade/dlsession.glade
+share/gnome/gnome-btdownload/glade/errdiag.glade
+share/gnome/gnome-btdownload/pixmaps/download.png
+share/gnome/mime-info/gnome-btdownload.keys
+share/gnome/mime-info/gnome-btdownload.mime
+@dirrm share/gnome/gnome-btdownload/pixmaps
+@dirrm share/gnome/gnome-btdownload/glade
+@dirrm share/gnome/gnome-btdownload