[arch-commits] Commit in bittorrent/repos (4 files)

Allan McRae allan at archlinux.org
Sat Jan 31 11:08:53 UTC 2009


    Date: Saturday, January 31, 2009 @ 06:08:53
  Author: allan
Revision: 25864

Merged revisions 356,4531,25859,25863 via svnmerge from 
svn+ssh://archlinux.org/srv/svn-packages/bittorrent/trunk

........
  r356 | aaron | 2008-04-18 22:56:27 +0000 (Fri, 18 Apr 2008) | 1 line
  
  Added svn:keywords to all PKGBUILDs
........
  r4531 | ronald | 2008-07-07 22:32:42 +0000 (Mon, 07 Jul 2008) | 1 line
  
  fix license
........
  r25859 | allan | 2009-01-31 09:36:24 +0000 (Sat, 31 Jan 2009) | 1 line
  
  upgpkg: bittorrent 5.2.2-1
........
  r25863 | allan | 2009-01-31 11:07:40 +0000 (Sat, 31 Jan 2009) | 1 line
  
  upgpkg: bittorrent 5.2.2-1
........

Modified:
  bittorrent/repos/extra-x86_64/	(properties)
  bittorrent/repos/extra-x86_64/PKGBUILD
  bittorrent/repos/extra-x86_64/bittorrent.install
Deleted:
  bittorrent/repos/extra-x86_64/bittorrent-arch.patch

-----------------------+
 PKGBUILD              |   29 +++++++++++-------
 bittorrent-arch.patch |   76 ------------------------------------------------
 bittorrent.install    |   16 +++-------
 3 files changed, 23 insertions(+), 98 deletions(-)


Property changes on: bittorrent/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /bittorrent/trunk:1
   + /bittorrent/trunk:1-25863

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-01-31 11:07:40 UTC (rev 25863)
+++ extra-x86_64/PKGBUILD	2009-01-31 11:08:53 UTC (rev 25864)
@@ -2,20 +2,27 @@
 # Mantainer: Juergen Hoetzel <juergen at archlinux.org>
 
 pkgname=bittorrent
-pkgver=5.0.6
-pkgrel=2
+pkgver=5.2.2
+pkgrel=1
 pkgdesc="BitTorrent is a tool for copying files from one machine to another."
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 url="http://www.bittorrent.com"
 install=bittorrent.install
