diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-14 02:33:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-05-14 02:33:29 +0000 |
commit | a993a1936b34ef07a047d0fbd11d35efbae4f2c7 (patch) | |
tree | 62bbe77de7464f3ccebc855dfca3b19b0721c58f /dev-vcs | |
parent | Version bump. (diff) | |
download | historical-a993a1936b34ef07a047d0fbd11d35efbae4f2c7.tar.gz historical-a993a1936b34ef07a047d0fbd11d35efbae4f2c7.tar.bz2 historical-a993a1936b34ef07a047d0fbd11d35efbae4f2c7.zip |
Version bump. Rework python support.
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200
Diffstat (limited to 'dev-vcs')
6 files changed, 343 insertions, 15 deletions
diff --git a/dev-vcs/pwclient/ChangeLog b/dev-vcs/pwclient/ChangeLog index 299e9ad33b6a..f0709d7d63f3 100644 --- a/dev-vcs/pwclient/ChangeLog +++ b/dev-vcs/pwclient/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-vcs/pwclient # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/pwclient/ChangeLog,v 1.2 2015/02/20 20:06:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/pwclient/ChangeLog,v 1.3 2015/05/14 02:33:27 vapier Exp $ + +*pwclient-20141110122616 (14 May 2015) + + 14 May 2015; Mike Frysinger <vapier@gentoo.org> +files/pwclient-20141110122616 + -0001-pwclient-handle-missing-.pwclientrc-better.patch, +files/pwclient-201411 + 10122616-0002-pwclient-use-print_function-for-better-py3-compatibi.patch, + +files/pwclient-20141110122616-0003-pwclient-basic-python3-support.patch, + +pwclient-20141110122616.ebuild: + Version bump. Rework python support. 20 Feb 2015; Mike Frysinger <vapier@gentoo.org> pwclient-20121105131501.ebuild: diff --git a/dev-vcs/pwclient/Manifest b/dev-vcs/pwclient/Manifest index 086e9158e04b..7432dd6f9599 100644 --- a/dev-vcs/pwclient/Manifest +++ b/dev-vcs/pwclient/Manifest @@ -1,24 +1,29 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX pwclient-20141110122616-0001-pwclient-handle-missing-.pwclientrc-better.patch 1812 SHA256 a2129f1981f5800639d03e9422427a9f598137242b68816c23c0ccb6df9d6e7f SHA512 8d712a184d8dceb5eeb69596a65072f6b23ec998f78878b795574464aed1811764d7cb35ea50a36f0f1d8cb0cddb4ed2fb0fe9532b55a4d4992df648fbf2b974 WHIRLPOOL b85967c75410b31a0efc23b51563c510e02a3740c46a5dbb6dbf2d308a76f50e98f2ea5ada5c6718d77845852545fca335c45f64b99985da5fb275c06b09ab51 +AUX pwclient-20141110122616-0002-pwclient-use-print_function-for-better-py3-compatibi.patch 4005 SHA256 86fe8e27157010ef5671bb732fe701aaeaf82b02272a38f0a83064884d83d0da SHA512 6bd87392b99a6339f71ab0ed47115a63a5ed43c0d3c1b8b56e2fdfd77ebb8f8692ae3074c6e858f44b1de5d9bd439042b9d50fa38c90712b62d524e4cfcb8ba3 WHIRLPOOL 5d622757836d1696f14f10e47465f167606d56fdc443e84804e02e06a916db85bf9acbb7551ee5483abe49c84edf4956b3ca283d8644904699b7fa08b083eb75 +AUX pwclient-20141110122616-0003-pwclient-basic-python3-support.patch 4223 SHA256 8e9137c5c59c062a7b34f4cb35eed1ac47fcbfa1d01eb9b2c08e8c04ce419723 SHA512 be178e4f303ff777ed870a029561802e2294a53feed1e9bbf546b0947cc1ae0ca5ede44c6e73018c1a3370e3df388f5dc921459d9f0730f1152078ff439acaab WHIRLPOOL bd410d422a555906f03d454ee6ed73bf644f56dff2319fe4f51b15d365e210d0c85c62f08ee955b640720bda7532a593f49a6f181288b0546bf94e63641cc42d DIST pwclient-20121105131501 15497 SHA256 4818caef545d24ee4f17e28f2297c0317321a3acc892fb38b304e28b64342cc2 SHA512 07e70ec8ba2bd3a048cd9c5d5c8f8e142358608f462befc10388651c658d46660ce71cbc24eec09c908112dd38761febc8dfbee0c5a56f325eca8129e190ed1c WHIRLPOOL e97f88498774d13a2d21a38fb2a6cd63903f350870eb6d577a4e7383f9b58044307fae837d53b6946337ff5ef53815d12613830da0b6d241d06685056b53ac6d +DIST pwclient-20141110122616 23527 SHA256 5b13aad2cba051d38a3f80f50480e903c001f737302ec371b29247e3ec6fb396 SHA512 4933b7c5b4129d5fa1e47fa09dd8a75e5e5aac3254d8ed4bb65f8e7363d082217deecf8fc99f53092b607c49eebf9144e335079472a790a0193d0c6cddcf433f WHIRLPOOL 2689190853cb37f2be3c6db9fb67d4cdb4b2e927c388b2f916d2a0d26ea2156466ebdef4b9fbb57f928050026dccaff0686ab9c258b497374c2a3eaccd1249cb EBUILD pwclient-20121105131501.ebuild 1034 SHA256 355204a5b0e4abee242a794cf171b052c8baf1fd922ccca58125c8f9c24b6d29 SHA512 8ce60549cd6dbb16ed9e3b88f63d5e9850366f83f87299268eacc18673751e82e739ef7ca99763a8e2d98a9a898265a990dd9da37986de9a87b3a81389e83f85 WHIRLPOOL ffa720d349bb8508a383f0f1196bcf0f3f4f753bf1e8630c492eceb216daeb444738942950620dd7afb6bf8372cc9e193f7873bb69a2296676d6531758d2f495 -MISC ChangeLog 498 SHA256 4724f6a06b92847d1efba0c1b617e077615bb3fa456f02b852305843c4ac2f38 SHA512 4f55e56e95be8fdce53754ecb8380bc679a69f51921272d9b84787202f21ea3d2beebb6f4c93512878b9280eaace033e552ce4e333d3ed4ce7d8bc4ea45fb14f WHIRLPOOL 7f92d491a506b73c09347bc3a2d6350bb05852bc57653eb279d6f98b90a15e4ddb2ad37ab3801e455c0fb2e84f5b21675008142582a61f01515fc8f2ab7eb229 +EBUILD pwclient-20141110122616.ebuild 1113 SHA256 b1d7a8d4c758201ec3ecf907f5253e07443623db927d91290a553b9087f1c4e9 SHA512 9e7ada1d34a54217e6ed5a1a583cc4fbb446f4c81382eaa4651d2fa7fa984bf78bb3ba5258225a9c3fa9c4bf87731117457025700d0bd2ed4c0894d977d0c282 WHIRLPOOL edea101937409c163d14283e9a113197a97a994bf47d228e994a517eeabad476a78ef472a3adc1d2f1318ec6bb5064b9b89585ba18b3e8092714b32cc98d91a2 +MISC ChangeLog 928 SHA256 9b2f18f0a25c1a1b18eee70af27460c465b2046a496c67e925710d402f219b08 SHA512 3045bf0c4977a1c7023ec7c576ae683b18ea33747e8e271f1c185ad653b71a11f3199a8409a1d187cfbe0cad8eaab4f8cb97bb56b70687713b6880492f750678 WHIRLPOOL 6b061d1bde230258afb3d9e643aafee1be2518fe8806a0287ed3c3cb6f60c54d4486f09dbb328c900fc7ba6072786d4ed855eb07a283f855f13e5dfbe2f3632c MISC metadata.xml 200 SHA256 eb63f2affd0b8e3f5149df2f2f964910eb2127b650919a9e7892fae011e2b22b SHA512 da94c752d3f451652f15c0c459caa079e1d11f37278f86da057ed915ba167688ea62ec62c3c6406200fa951f8f495e9dd782d0e12f9e315187ba4de305f13a1d WHIRLPOOL 80bd517227281caf99e291cd59cd6e5deec972d693473727c7dcd6195450ea9dca63a151e52111c7c2456831f19113008ec60a5c1a66cc3b24f8b17c74e2c373 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIbBAEBCAAGBQJU55SMAAoJEPGu1DbS6WIAa8oP8gKNiUkI62HQThPF+Ig47Kj0 -KtRhlS1bnQPjCOw/gYsz1pqfPL668K+En4eSWwMMPXAclY2GtAOXYgKOF52FbKHu -Cj5bDfTQUG+jCs+NaAWNw85t/+ShVEovIRebMb/5YlGJfqeWD7QhkCZ8aEDM+yfc -Z/Jgt4Mo28XK4xaZB6fpc2dfnxjZrk6zbYUQIaryGWBljW7D0kC3kMSAsuCN4Pfr -daocLcXvEVIxw7N3UrHviiPsdXBo8HIdyBN2W1AoXSe5ptxd/O9POYsLLttEQXMH -6UjRvOQs4SV2r8p8FlD+QjxaDHDVqRjNbZEqDJcaisDtqITPAM7Lsl+4QAH9JNe4 -CyMwEWSIdQwdPHfQUOkN3Gv9VbTEm5J7Vn9lH11jqqRpNmKKZFFCTdLOSGIKk+Aj -NLDz38BJ0e9t7uDlHTAhNIEdGha7IqGXJ0Re00IpE3qf28AZELMdAMX4kn9dGk3D -MtD5FCZtisXi5ams80MVWnUQeWK8pyBW7mZN7GLBRo2gJ4i5lOZKcQkko3pz6nwy -OShxZupr9qs+0qrOcOgjWO8RdFg1dvTxSrkQeKufEWcrIPgm7DrlrU2UqY9Li2km -588L+ERI3Z0OmZKk+dMyI3VkXtj6MV1jXfTVAVRbUT2mjDIqMD9PI1zXSWCV4zif -8qpI5SRvUKYZmJWopjY= -=REO9 +iQIcBAEBCAAGBQJVVAl4AAoJEPGu1DbS6WIA/5sQAJC8nS0PYgU9k/9wyQGB9acy +dBszZf6tJs2/nN3F81FckF7Q6IqFJlWbwx8o/DZKAYxzDTpM+RZuYt6wFuHPJnGt +UXesnUITopH5b2qnLbf6rHYHXokmE2KRwX5Fz842BKJlbiuUDjRWksBjNkBqCS7J +ZFmTJtNJ79hInOLnhtJLlxbgCIZt8Trbc6yMZYXZWhlpe9bfZTq2C2jnzuPMoq57 +xXncvjuwyozNI+cGt0YbN8aosZRqunaTouj/vp96mQSRNCf2elgDIDTyQvM/9U1Q +TRyxckm8DM5TyTjx4DcS/OeB1gIP1G5kuI2WYeeJU3QybC3B+Kf2xo04eGiXJBgr +bi8PG0hHWbIVHTh+32fyaHiLu4i1bTscP7Ofwm8flFkogNBfPYI1nW1/AfAArTnS +3GxpKoKkouRqjOjJZUjgnGnXOZ91Sn8bPiTrIVe3W0o2c2zdkdrXWSHsmLsBpbDl +m5Ly/pJSPAskF9nEwQ92/D2wWUUUEbr39fDHLOLN0mOVgMNzsR+U/ze8gXEnWexQ +OR2l6Mdis7w/+bUKwyIzDuwQan+XiNIDnCBd+3r9LpiA3nfGpWtXh1+D2d8hxYcr +k8dQqVmYvVd6Sf+qHUBm2IbN+YnGu5nc407+VEl2GE58lIkwRRG2tqOEveS+uQOD +axc8/O0BZcfRwmU4TKcf +=pWTs -----END PGP SIGNATURE----- diff --git a/dev-vcs/pwclient/files/pwclient-20141110122616-0001-pwclient-handle-missing-.pwclientrc-better.patch b/dev-vcs/pwclient/files/pwclient-20141110122616-0001-pwclient-handle-missing-.pwclientrc-better.patch new file mode 100644 index 000000000000..43e2606efa67 --- /dev/null +++ b/dev-vcs/pwclient/files/pwclient-20141110122616-0001-pwclient-handle-missing-.pwclientrc-better.patch @@ -0,0 +1,45 @@ +From 601e1362d63293ca567295f63cb52bcfeb5d9959 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@chromium.org> +Date: Tue, 5 May 2015 23:19:57 -0400 +Subject: [PATCH 1/3] pwclient: handle missing ~/.pwclientrc better + +The upgrade path will crash if ~/.pwclientrc doesn't exist, so add an +explicit check for the file before we try to "upgrade" it. + +The default error messages don't mention the config file, so it can be +a bit confusing what pwclient is complaining about when running. + +Signed-off-by: Mike Frysinger <vapier@chromium.org> +--- + apps/patchwork/bin/pwclient | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient +index 2a80981..56aa909 100755 +--- a/apps/patchwork/bin/pwclient ++++ b/apps/patchwork/bin/pwclient +@@ -552,7 +552,7 @@ def main(): + config = ConfigParser.ConfigParser() + config.read([CONFIG_FILE]) + +- if not config.has_section('options'): ++ if not config.has_section('options') and os.path.exists(CONFIG_FILE): + sys.stderr.write('~/.pwclientrc is in the old format. Migrating it...') + + old_project = config.get('base','project') +@@ -590,10 +590,10 @@ def main(): + sys.exit(1) + + if not config.has_section(project_str): +- sys.stderr.write("No section for project %s\n" % project_str) ++ sys.stderr.write('No section for project %s in ~/.pwclientrc\n' % project_str) + sys.exit(1) + if not config.has_option(project_str, 'url'): +- sys.stderr.write("No URL for project %s\n" % project_str) ++ sys.stderr.write('No URL for project %s in ~/.pwclientrc\n' % project_str) + sys.exit(1) + if not do_signoff and config.has_option('options', 'signoff'): + do_signoff = config.getboolean('options', 'signoff') +-- +2.4.0 + diff --git a/dev-vcs/pwclient/files/pwclient-20141110122616-0002-pwclient-use-print_function-for-better-py3-compatibi.patch b/dev-vcs/pwclient/files/pwclient-20141110122616-0002-pwclient-use-print_function-for-better-py3-compatibi.patch new file mode 100644 index 000000000000..70f54a7aed3a --- /dev/null +++ b/dev-vcs/pwclient/files/pwclient-20141110122616-0002-pwclient-use-print_function-for-better-py3-compatibi.patch @@ -0,0 +1,101 @@ +From 0991ccb0e7c0be66e087839f88a7120394c2f052 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@chromium.org> +Date: Tue, 5 May 2015 23:54:16 -0400 +Subject: [PATCH 2/3] pwclient: use print_function for better py3 compatibility + +The script already tries to use print like a function in many places but +is really passing a parenthesized string. Import the print_function from +the future module so that it actually works as intended. + +We also need to fix up a few latent print statements to make it work. + +Signed-off-by: Mike Frysinger <vapier@chromium.org> +--- + apps/patchwork/bin/pwclient | 26 ++++++++++++++------------ + 1 file changed, 14 insertions(+), 12 deletions(-) + +diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient +index 56aa909..2e6daa5 100755 +--- a/apps/patchwork/bin/pwclient ++++ b/apps/patchwork/bin/pwclient +@@ -19,6 +19,8 @@ + # along with Patchwork; if not, write to the Free Software + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ++from __future__ import print_function ++ + import os + import sys + import xmlrpclib +@@ -170,9 +172,9 @@ def action_list(rpc, filter, submitter_str, delegate_str, format_str=None): + else: + for id in ids: + person = rpc.person_get(id) +- print "Patches submitted by %s <%s>:" % \ +- (unicode(person['name']).encode("utf-8"), \ +- unicode(person['email']).encode("utf-8")) ++ print('Patches submitted by %s <%s>:' % ++ (unicode(person['name']).encode('utf-8'), ++ unicode(person['email']).encode('utf-8'))) + f = filter + f.add("submitter_id", id) + patches = rpc.patch_list(f.d) +@@ -187,8 +189,8 @@ def action_list(rpc, filter, submitter_str, delegate_str, format_str=None): + else: + for id in ids: + person = rpc.person_get(id) +- print "Patches delegated to %s <%s>:" % \ +- (person['name'], person['email']) ++ print('Patches delegated to %s <%s>:' % ++ (person['name'], person['email'])) + f = filter + f.add("delegate_id", id) + patches = rpc.patch_list(f.d) +@@ -245,7 +247,7 @@ def action_get(rpc, patch_id): + try: + f.write(unicode(s).encode("utf-8")) + f.close() +- print "Saved patch to %s" % fname ++ print('Saved patch to %s' % fname) + except: + sys.stderr.write("Failed to write to %s\n" % fname) + sys.exit(1) +@@ -258,13 +260,13 @@ def action_apply(rpc, patch_id, apply_cmd=None): + sys.exit(1) + + if apply_cmd is None: +- print "Applying patch #%d to current directory" % patch_id ++ print('Applying patch #%d to current directory' % patch_id) + apply_cmd = ['patch', '-p1'] + else: +- print "Applying patch #%d using %s" % ( +- patch_id, repr(' '.join(apply_cmd))) ++ print('Applying patch #%d using %s' % ++ (patch_id, repr(' '.join(apply_cmd)))) + +- print "Description: %s" % patch['name'] ++ print('Description: %s' % patch['name']) + s = rpc.patch_get_mbox(patch_id) + if len(s) > 0: + proc = subprocess.Popen(apply_cmd, stdin = subprocess.PIPE) +@@ -295,7 +297,7 @@ def action_update_patch(rpc, patch_id, state = None, commit = None): + success = False + try: + success = rpc.patch_set(patch_id, params) +- except xmlrpclib.Fault, f: ++ except xmlrpclib.Fault as f: + sys.stderr.write("Error updating patch: %s\n" % f.faultString) + + if not success: +@@ -668,7 +670,7 @@ def main(): + for patch_id in non_empty(h, patch_ids): + s = rpc.patch_get_mbox(patch_id) + if len(s) > 0: +- print unicode(s).encode("utf-8") ++ print(unicode(s).encode('utf-8')) + + elif action == 'info': + for patch_id in non_empty(h, patch_ids): +-- +2.4.0 + diff --git a/dev-vcs/pwclient/files/pwclient-20141110122616-0003-pwclient-basic-python3-support.patch b/dev-vcs/pwclient/files/pwclient-20141110122616-0003-pwclient-basic-python3-support.patch new file mode 100644 index 000000000000..da75ac1d3e1a --- /dev/null +++ b/dev-vcs/pwclient/files/pwclient-20141110122616-0003-pwclient-basic-python3-support.patch @@ -0,0 +1,125 @@ +From fcbd40fe7fa3fbdc5ffb386c5c7b72a8704e7136 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@chromium.org> +Date: Wed, 6 May 2015 00:12:02 -0400 +Subject: [PATCH 3/3] pwclient: basic python3 support + +This fixes a few random issues to make the script work at least somewhat +under python 3: +- set the default encoding to utf-8 +- handle xmlrpclib/xmlrpc.client module renames +- handle ConfigParser/configparser module renames +- add a unicode() stub for python 3 +- fix old style class definition w/Filter +- use list comprehension instead of map() +- drop the unused version= keyword w/argparse + +The code still runs under python 2 the same as before, and now works for +the most part under python 3 -- the handling of encoded content still needs +some work, but that'll require more surgery, and is best left to another +commit after this. + +Signed-off-by: Mike Frysinger <vapier@chromium.org> +--- + apps/patchwork/bin/pwclient | 31 +++++++++++++++++++++++-------- + 1 file changed, 23 insertions(+), 8 deletions(-) + +diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient +index 2e6daa5..5080a17 100755 +--- a/apps/patchwork/bin/pwclient ++++ b/apps/patchwork/bin/pwclient +@@ -1,4 +1,5 @@ + #!/usr/bin/env python ++# -*- coding: utf-8 -*- + # + # Patchwork command line client + # Copyright (C) 2008 Nate Case <ncase@xes-inc.com> +@@ -23,16 +24,31 @@ from __future__ import print_function + + import os + import sys +-import xmlrpclib ++try: ++ import xmlrpclib ++except ImportError: ++ # Python 3 has merged/renamed things. ++ import xmlrpc.client as xmlrpclib + import argparse + import string + import tempfile + import subprocess + import base64 +-import ConfigParser ++try: ++ import ConfigParser ++except ImportError: ++ # Python 3 has renamed things. ++ import configparser as ConfigParser + import shutil + import re + ++# Add a shim for Python 2's unicode() helper. ++try: ++ unicode ++except NameError: ++ # Python 3 does everything by unicode now. ++ unicode = str ++ + # Default Patchwork remote XML-RPC server URL + # This script will check the PW_XMLRPC_URL environment variable + # for the URL to access. If that is unspecified, it will fallback to +@@ -40,7 +56,7 @@ import re + DEFAULT_URL = "http://patchwork/xmlrpc/" + CONFIG_FILE = os.path.expanduser('~/.pwclientrc') + +-class Filter: ++class Filter(object): + """Filter for selecting patches.""" + def __init__(self): + # These fields refer to specific objects, so they are special +@@ -135,7 +151,7 @@ def person_ids_by_name(rpc, name): + if len(name) == 0: + return [] + people = rpc.person_list(name, 0) +- return map(lambda x: x['id'], people) ++ return [x['id'] for x in people] + + def list_patches(patches, format_str=None): + """Dump a list of patches to stdout.""" +@@ -352,7 +368,7 @@ class _RecursiveHelpAction(argparse._HelpAction): + parser.exit() + + def main(): +- hash_parser = argparse.ArgumentParser(add_help=False, version=False) ++ hash_parser = argparse.ArgumentParser(add_help=False) + hash_parser.add_argument( + '-h', metavar='HASH', dest='hash', action='store', + help='''Lookup by patch hash''' +@@ -362,7 +378,7 @@ def main(): + help='Patch ID', + ) + +- filter_parser = argparse.ArgumentParser(add_help=False, version=False) ++ filter_parser = argparse.ArgumentParser(add_help=False) + filter_parser.add_argument( + '-s', metavar='STATE', + help='''Filter by patch state (e.g., 'New', 'Accepted', etc.)''' +@@ -397,7 +413,7 @@ def main(): + 'patch_name', metavar='STR', nargs='?', + help='substring to search for patches by name', + ) +- help_parser = argparse.ArgumentParser(add_help=False, version=False) ++ help_parser = argparse.ArgumentParser(add_help=False) + help_parser.add_argument( + '--help', action='help', help=argparse.SUPPRESS, + #help='''show this help message and exit''' +@@ -406,7 +422,6 @@ def main(): + action_parser = argparse.ArgumentParser( + prog='pwclient', + add_help=False, +- version=False, + formatter_class=argparse.RawDescriptionHelpFormatter, + epilog='''(apply | get | info | view | update) (-h HASH | ID [ID ...])''', + ) +-- +2.4.0 + diff --git a/dev-vcs/pwclient/pwclient-20141110122616.ebuild b/dev-vcs/pwclient/pwclient-20141110122616.ebuild new file mode 100644 index 000000000000..415fe792492e --- /dev/null +++ b/dev-vcs/pwclient/pwclient-20141110122616.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/pwclient/pwclient-20141110122616.ebuild,v 1.1 2015/05/14 02:33:27 vapier Exp $ + +EAPI="5" + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit eutils python-r1 + +# The PV comes from: +# git clone ${EGIT_REPO_URI} +# cd patchwork +# EGIT_COMMIT=$(git log -n1 --format=%H apps/patchwork/bin/pwclient) +# date --date="$(git log -n1 --format=%ci ${EGIT_COMMIT})" -u +%Y%m%d%H%M%S +EGIT_REPO_URI="git://ozlabs.org/home/jk/git/patchwork" +EGIT_COMMIT="8904a7dcaf959da8db4a9a5d92b91a61eed05201" + +DESCRIPTION="command line utility for interacting with patchwork repos" +HOMEPAGE="http://jk.ozlabs.org/projects/patchwork/" +SRC_URI="mirror://gentoo/${P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +RDEPEND="${PYTHON_DEPS}" + +S=${WORKDIR} + +src_unpack() { + cp "${DISTDIR}"/${P} ${PN} || die +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-*.patch +} + +src_install() { + python_setup + python_doscript ${PN} +} |