1 |
commit: 49013fb9466a83b5ef5bd79976ed187fcb591029 |
2 |
Author: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 30 09:06:47 2012 +0000 |
4 |
Commit: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 30 09:06:47 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/maksbotan.git;a=commit;h=49013fb9 |
7 |
|
8 |
Add app-text/pygist, python 3 github gist client |
9 |
|
10 |
(Portage version: 2.1.10.57/git/Linux x86_64, signed Manifest commit with key F8DBDADE) |
11 |
|
12 |
--- |
13 |
app-text/pygist/Manifest | 18 +++++++++++++++ |
14 |
app-text/pygist/metadata.xml | 12 ++++++++++ |
15 |
app-text/pygist/pygist-1.1.ebuild | 43 ++++++++++++++++++++++++++++++++++++ |
16 |
app-text/pygist/pygist-9999.ebuild | 43 ++++++++++++++++++++++++++++++++++++ |
17 |
4 files changed, 116 insertions(+), 0 deletions(-) |
18 |
|
19 |
diff --git a/app-text/pygist/Manifest b/app-text/pygist/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..45803a2 |
22 |
--- /dev/null |
23 |
+++ b/app-text/pygist/Manifest |
24 |
@@ -0,0 +1,18 @@ |
25 |
+-----BEGIN PGP SIGNED MESSAGE----- |
26 |
+Hash: SHA1 |
27 |
+ |
28 |
+DIST pygist-1.1.tar.gz 2874 RMD160 38e55ddfab5fb5a02c666bad6060209ae7ed170f SHA1 5f3db1e2d2f48e93c9b546e72374cb827e30d99e SHA256 4a9019c5ab4e6235a7c751952dde6d5678daee1762298bee9e7b0b21edf51051 |
29 |
+EBUILD pygist-1.1.ebuild 963 RMD160 89e9b969b5c65ebbd878bf221b5fff69194632cf SHA1 d510b11d0d7838127ee833163edbe20fbd9ea65a SHA256 aef71298676df358847edc45b0455d1636d859c7e7dea6d0a3c165ef76c1c64f |
30 |
+EBUILD pygist-9999.ebuild 957 RMD160 2b4e8340cb60d9fb485571c8e8a10519a045a101 SHA1 f49ddd86327ebe5813f914ca86c6b26922e4e1cc SHA256 878c461d3ee5c2feae8a0629e18caaa583e258d66f10615ddb2162e40d8d02e1 |
31 |
+MISC metadata.xml 407 RMD160 b5c5e017a16d46faae198e223f43dacd9743b1c7 SHA1 986a94fbfe4db5e914caaaebae01dea134d87191 SHA256 44da9d913d1250d294a2c35ae15c57e94461351be2ea74cd02e5d2320dd43d10 |
32 |
+-----BEGIN PGP SIGNATURE----- |
33 |
+Version: GnuPG v2.0.19 (GNU/Linux) |
34 |
+ |
35 |
+iQEcBAEBAgAGBQJPnlYnAAoJEAmJmMX429rek/IH/1PJjfiNUUcSvNxnGN/QoCXD |
36 |
++xUv/qiFn5PCIkHTxIrDORKJfE7pgAgNy0uO9v1RmSN7c+FEiXI5byO6CZr7w4Pu |
37 |
+66roTf9ZNKvH6QNuSYhk92sj38/CLw/htIMH3quEEbpazJwulcBMsaSYlGFtcHk7 |
38 |
+QoktWohlDeMr0fMtFf0OesE8DCS1gwvcER0a5PdRdzAmcXU64hpJb4qDbiEeDXsL |
39 |
+Xkcsb3VIjJPenQjbq/wTqSPeML5/P/pKuu8tkH6ICqH0LwdL9ezmgwGBgAX1cDPC |
40 |
+u13+LtLikwxw+5OuxbSgTAX0vGoqrlCGGr74EH8ZgxXrBErgn31Ijb/mtJnSb2E= |
41 |
+=dapO |
42 |
+-----END PGP SIGNATURE----- |
43 |
|
44 |
diff --git a/app-text/pygist/metadata.xml b/app-text/pygist/metadata.xml |
45 |
new file mode 100644 |
46 |
index 0000000..811e7d7 |
47 |
--- /dev/null |
48 |
+++ b/app-text/pygist/metadata.xml |
49 |
@@ -0,0 +1,12 @@ |
50 |
+<?xml version="1.0" encoding="UTF-8"?> |
51 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
52 |
+<pkgmetadata> |
53 |
+<maintainer> |
54 |
+ <email>maksbotan@g.o</email> |
55 |
+ <name>Maxim Koltsov</name> |
56 |
+</maintainer> |
57 |
+<use> |
58 |
+ <flag name="clipboard">Use <pkg>x11-misc/xclip</pkg> for clipboard interaction</flag> |
59 |
+ <flag name="git">Use <pkg>dev-vcs/git</pkg> to get Github auth data</flag> |
60 |
+</use> |
61 |
+</pkgmetadata> |
62 |
|
63 |
diff --git a/app-text/pygist/pygist-1.1.ebuild b/app-text/pygist/pygist-1.1.ebuild |
64 |
new file mode 100644 |
65 |
index 0000000..a47c4b8 |
66 |
--- /dev/null |
67 |
+++ b/app-text/pygist/pygist-1.1.ebuild |
68 |
@@ -0,0 +1,43 @@ |
69 |
+# Copyright 1999-2012 Gentoo Foundation |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+# $Header: $ |
72 |
+ |
73 |
+EAPI=4 |
74 |
+ |
75 |
+if [[ ${PV} == "9999" ]]; then |
76 |
+ EGIT_REPO_URI="git://github.com/mattikus/pygist.git" |
77 |
+ SRC_URI="" |
78 |
+ git_eclass="git-2" |
79 |
+else |
80 |
+ SRC_URI="http://github.com/mattikus/pygist/tarball/v${PV} -> ${P}.tar.gz" |
81 |
+ git_eclass="vcs-snapshot" |
82 |
+fi |
83 |
+ |
84 |
+PYTHON_DEPEND="3" |
85 |
+SUPPORT_PYTHON_ABIS="1" |
86 |
+RESTRICT_PYTHON_ABIS="2.*" |
87 |
+ |
88 |
+inherit ${git_eclass} python |
89 |
+ |
90 |
+DESCRIPTION="Python command line client for Github Gist" |
91 |
+HOMEPAGE="https://github.com/mattikus/pygist" |
92 |
+ |
93 |
+LICENSE="MIT" |
94 |
+SLOT="0" |
95 |
+KEYWORDS="~amd64" |
96 |
+IUSE="clipboard git" |
97 |
+ |
98 |
+DEPEND="" |
99 |
+RDEPEND=" |
100 |
+ clipboard? ( x11-misc/xclip ) |
101 |
+ git? ( dev-vcs/git )" |
102 |
+ |
103 |
+src_install() { |
104 |
+ exeinto /usr/bin |
105 |
+ installation() { |
106 |
+ newexe ${PN}.py ${PN}-${PYTHON_ABI} |
107 |
+ python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/${PN}-${PYTHON_ABI} |
108 |
+ } |
109 |
+ python_execute_function installation |
110 |
+ python_generate_wrapper_scripts "${ED}"/usr/bin/${PN} |
111 |
+} |
112 |
|
113 |
diff --git a/app-text/pygist/pygist-9999.ebuild b/app-text/pygist/pygist-9999.ebuild |
114 |
new file mode 100644 |
115 |
index 0000000..d3e666e |
116 |
--- /dev/null |
117 |
+++ b/app-text/pygist/pygist-9999.ebuild |
118 |
@@ -0,0 +1,43 @@ |
119 |
+# Copyright 1999-2012 Gentoo Foundation |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+# $Header: $ |
122 |
+ |
123 |
+EAPI=4 |
124 |
+ |
125 |
+if [[ ${PV} == "9999" ]]; then |
126 |
+ EGIT_REPO_URI="git://github.com/mattikus/pygist.git" |
127 |
+ SRC_URI="" |
128 |
+ git_eclass="git-2" |
129 |
+else |
130 |
+ SRC_URI="http://github.com/mattikus/pygist/tarball/v${PV} -> ${P}.tar.gz" |
131 |
+ git_eclass="vcs-snapshot" |
132 |
+fi |
133 |
+ |
134 |
+PYTHON_DEPEND="3" |
135 |
+SUPPORT_PYTHON_ABIS="1" |
136 |
+RESTRICT_PYTHON_ABIS="2.*" |
137 |
+ |
138 |
+inherit ${git_eclass} python |
139 |
+ |
140 |
+DESCRIPTION="Python command line client for Github Gist" |
141 |
+HOMEPAGE="https://github.com/mattikus/pygist" |
142 |
+ |
143 |
+LICENSE="MIT" |
144 |
+SLOT="0" |
145 |
+KEYWORDS="" |
146 |
+IUSE="clipboard git" |
147 |
+ |
148 |
+DEPEND="" |
149 |
+RDEPEND=" |
150 |
+ clipboard? ( x11-misc/xclip ) |
151 |
+ git? ( dev-vcs/git )" |
152 |
+ |
153 |
+src_install() { |
154 |
+ exeinto /usr/bin |
155 |
+ installation() { |
156 |
+ newexe ${PN}.py ${PN}-${PYTHON_ABI} |
157 |
+ python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/${PN}-${PYTHON_ABI} |
158 |
+ } |
159 |
+ python_execute_function installation |
160 |
+ python_generate_wrapper_scripts "${ED}"/usr/bin/${PN} |
161 |
+} |