aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-06-12 10:09:59 +0200
committerJustin Lecher <jlec@gentoo.org>2013-06-12 10:09:59 +0200
commit81bf3f80d09497fedeee6eb06f0aea9fbca87041 (patch)
treea5fd1cf8033c2922f291bb30c94b22c33af85f7a /dev-libs/asmjit/asmjit-1.0_beta4.ebuild
parentdev-java/jgraphx: Drop old; bump EAPI; fix license; QA -> layout (diff)
downloadsci-81bf3f80d09497fedeee6eb06f0aea9fbca87041.tar.gz
sci-81bf3f80d09497fedeee6eb06f0aea9fbca87041.tar.bz2
sci-81bf3f80d09497fedeee6eb06f0aea9fbca87041.zip
dev-libs/asmjit: Version BUmp, Fix license, bump EAPI
Package-Manager: portage-2.2.0_alpha179
Diffstat (limited to 'dev-libs/asmjit/asmjit-1.0_beta4.ebuild')
-rw-r--r--dev-libs/asmjit/asmjit-1.0_beta4.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-libs/asmjit/asmjit-1.0_beta4.ebuild b/dev-libs/asmjit/asmjit-1.0_beta4.ebuild
new file mode 100644
index 000000000..b3e1be973
--- /dev/null
+++ b/dev-libs/asmjit/asmjit-1.0_beta4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils versionator
+
+MY_PN=AsmJit
+MY_PV=$(replace_version_separator _ -)
+MY_PV=${MY_PV/_p/}
+MY_P=${MY_PN}-${MY_PV}
+
+DESCRIPTION="complete x86/x64 JIT-Assembler for C++ language"
+HOMEPAGE="http://code.google.com/p/asmjit/"
+SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.zip"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+
+#TODO: Debug is currenlty handled by CMAKE_BUILD_TYPE=debug, fix that
+
+src_prepare() {
+ sed -i -e "s:lib):lib\${LIB_SUFFIX}):" CMakeLists.txt || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DASMJIT_BUILD_LIBRARY=1
+ $(cmake-utils_use test ASMJIT_BUILD_TEST)
+ )
+ cmake-utils_src_configure
+}