-depends=("twisted" "pycrypto")
-source=(http://download.bittorrent.com/dl/BitTorrent-${pkgver}.tar.gz)
-md5sums=('c1ac5f78aebc444899aaf20d06dd62b5')
+depends=('twisted' 'pycrypto')
+source=(http://download.bittorrent.com/dl/archive/BitTorrent-${pkgver}.tar.gz)
+license=('custom')
+md5sums=('d8891cfa4c6bb796c8e948eace7694bc')
 
 build() {
-  cd $startdir/src/BitTorrent-$pkgver
-  # patch -p1 -i $startdir/src/bittorrent-arch.patch || return 1
-  sed -i -e "s|ip = os.path.join('share', 'pixmaps', appdir)|ip = os.path.join('share', 'bittorrent', 'pixmaps')|" BitTorrent/platform.py || return 1
-  sed -i -e "s|dp = os.path.join('share', 'doc'    , appdir)|dp = os.path.join('share', 'bittorrent', 'doc')|" BitTorrent/platform.py || return 1 
-  python ./setup.py install --root=$startdir/pkg
+  cd $srcdir/BitTorrent-$pkgver
+  python ./setup.py install --root=$pkgdir
+
+  # remove broken wx interface
+  rm $pkgdir/usr/bin/{bittorrent,maketorrent}
+  rm -rf $pkgdir/usr/lib/python2.6/site-packages/BitTorrent/GUI_wx
+  rm -rf $pkgdir/usr/share/pixmaps
+
+  # install custom license
+  install -Dm644 $srcdir/BitTorrent-$pkgver/LICENSE.txt \
+    $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }

Deleted: extra-x86_64/bittorrent-arch.patch
===================================================================
--- extra-x86_64/bittorrent-arch.patch	2009-01-31 11:07:40 UTC (rev 25863)
+++ extra-x86_64/bittorrent-arch.patch	2009-01-31 11:08:53 UTC (rev 25864)
@@ -1,76 +0,0 @@
-diff -urN BitTorrent-5.0.0/bittorrent-curses.py BitTorrent-5.0.0.new/bittorrent-curses.py
---- BitTorrent-5.0.0/bittorrent-curses.py	2006-10-26 23:42:56.000000000 +0200
-+++ BitTorrent-5.0.0.new/bittorrent-curses.py	2006-11-07 23:44:19.000000000 +0100
-@@ -42,7 +42,7 @@
- from BitTorrent import BTFailure, UserFailure
- from BitTorrent import version
- from BTL import GetTorrent
--from BitTorrent.RawServer_twisted import RawServer, task
-+from BitTorrent.RawServer_twisted import RawServer
- from BTL.ConvertedMetainfo import ConvertedMetainfo
- from BTL.yielddefer import launch_coroutine, _wrap_task
- from BitTorrent import inject_main_logfile
-@@ -498,12 +498,12 @@
-             if config['save_in']:
-                 raise BTFailure(_("You cannot specify both --save_as and "
-                                   "--save_in."))
--            saveas,bad = platform.encode_for_filesystem(config['save_as'])
-+            saveas,bad = encode_for_filesystem(config['save_as'])
-             if bad:
-                 raise BTFailure(_("Invalid path encoding."))
-             savein = os.path.dirname(os.path.abspath(saveas))
-         elif config['save_in']:
--            savein,bad = platform.encode_for_filesystem(config['save_in'])
-+            savein,bad = encode_for_filesystem(config['save_in'])
-             if bad:
-                 raise BTFailure(_("Invalid path encoding."))
-             saveas = os.path.join(savein,torrent_name)
-@@ -511,14 +511,14 @@
-             saveas = torrent_name
-         if config['save_incomplete_in']:
-             save_incomplete_in,bad = \
--                platform.encode_for_filesystem(config['save_incomplete_in'])
-+                encode_for_filesystem(config['save_incomplete_in'])
-             if bad:
-                 raise BTFailure(_("Invalid path encoding."))
-             save_incomplete_as = os.path.join(save_incomplete_in,torrent_name)
-         else:
-             save_incomplete_as = os.path.join(savein,torrent_name)
-     
--        data_dir,bad = platform.encode_for_filesystem(config['data_dir'])
-+        data_dir,bad = encode_for_filesystem(config['data_dir'])
-         if bad:
-             raise BTFailure(_("Invalid path encoding."))
- 
-diff -urN BitTorrent-5.0.0/launchmany-console.py BitTorrent-5.0.0.new/launchmany-console.py
---- BitTorrent-5.0.0/launchmany-console.py	2006-10-26 23:44:14.000000000 +0200
-+++ BitTorrent-5.0.0.new/launchmany-console.py	2006-11-07 23:44:19.000000000 +0100
-@@ -80,10 +80,10 @@
-         if args:
-             torrent_dir = args[0]
-             config['torrent_dir'] = \
--                platform.decode_from_filesystem(torrent_dir)
-+                decode_from_filesystem(torrent_dir)
-         else:
-             torrent_dir = config['torrent_dir']
--            torrent_dir,bad = platform.encode_for_filesystem(torrent_dir)
-+            torrent_dir,bad = encode_for_filesystem(torrent_dir)
-             if bad:
-               raise BTFailure(_("Warning: ")+config['torrent_dir']+
-                               _(" is not a directory"))
-diff -urN BitTorrent-5.0.0/launchmany-curses.py BitTorrent-5.0.0.new/launchmany-curses.py
---- BitTorrent-5.0.0/launchmany-curses.py	2006-10-26 23:44:14.000000000 +0200
-+++ BitTorrent-5.0.0.new/launchmany-curses.py	2006-11-07 23:44:19.000000000 +0100
-@@ -316,10 +316,10 @@
-         if args:
-             torrent_dir = args[0]
-             config['torrent_dir'] = \
--                platform.decode_from_filesystem(torrent_dir)    
-+                decode_from_filesystem(torrent_dir)    
-         else:
-             torrent_dir = config['torrent_dir']
--            torrent_dir,bad = platform.encode_for_filesystem(torrent_dir)
-+            torrent_dir,bad = encode_for_filesystem(torrent_dir)
-             if bad:
-               raise BTFailure(_("Warning: ")+config['torrent_dir']+
-                               _(" is not a directory"))

Modified: extra-x86_64/bittorrent.install
===================================================================
--- extra-x86_64/bittorrent.install	2009-01-31 11:07:40 UTC (rev 25863)
+++ extra-x86_64/bittorrent.install	2009-01-31 11:08:53 UTC (rev 25864)
@@ -1,15 +1,9 @@
-# arg 1:  the new package version
 post_install() {
-  echo "Optional dependencies:"
-  echo "wxpython - for graphical frontend \"bittorrent\""
-  /bin/true
+  echo "  The \"bittorrent\" packages no longer includes the GUI interface"
+  echo "  due to not being updated for wx-2.8 after two years."
+  echo "  Forward complaints upstream."
 }
-# arg 1:  the new package version
-# arg 2:  the old package version
+
 post_upgrade() {
-  post_install $*	
+  post_install $1
 }
-
-op=$1
-shift
-$op $*




More information about the arch-commits mailing list