# ChangeLog for dev-python/m2crypto
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/ChangeLog,v 1.18 2006/10/10 20:40:48 kloeri Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/ChangeLog,v 1.19 2007/01/06 11:16:02 dev-zero Exp $
+
+*m2crypto-0.17 (06 Jan 2007)
+
+ 06 Jan 2007; Tiziano Müller <dev-zero@gentoo.org> -m2crypto-0.12.ebuild,
+ -m2crypto-0.13.ebuild, -m2crypto-0.13.1.ebuild, +m2crypto-0.17.ebuild:
+ Version bump. Dropped old versions (bug #95559).
*m2crypto-0.16 (10 Oct 2006)
--- /dev/null
+MD5 c67b45c752fd5e8115cd6b14831c5a38 m2crypto-0.17.tar.gz 376219
+RMD160 8ee4f92d9efd33341ea4021a35b0ba38de6aa043 m2crypto-0.17.tar.gz 376219
+SHA256 9a2b75e4b92ae0cfcb0da657d40d3eec0a3a7b705522f264dc838764d39a5716 m2crypto-0.17.tar.gz 376219
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/m2crypto/m2crypto-0.17.ebuild,v 1.1 2007/01/06 11:16:02 dev-zero Exp $
+
+inherit distutils portability eutils multilib
+
+MY_P="${PN}-${PV%.*}"
+
+DESCRIPTION="A python wrapper for the OpenSSL crypto library"
+HOMEPAGE="http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto"
+SRC_URI="http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-libs/openssl-0.9.8"
+DEPEND="${RDEPEND}
+ >=dev-lang/swig-1.3.25
+ doc? ( dev-python/epydoc )"
+
+PYTHON_MODNAME="M2Crypto"
+
+src_install() {
+ DOCS="CHANGES INSTALL"
+ distutils_src_install
+
+ if use doc; then
+ cd "${S}/demo"
+ treecopy . "${D}/usr/share/doc/${PF}/example"
+
+ einfo "Generating API docs as requested..."
+ cd "${S}/doc"
+ distutils_python_version
+ export PYTHONPATH="${PYTHONPATH}:${D}/usr/$(get_libdir)/python${PYVER}/site-packages"
+ einfo "${PYTHONPATH}"
+ epydoc --html --output=api --name=M2Crypto M2Crypto
+ fi
+ dohtml -r *
+}
+
+src_test() {
+ python setup.py test || die "test failed"
+}