provides virtual/bittorrent. removed obsolete version. bug# 77720
authorRob Cakebread <pythonhead@gentoo.org>
Wed, 12 Jan 2005 23:13:20 +0000 (23:13 +0000)
committerRob Cakebread <pythonhead@gentoo.org>
Wed, 12 Jan 2005 23:13:20 +0000 (23:13 +0000)
net-p2p/kenosis/ChangeLog
net-p2p/kenosis/Manifest
net-p2p/kenosis/files/digest-kenosis-0.92-r1 [new file with mode: 0644]
net-p2p/kenosis/kenosis-0.92-r1.ebuild [new file with mode: 0644]
net-p2p/kenosis/kenosis-0.92.ebuild [deleted file]

index 6345b7679a3837005b68f39233371f89b9c88905..75141f2e568618c2686e22ba9e663250c1a69dcb 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-p2p/kenosis
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/kenosis/ChangeLog,v 1.1 2005/01/11 21:55:03 pythonhead Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/kenosis/ChangeLog,v 1.2 2005/01/12 23:13:20 pythonhead Exp $
+
+*kenosis-0.92-r1 (12 Jan 2005)
+
+  12 Jan 2005; Rob Cakebread <pythonhead@gentoo.org>
+  +kenosis-0.92-r1.ebuild, -kenosis-0.92.ebuild:
+  provides virtual/bittorrent. removed obsolete version. bug# 77720
 
 *kenosis-0.92 (11 Jan 2005)
 
index ade158ad2acb84e245524be4aa94ba584c64ef79..96ebba86737a9df942e05d622be14158f9fe0df7 100644 (file)
@@ -1,14 +1,14 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 ae5a20e715b012a99bfd3b7fc0583a85 kenosis-0.92.ebuild 612
-MD5 394e0c0c7bd2a09de46482ff05c4eebc ChangeLog 347
 MD5 760a55aa181d5c557b4912d88a300d50 metadata.xml 281
-MD5 3c5b1b91bb0c3f0df1944275718412d3 files/digest-kenosis-0.92 64
+MD5 785d2aa2263c32f7ae843624cf883c30 ChangeLog 550
+MD5 da387629644054028511d0f0613114d1 kenosis-0.92-r1.ebuild 1512
+MD5 3c5b1b91bb0c3f0df1944275718412d3 files/digest-kenosis-0.92-r1 64
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
+Version: GnuPG v1.4.0 (GNU/Linux)
 
-iD8DBQFB5F4YI1lqEGTUzyQRAqL9AKCbuKL9Kw/tm2Tpg1mzOHRv1lyPBgCgx8gg
-7blIFIFd1mDZYarzoHw0xqk=
-=imMF
+iD8DBQFB5a89z2gxt1z4IGYRAg/0AKDLTbpZgFjQlu28qTc6Gqb+0bN/DgCgsNVJ
+xmnzQs34L2hCa2XpHnjxy1k=
+=xoZX
 -----END PGP SIGNATURE-----
diff --git a/net-p2p/kenosis/files/digest-kenosis-0.92-r1 b/net-p2p/kenosis/files/digest-kenosis-0.92-r1
new file mode 100644 (file)
index 0000000..029e966
--- /dev/null
@@ -0,0 +1 @@
+MD5 969f5fd77b57743c07336b796fc7c01d kenosis-0.92.tar.gz 107101
diff --git a/net-p2p/kenosis/kenosis-0.92-r1.ebuild b/net-p2p/kenosis/kenosis-0.92-r1.ebuild
new file mode 100644 (file)
index 0000000..ff84407
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/kenosis/kenosis-0.92-r1.ebuild,v 1.1 2005/01/12 23:13:20 pythonhead Exp $
+
+inherit distutils
+
+DESCRIPTION="Fully-distributed p2p RPC system with modified bittorrent client"
+HOMEPAGE="http://sourceforge.net/projects/kenosis"
+SRC_URI="mirror://sourceforge/kenosis/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="X"
+DEPEND="X? ( <dev-python/wxpython-2.5* )
+       >=dev-lang/python-2.1
+       !virtual/bittorrent"
+PROVIDE="virtual/bittorrent"
+
+src_compile() {
+       mv kenosis_setup.py setup.py
+       distutils_src_compile
+       cd ${S}/bt
+       python setup.py build
+}
+
+src_install() {
+       cd ${S}
+       distutils_src_install
+       cd ${S}/bt
+       python setup.py install --root=${D}
+
+       if ! use X; then
+               rm ${D}/usr/bin/*gui.py
+       fi
+
+       dodir etc
+       cp -a /etc/mailcap ${D}/etc/
+
+       MAILCAP_STRING="application/x-bittorrent; /usr/bin/btdownloadgui.py '%s'; test=test -n \"\$DISPLAY\""
+
+       if use X; then
+               if [ -n "`grep 'application/x-bittorrent' ${D}/etc/mailcap`" ]; then
+                       # replace bittorrent entry if it already exists
+                       einfo "updating bittorrent mime info"
+                       sed -i "s,application/x-bittorrent;.*,${MAILCAP_STRING}," ${D}/etc/mailcap
+               else
+                       # add bittorrent entry if it doesn't exist
+                       einfo "adding bittorrent mime info"
+                       echo "${MAILCAP_STRING}" >> ${D}/etc/mailcap
+               fi
+       else
+               # get rid of any reference to the not-installed gui version
+               sed -i '/btdownloadgui/d' ${D}/etc/mailcap
+       fi
+}
diff --git a/net-p2p/kenosis/kenosis-0.92.ebuild b/net-p2p/kenosis/kenosis-0.92.ebuild
deleted file mode 100644 (file)
index 7adba28..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/kenosis/kenosis-0.92.ebuild,v 1.1 2005/01/11 21:55:03 pythonhead Exp $
-
-inherit distutils
-
-DESCRIPTION="Fully-distributed p2p RPC system built on top of XMLRPC/bittorrent"
-HOMEPAGE="http://sourceforge.net/projects/kenosis"
-SRC_URI="mirror://sourceforge/kenosis/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~x86"
-
-IUSE="X"
-DEPEND="X? ( <dev-python/wxpython-2.5* )
-       >=dev-lang/python-2.1"
-
-
-src_compile() {
-       mv kenosis_setup.py setup.py
-       distutils_src_compile
-}