From 5dba2eec966b0a79a9b66324329ed749f0abbe99 Mon Sep 17 00:00:00 2001 From: "Kacper Kowalik (Xarthisius)" Date: Thu, 4 Jul 2013 17:14:02 +0200 Subject: [dev-python/llvmpy] initial import --- dev-python/llvmpy/Manifest | 3 +++ dev-python/llvmpy/files/llvmpy-0.11.2-rpath.patch | 10 +++++++ dev-python/llvmpy/llvmpy-0.11.2.ebuild | 32 +++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 dev-python/llvmpy/Manifest create mode 100644 dev-python/llvmpy/files/llvmpy-0.11.2-rpath.patch create mode 100644 dev-python/llvmpy/llvmpy-0.11.2.ebuild diff --git a/dev-python/llvmpy/Manifest b/dev-python/llvmpy/Manifest new file mode 100644 index 0000000..5db877b --- /dev/null +++ b/dev-python/llvmpy/Manifest @@ -0,0 +1,3 @@ +AUX llvmpy-0.11.2-rpath.patch 268 SHA256 3a414eab4373e87f25268330edc607ae564f4a6cc1513b951962bcbfaa73463e SHA512 34cb8e73268bfbfbd987dad61fe49c5833f7cbd3085c3f94e351315fac668d20414134d6e59fb78850dafee0881b06d7db2e7b8d1674b2f5f4bf74c1f6ba271d WHIRLPOOL bd40180b816ef083074d4d601f64eb5992436842047ebb4c57b81cf4bead47d55128632655f115058ac0c2ad0916bb757733b0a61550ea85fbbc58ebf20ee70c +DIST llvmpy-0.11.2.tar.gz 530100 SHA256 bfd05e1eab9059591e4b24a1a556fc97b0152c5220ad4c02dc27da0825a5d014 SHA512 4c06f1d5db09e7a88e988192b547721af46e33e51369b589e9f9dcba01867fcaa04793545c8748ee242bb86a6420d2caf88416078c241a39ece66f9126c5c450 WHIRLPOOL 7452cfeebaab5f7e6df98ab03077037d4f82c036fb6fe4842918cb77afbd2cf8d0a11909e02410673546d7c485573e736d1f3cb0f25a74b8cb402edbe9bdaa1b +EBUILD llvmpy-0.11.2.ebuild 686 SHA256 a1c771509b22b1c0a29520b97b655f67286c518865d960ee12a47d5adb42051f SHA512 bc2fe5acd6ef4d7dc0e59603cd0ca5e1fafa1953dfcb8cdb00333471c804f4b72d414b61739d0112733e886c28d7de39cbfc768afb1f8a97d6dc6cab459cd417 WHIRLPOOL 765a19b3e8fb0d208d0eb835da8a694cf5f85ca7434a8600d046dad5267427441749b4a07e5a38f807679b9b37a10e02f3f1c7bbc64f5dda04ebe920ecb13dfa diff --git a/dev-python/llvmpy/files/llvmpy-0.11.2-rpath.patch b/dev-python/llvmpy/files/llvmpy-0.11.2-rpath.patch new file mode 100644 index 0000000..fffab3c --- /dev/null +++ b/dev-python/llvmpy/files/llvmpy-0.11.2-rpath.patch @@ -0,0 +1,10 @@ +--- a/setup.py ++++ b/setup.py +@@ -137,6 +137,7 @@ check_call([sys.executable, 'llvmpy/build.py']) + + # generate shared objects + extra_link_args = ldflags.split() ++extra_link_args.append('-Wl,--rpath,%s' % libdir) + kwds = dict( + ext_modules = [ + Extension( diff --git a/dev-python/llvmpy/llvmpy-0.11.2.ebuild b/dev-python/llvmpy/llvmpy-0.11.2.ebuild new file mode 100644 index 0000000..2bd8985 --- /dev/null +++ b/dev-python/llvmpy/llvmpy-0.11.2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_{6,7} python3_{1,2,3} ) + +inherit eutils distutils-r1 + +DESCRIPTION="Python wrapper around the llvm C++ library" +HOMEPAGE="http://llvmpy.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="sys-devel/llvm[multitarget]" +RDEPEND="${DEPEND}" + +python_prepare() { + epatch "${FILESDIR}"/${P}-rpath.patch + distutils-r1-python_prepare +} + +python_test() { + pushd "${BUILD_DIR}"/lib* > /dev/null + ${PYTHON} -c "import llvm; llvm.test()" + popd > /dev/null +} -- cgit v1.2.3-65-gdbad