diff options
-rw-r--r-- | dev-libs/asmjit/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/asmjit/Manifest | 5 | ||||
-rw-r--r-- | dev-libs/asmjit/asmjit-1.0_beta_p2.ebuild | 43 | ||||
-rw-r--r-- | dev-libs/asmjit/files/asmjit-test.patch | 20 | ||||
-rw-r--r-- | dev-libs/asmjit/metadata.xml | 21 |
5 files changed, 99 insertions, 0 deletions
diff --git a/dev-libs/asmjit/ChangeLog b/dev-libs/asmjit/ChangeLog new file mode 100644 index 000000000..2713d1762 --- /dev/null +++ b/dev-libs/asmjit/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/asmjit +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*asmjit-1.0_beta_p2 (12 Nov 2010) + + 12 Nov 2010; Kacper Kowalik <xarthisius@gentoo.org> + +asmjit-1.0_beta_p2.ebuild, +files/asmjit-test.patch, +metadata.xml: + Initial import wrt bug 345183 + diff --git a/dev-libs/asmjit/Manifest b/dev-libs/asmjit/Manifest new file mode 100644 index 000000000..f3f97c26c --- /dev/null +++ b/dev-libs/asmjit/Manifest @@ -0,0 +1,5 @@ +AUX asmjit-test.patch 508 RMD160 8365d64b942924ae7e47823b5e558f879ae32e5b SHA1 ae24356f0ca3965d4f661851eb12444edefbbe60 SHA256 bacebdc8d7236abfd9e0d114718991f5ea9f47748f42ea8709a826f858538122 +DIST AsmJit-1.0-beta2.zip 292614 RMD160 bf67c422249af396d4e94f101660671fd1f216de SHA1 5d5963e2ebced73cd0e33f4a472b12c48567b573 SHA256 cc9f1b1935c4d0d3bf5305fc38d39c0d84494205c50a276ac9e529ab81b5cf07 +EBUILD asmjit-1.0_beta_p2.ebuild 898 RMD160 48089f5ac212f682231e1ecf133ace52511fdefa SHA1 cee93d46e4e5f279d84da37be9394fd453321035 SHA256 6b858909acec2fa43c3ba566567b27a342dbcfce97967f4b206cf7fc6167fc43 +MISC ChangeLog 309 RMD160 a9a765ae94ed6fb10a72bcf8dd64e7e4b6725524 SHA1 dba16335824d02c78c25b20ae82c3b8af306c529 SHA256 6e37bc0d3655ca4b9db6c94b7331db1085116963a1b2ae519c81376d6031d443 +MISC metadata.xml 904 RMD160 3d3bde52e4c6cf826ad23267ef8a7c96484dd9b1 SHA1 810c27fd8bded547e087706b1fc316b7ca6dcdb5 SHA256 d40eb0222aaea2c9091040710fab0865b57bfe8f145dc01432866f2350529c84 diff --git a/dev-libs/asmjit/asmjit-1.0_beta_p2.ebuild b/dev-libs/asmjit/asmjit-1.0_beta_p2.ebuild new file mode 100644 index 000000000..fdd01fcc1 --- /dev/null +++ b/dev-libs/asmjit/asmjit-1.0_beta_p2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +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" + +LICENSE="as-is" +SLOT="0" +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 +} diff --git a/dev-libs/asmjit/files/asmjit-test.patch b/dev-libs/asmjit/files/asmjit-test.patch new file mode 100644 index 000000000..3736ee71a --- /dev/null +++ b/dev-libs/asmjit/files/asmjit-test.patch @@ -0,0 +1,20 @@ +http://code.google.com/p/asmjit/issues/detail?id=22 + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -78,6 +78,7 @@ + + # Build AsmJit test executables? + If(ASMJIT_BUILD_TEST) ++ Enable_Testing() + Set(ASMJIT_TEST_FILES + testcorecpu + testcoresize +@@ -105,6 +106,7 @@ + ForEach(file ${ASMJIT_TEST_FILES}) + Add_Executable(${file} Test/${file}.cpp) + Target_Link_Libraries(${file} AsmJit) ++ Add_Test(${file} ${EXECUTABLE_OUTPUT_PATH}/${file} ${file}) + EndForEach(file) + EndIf(ASMJIT_BUILD_TEST) + diff --git a/dev-libs/asmjit/metadata.xml b/dev-libs/asmjit/metadata.xml new file mode 100644 index 000000000..a33aea347 --- /dev/null +++ b/dev-libs/asmjit/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>xarthisius@gentoo.org</email> + <name>Kacper Kowalik</name> + </maintainer> + <longdescription lang="en"> + AsmJit is complete x86/x64 JIT-Assembler for C++ language. It supports + 32/64-bit x86 processors including all usable extensions (FPU, MMX, + 3dNow, SSE, SSE2, SSE3 and SSE4) through type-safe API that mimics Intel + assembler syntax and eliminates nearly all common mistakes that can be + done by developers. + + AsmJit contains also high-level code generation classes that can be used + as a portable way to create JIT code that should run on all supported + architectures. High-level classes can handle various function + calling-conventions, register allocation and 32/64-bit mode differences. + </longdescription> +</pkgmetadata> |