diff options
-rw-r--r-- | net-misc/identicurse/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/identicurse/files/identicurse-config_json_path.patch | 31 | ||||
-rw-r--r-- | net-misc/identicurse/files/identicurse-gzipped_readme.patch | 15 | ||||
-rw-r--r-- | net-misc/identicurse/identicurse-0.7.3.ebuild | 33 | ||||
-rw-r--r-- | net-misc/identicurse/metadata.xml | 10 |
5 files changed, 100 insertions, 0 deletions
diff --git a/net-misc/identicurse/ChangeLog b/net-misc/identicurse/ChangeLog new file mode 100644 index 000000000000..0f359cdfd0dd --- /dev/null +++ b/net-misc/identicurse/ChangeLog @@ -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/files/identicurse-config_json_path.patch b/net-misc/identicurse/files/identicurse-config_json_path.patch new file mode 100644 index 000000000000..bbd217e3c061 --- /dev/null +++ b/net-misc/identicurse/files/identicurse-config_json_path.patch @@ -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 index 000000000000..b4575ef07b97 --- /dev/null +++ b/net-misc/identicurse/files/identicurse-gzipped_readme.patch @@ -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 index 000000000000..043cfa0635c9 --- /dev/null +++ b/net-misc/identicurse/identicurse-0.7.3.ebuild @@ -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 index 000000000000..2ce0a578a17d --- /dev/null +++ b/net-misc/identicurse/metadata.xml @@ -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> |