Initial import wrt bug #381695. Ebuild written by me.
authorKacper Kowalik <xarthisius@gentoo.org>
Sat, 3 Sep 2011 19:51:44 +0000 (19:51 +0000)
committerKacper Kowalik <xarthisius@gentoo.org>
Sat, 3 Sep 2011 19:51:44 +0000 (19:51 +0000)
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64

net-misc/identicurse/ChangeLog [new file with mode: 0644]
net-misc/identicurse/Manifest [new file with mode: 0644]
net-misc/identicurse/files/identicurse-config_json_path.patch [new file with mode: 0644]
net-misc/identicurse/files/identicurse-gzipped_readme.patch [new file with mode: 0644]
net-misc/identicurse/identicurse-0.7.3.ebuild [new file with mode: 0644]
net-misc/identicurse/metadata.xml [new file with mode: 0644]

diff --git a/net-misc/identicurse/ChangeLog b/net-misc/identicurse/ChangeLog
new file mode 100644 (file)
index 0000000..0f359cd
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/identicurse
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/identicurse/ChangeLog,v 1.1 2011/09/03 19:51:44 xarthisius Exp $
+
+*identicurse-0.7.3 (03 Sep 2011)
+
+  03 Sep 2011; Kacper Kowalik <xarthisius@gentoo.org>
+  +identicurse-0.7.3.ebuild, +files/identicurse-config_json_path.patch,
+  +files/identicurse-gzipped_readme.patch, +metadata.xml:
+  Initial import wrt bug #381695. Ebuild written by me.
+
diff --git a/net-misc/identicurse/Manifest b/net-misc/identicurse/Manifest
new file mode 100644 (file)
index 0000000..e19a5ef
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX identicurse-config_json_path.patch 1816 RMD160 253c252120f9d9701b628b9a8bd1fb7601d072e9 SHA1 57bc2520c1de127119c7eabccace25c2767d1f8e SHA256 9b39ad89a4377bd241fea7528fab397acb579c85a01cb492b95683a045a60883
+AUX identicurse-gzipped_readme.patch 589 RMD160 0bf4b30cb4efdbaa2c1e1402f968fbf52ef2ae59 SHA1 955de7dc673e558856f3adfb0df8a4a45b7b4206 SHA256 ec27e9e442fa10ccc1ebaaf3b124b5d66f737375a6b669f22e718bb076da9cc5
+DIST identicurse-0.7.3.tar.bz2 51420 RMD160 8682a5376c867f6f1b1079a9e364b51be0cc1339 SHA1 40ed486d6626a45d3a44e754c62072af4520144a SHA256 de4cfbdd08d84ea15b9152f1b608208c30ba34b272b2ac524f326bb2f2b4ecdd
+EBUILD identicurse-0.7.3.ebuild 810 RMD160 a75451e082964f05c0093bf067653fe12d3d5093 SHA1 746d44568ef1f05c370975b9696126337cc99ce7 SHA256 47923663f5d2a93990ab4263daa75f794e8f76dae2766707c75750045843f9e6
+MISC ChangeLog 492 RMD160 9ebea4a99d254cb4f74a2dcbd4889f8a39c37590 SHA1 30785f4e57ba6e9f48d9edaa1734aa981427f771 SHA256 ed09296820456649cde6f8e37b936b1c8b44cf1097eb712af9947c63131cd609
+MISC metadata.xml 345 RMD160 22613828510989d360cb74e2b6d39bb5ad27f953 SHA1 6ce1b59ac345e1c6808eda905425cb0dc1dd3f07 SHA256 ad6726fff7b1f72b920148c7b3cab317ed7ec6c3aee2bda4c02f81d3466b9d88
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iJwEAQEIAAYFAk5ihVoACgkQIiMqcbOVdxQSEwP8CNIZttuU9i3zH0IR8bt+4WaH
+2UsYbqRjWyIOZxODj8e2w//ZnQe/93OU7WrkBbh5olz/EI8X7k3qeYoYuSAwFv9t
+Ly2LLb0M74gvXB0QaCCrYDqezfZZmjOR6OvGq+fkIfNSre4fOnMdYOGSFgm7K70/
+PUv6wkOPIG9ZyP/19jA=
+=RdM2
+-----END PGP SIGNATURE-----
diff --git a/net-misc/identicurse/files/identicurse-config_json_path.patch b/net-misc/identicurse/files/identicurse-config_json_path.patch
new file mode 100644 (file)
index 0000000..bbd217e
--- /dev/null
@@ -0,0 +1,31 @@
+Description: IdentiCurse checks for config.json in
+ /usr/lib/python*/*-packages/identicurse/, change this behaviour to make it
+ check it in /usr/share/identicurse/.
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=621895
+Author: Alessio Treglia <alessio@debian.org>
+Modified: Kacper Kowalik <xarthisius@gentoo.org>
+
+--- a/src/identicurse/identicurse.py
++++ b/src/identicurse/identicurse.py
+@@ -133,8 +133,8 @@ class IdentiCurse(object):
+             else:
+                 import getpass, time
+                 # no config yet, so let's build one
+-                print os.path.join(self.path, "config.json")
+-                config.config.load(os.path.join(self.path, "config.json"))
++                print os.path.join("/", "usr", "share", "identicurse", "config.json")
++                config.config.load(os.path.join("/", "usr", "share", "identicurse", "config.json"))
+                 print "No config was found, so we will now run through a few quick questions to set up a basic config for you (which will be saved as %s so you can manually edit it later). If the default (where defaults are available, they're stated in []) is already fine for any question, just press Enter without typing anything, and the default will be used." % (config.config.filename)
+                 print "This version of IdentiCurse supports OAuth login. Using OAuth to log in means that you do not need to enter your username and password."
+                 use_oauth = raw_input("Use OAuth [Y/n]? ").upper()
+--- a/setup.py
++++ b/setup.py
+@@ -36,7 +36,7 @@
+     license="GPLv3+",
+-    data_files=[('identicurse',['README', 'conf/config.json'])],
++    data_files=[('share/identicurse',['README','conf/config.json'])],
+     packages=find_packages('src'),
+     package_dir={'': 'src'},
+     include_package_data=True,
diff --git a/net-misc/identicurse/files/identicurse-gzipped_readme.patch b/net-misc/identicurse/files/identicurse-gzipped_readme.patch
new file mode 100644 (file)
index 0000000..b4575ef
--- /dev/null
@@ -0,0 +1,15 @@
+Description: Point the online help to /usr/share/identicurse/README.
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612976
+Author: Alessio Treglia <alessio@debian.org>
+
+--- a/src/identicurse/tabbage.py
++++ b/src/identicurse/tabbage.py
+@@ -225,6 +225,8 @@ class Help(Tab):
+     def __init__(self, window, identicurse_path):
+         self.name = "Help"
+         self.path = os.path.join(identicurse_path, "README")
++        if not os.path.isfile(self.path):
++            self.path = '/usr/share/identicurse/README'
+         Tab.__init__(self, window) 
+     def update(self):
diff --git a/net-misc/identicurse/identicurse-0.7.3.ebuild b/net-misc/identicurse/identicurse-0.7.3.ebuild
new file mode 100644 (file)
index 0000000..043cfa0
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/identicurse/identicurse-0.7.3.ebuild,v 1.1 2011/09/03 19:51:44 xarthisius Exp $
+
+EAPI=3
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils versionator
+
+MY_PV=$(get_version_component_range 1-2)
+
+DESCRIPTION="A simple Identi.ca client with a curses-based UI"
+HOMEPAGE="http://identicurse.net"
+SRC_URI="http://identicurse.net/release/${MY_PV}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools"
+RDEPEND=""
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-gzipped_readme.patch \
+               "${FILESDIR}"/${PN}-config_json_path.patch
+       distutils_src_prepare
+}
diff --git a/net-misc/identicurse/metadata.xml b/net-misc/identicurse/metadata.xml
new file mode 100644 (file)
index 0000000..2ce0a57
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd>no-herd</herd>
+       <maintainer>
+               <email>xarthisius@gentoo.org</email>
+               <name>Kacper Kowalik</name>
+       </maintainer>
+       <longdescription>A simple Identi.ca client with a curses-based UI.</longdescription>
+</pkgmetadata>