From: | "Benedikt Boehm (hollow)" <hollow@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-servers/uwsgi: metadata.xml ChangeLog uwsgi-0.9.5.ebuild |
Date: | Mon, 03 May 2010 19:24:32 |
Message-Id: | 20100503192428.830E12C37B@corvid.gentoo.org |
1 | hollow 10/05/03 19:24:28 |
2 | |
3 | Added: metadata.xml ChangeLog uwsgi-0.9.5.ebuild |
4 | Log: |
5 | initial ebuild. thanks to Arfrever Frehtes Taifersar Arahesis for sane python ABI support. closes #314931 |
6 | (Portage version: 2.2_rc67/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 www-servers/uwsgi/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/uwsgi/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/uwsgi/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>no-herd</herd> |
20 | <maintainer> |
21 | <email>hollow@g.o</email> |
22 | <name>Benedikt Böhm</name> |
23 | </maintainer> |
24 | </pkgmetadata> |
25 | |
26 | |
27 | |
28 | 1.1 www-servers/uwsgi/ChangeLog |
29 | |
30 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/uwsgi/ChangeLog?rev=1.1&view=markup |
31 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/uwsgi/ChangeLog?rev=1.1&content-type=text/plain |
32 | |
33 | Index: ChangeLog |
34 | =================================================================== |
35 | # ChangeLog for www-servers/uwsgi |
36 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
37 | # $Header: /var/cvsroot/gentoo-x86/www-servers/uwsgi/ChangeLog,v 1.1 2010/05/03 19:24:28 hollow Exp $ |
38 | |
39 | *uwsgi-0.9.5 (03 May 2010) |
40 | |
41 | 03 May 2010; Benedikt Böhm <hollow@g.o> +uwsgi-0.9.5.ebuild, |
42 | +files/uwsgi-0.9.5-fix_uwsgiconfig.py_indentation.patch, |
43 | +files/uwsgi-0.9.5-respect_flags.patch, +metadata.xml: |
44 | initial ebuild. thanks to Arfrever Frehtes Taifersar Arahesis for sane |
45 | python ABI support. closes #314931 |
46 | |
47 | |
48 | |
49 | |
50 | 1.1 www-servers/uwsgi/uwsgi-0.9.5.ebuild |
51 | |
52 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/uwsgi/uwsgi-0.9.5.ebuild?rev=1.1&view=markup |
53 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/uwsgi/uwsgi-0.9.5.ebuild?rev=1.1&content-type=text/plain |
54 | |
55 | Index: uwsgi-0.9.5.ebuild |
56 | =================================================================== |
57 | # Copyright 1999-2010 Gentoo Foundation |
58 | # Distributed under the terms of the GNU General Public License v2 |
59 | # $Header: /var/cvsroot/gentoo-x86/www-servers/uwsgi/uwsgi-0.9.5.ebuild,v 1.1 2010/05/03 19:24:28 hollow Exp $ |
60 | |
61 | EAPI="3" |
62 | PYTHON_DEPEND="*" |
63 | SUPPORT_PYTHON_ABIS="1" |
64 | |
65 | inherit eutils python toolchain-funcs |
66 | |
67 | DESCRIPTION="uWSGI server for Python web applications" |
68 | HOMEPAGE="http://projects.unbit.it/uwsgi/" |
69 | SRC_URI="http://projects.unbit.it/downloads/${P}.tar.gz" |
70 | |
71 | LICENSE="GPL-2" |
72 | SLOT="0" |
73 | KEYWORDS="~amd64 ~x86" |
74 | IUSE="" |
75 | |
76 | RDEPEND="dev-libs/libxml2" |
77 | DEPEND="${RDEPEND}" |
78 | |
79 | src_prepare() { |
80 | # Python 3 requires constant indentation. |
81 | epatch "${FILESDIR}/${PN}-0.9.5-fix_uwsgiconfig.py_indentation.patch" |
82 | |
83 | # Respect CC, CFLAGS and LDFLAGS. |
84 | epatch "${FILESDIR}/${PN}-0.9.5-respect_flags.patch" |
85 | |
86 | python_copy_sources |
87 | } |
88 | |
89 | src_compile() { |
90 | python_src_compile CC="$(tc-getCC)" |
91 | } |
92 | |
93 | src_install() { |
94 | installation() { |
95 | newbin uwsgi uwsgi-${PYTHON_ABI} |
96 | } |
97 | python_execute_function -s installation |
98 | |
99 | python_generate_wrapper_scripts "${ED}usr/bin/uwsgi" |
100 | } |