diff options
author | Paul Healy <lmiphay@gmail.com> | 2017-09-03 21:00:22 +0100 |
---|---|---|
committer | Paul Healy <lmiphay@gmail.com> | 2017-09-03 21:00:22 +0100 |
commit | d5fb6c5a64ef5761eb23b2ff0501a90a965c18f8 (patch) | |
tree | cfba89f162624467efaa992b83e1a1b576d0d672 | |
parent | revbump opengrok (diff) | |
download | lmiphay-d5fb6c5a64ef5761eb23b2ff0501a90a965c18f8.tar.gz lmiphay-d5fb6c5a64ef5761eb23b2ff0501a90a965c18f8.tar.bz2 lmiphay-d5fb6c5a64ef5761eb23b2ff0501a90a965c18f8.zip |
add initial ebuild for tinydtls - known problems
1. python version is hardcoded
2. chdir's into the cython build directory
-rw-r--r-- | dev-python/tinydtls/Manifest | 1 | ||||
-rw-r--r-- | dev-python/tinydtls/tinydtls-9999.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/tinydtls/Manifest b/dev-python/tinydtls/Manifest new file mode 100644 index 0000000..b794296 --- /dev/null +++ b/dev-python/tinydtls/Manifest @@ -0,0 +1 @@ +EBUILD tinydtls-9999.ebuild 966 SHA256 e60b8e5bab64b87a8908fb84f3008db81bcb64e8a0183f3215f538d9f6828554 SHA512 9965ada562f562b8ea2878571e6d45f37faa22859788e613006a1880a5b0bf705f8ff686b931c7e17b12e5f1728959e2ba7b22f06e8f3a30a5ec46d22d58c971 WHIRLPOOL c4877737aa4fad726075b7356f7b3d49fce2d2ceb101224641428b41ad7c51ceb332778c1a3f5e07f58e3671fd20e60a3489ed74dacc58c5079973be9352cf4c diff --git a/dev-python/tinydtls/tinydtls-9999.ebuild b/dev-python/tinydtls/tinydtls-9999.ebuild new file mode 100644 index 0000000..8bdaf73 --- /dev/null +++ b/dev-python/tinydtls/tinydtls-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=(python3_4) + +inherit eutils autotools distutils-r1 flag-o-matic git-r3 + +DESCRIPTION="tinydtls for Cython" +HOMEPAGE="https://git.fslab.de/jkonra2m/tinydtls" +EGIT_REPO_URI="https://git.fslab.de/jkonra2m/tinydtls.git" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + ${PYTHON_DEPS} +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + ${RDEPEND} +" + +DOCS="README" + +# install recipe taken from: +# https://github.com/ggravlingen/pytradfri/blob/master/script/install-aiocoap.sh + +CYTHONSRC="${WORKDIR}/${P}/cython" + +python_prepare() { + eautoreconf +} + +python_configure() { + econf \ + --with-ecc \ + --without-debug +} + +python_compile() { + append-flags "-I${WORKDIR}/${P}-python3_4 -I${WORKDIR}/${P}-python3_4/sha2" + (cd "${CYTHONSRC}" && esetup.py build) +} + +python_install() { + (cd "${CYTHONSRC}" && esetup.py install) +} |