diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2011-08-08 19:57:35 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2011-08-08 19:57:35 +0000 |
commit | 356f24b7cf88692b41d5dfa671963a3db37d3572 (patch) | |
tree | 0bd019a2d2247f4af1bdbe4ab0f6b0f7a605e0ca /dev-python/markupsafe/markupsafe-0.15.ebuild | |
parent | Marked ~x64-macos (diff) | |
download | gentoo-2-356f24b7cf88692b41d5dfa671963a3db37d3572.tar.gz gentoo-2-356f24b7cf88692b41d5dfa671963a3db37d3572.tar.bz2 gentoo-2-356f24b7cf88692b41d5dfa671963a3db37d3572.zip |
Version bump markupsafe to 0.15.
(Portage version: 2.1.10.4/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/markupsafe/markupsafe-0.15.ebuild')
-rw-r--r-- | dev-python/markupsafe/markupsafe-0.15.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/markupsafe/markupsafe-0.15.ebuild b/dev-python/markupsafe/markupsafe-0.15.ebuild new file mode 100644 index 000000000000..497ecf127508 --- /dev/null +++ b/dev-python/markupsafe/markupsafe-0.15.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/markupsafe/markupsafe-0.15.ebuild,v 1.1 2011/08/08 19:57:35 djc Exp $ + +EAPI="3" +SUPPORT_PYTHON_ABIS="1" +DISTUTILS_SRC_TEST="setup.py" + +inherit distutils + +MY_PN="MarkupSafe" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Implements a XML/HTML/XHTML Markup safe string for Python" +HOMEPAGE="http://pypi.python.org/pypi/MarkupSafe" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" +IUSE="" + +DEPEND="dev-python/setuptools" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +set_global_options() { + if [[ "$(python_get_implementation)" != "Jython" ]]; then + DISTUTILS_GLOBAL_OPTIONS=("--with-speedups") + else + DISTUTILS_GLOBAL_OPTIONS=() + fi +} + +distutils_src_compile_pre_hook() { + set_global_options +} + +distutils_src_test_pre_hook() { + set_global_options +} + +distutils_src_install_pre_hook() { + set_global_options +} + +src_install() { + distutils_src_install + python_clean_installation_image +} |