summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-05-08 23:29:36 +0000
committerTim Harder <radhermit@gentoo.org>2013-05-08 23:29:36 +0000
commitc140a999931676a5218cdec38dd7f1e5ce93821d (patch)
tree2ce814a9cd151146ae590b98befeefd7303cf3f1 /dev-lua
parentDie in pkg_pretend if gcc-4.8 is selected. (diff)
downloadgentoo-2-c140a999931676a5218cdec38dd7f1e5ce93821d.tar.gz
gentoo-2-c140a999931676a5218cdec38dd7f1e5ce93821d.tar.bz2
gentoo-2-c140a999931676a5218cdec38dd7f1e5ce93821d.zip
Initial import, ebuild by me (bug #412015 by hasufell).
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/luacrypto/ChangeLog10
-rw-r--r--dev-lua/luacrypto/Manifest5
-rw-r--r--dev-lua/luacrypto/files/luacrypto-0.3.2-test.patch11
-rw-r--r--dev-lua/luacrypto/luacrypto-0.3.2.ebuild44
-rw-r--r--dev-lua/luacrypto/metadata.xml8
5 files changed, 78 insertions, 0 deletions
diff --git a/dev-lua/luacrypto/ChangeLog b/dev-lua/luacrypto/ChangeLog
new file mode 100644
index 000000000000..1228149527a2
--- /dev/null
+++ b/dev-lua/luacrypto/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-lua/luacrypto
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luacrypto/ChangeLog,v 1.1 2013/05/08 23:29:36 radhermit Exp $
+
+*luacrypto-0.3.2 (08 May 2013)
+
+ 08 May 2013; Tim Harder <radhermit@gentoo.org> +luacrypto-0.3.2.ebuild,
+ +files/luacrypto-0.3.2-test.patch, +metadata.xml:
+ Initial import, ebuild by me (bug #412015 by hasufell).
+
diff --git a/dev-lua/luacrypto/Manifest b/dev-lua/luacrypto/Manifest
new file mode 100644
index 000000000000..6c667e13a864
--- /dev/null
+++ b/dev-lua/luacrypto/Manifest
@@ -0,0 +1,5 @@
+AUX luacrypto-0.3.2-test.patch 262 SHA256 49b889bb0918f14f044dae0f0ec192c7597d0b5df484c09b561a492ab91320da SHA512 ac4e3fdb9e442181700ef32a8e29666e5d255afb61ab78326ed1d18ae43a8998200ff58d1599223bc820d5b9f5e7394249efd5f221c3b184fa935a108a9997f9 WHIRLPOOL 2ff4d7acc88c573fe0fb7a0dd50ab5532b76012d6a0266c905d53c602cb1793a9f2c42f0d2320dd38521eb4c04b5f5b2d29f54950d547a1f1b6e0b26ceb2c77d
+DIST luacrypto-0.3.2.tar.gz 374363 SHA256 63c5d7e2539779039114335b9a8f149d63382c4db298d69e70488a0108143bb4 SHA512 4cb20d2cc348a11f140210dffb803629034c72cc7232590f4488f559d5c7233e0c41e56fcd0863959ac0b07e64c9aa79ea573e4126fdc11bc3f1b3b49d13343e WHIRLPOOL afb2ab562f4d983396debc68b48bbe295f90d9dd38fad5b9a474d7391783511ab4358e077ca3c383ba365766bc197685c5787686385c80a38425b89870542924
+EBUILD luacrypto-0.3.2.ebuild 952 SHA256 c59b66e3c082af89e2e6eb618b5edfeb6fd95ed833b366f10fa0b066fa7a80a8 SHA512 78025c6b07cbd9a91b991b132ace09219fd50401108fb4efa03cce7efb1a51ef5f4821054bcc832ba78e3d070753769ca9295b73e50ea1975defaf847c0c703f WHIRLPOOL 2c95e776f84ed60f8bc0ee0f1b4fd920be4e2b276115273ae40a2f3f92c1ef3621187398b85ab5f476505e5c81ab7bbb69d389a504dbe9b89ec35f07e70fa78c
+MISC ChangeLog 335 SHA256 586c4a9557ddf3ecca06266f43347ab6dfbb74dd6a4f31e7106b3546ddafa474 SHA512 d9dd45654d2824b14c03efbdc4f81db78026b6b93c947dd144897d70c00c79d7305513d7bf06cab85fae4f1a1d6ea304b9d0491111fc2f083a417492e2c68406 WHIRLPOOL 3edb81c2a89a9603f7fcafe1c68afceebe14e34ef337395fd75fc9d90d11e9adf9382182f1746cbffaac7c4b2935ef1554b6dca3c6bb4e3dc48d84bf08e0c4b1
+MISC metadata.xml 236 SHA256 5285fd5ca6bc85e0392ff64ec8e54d0018ebd761d3977869c00c93dee45ea09d SHA512 a1abf9a60fb1a2078d0475df655f8abd4b2f877f8d232028232fafca2eb7e7ae6ec2c835c4fe0ef27b3b5655d746d1fe53bbcb353703819448ddec84acdd4215 WHIRLPOOL fdbf5fcd34aa17330575f013aef4c87a8b039b62b6de3337a4004a6a0217238ceca43fa15425c30ddb7a5a632de7eb138ed541dfb161614cba817527297781e2
diff --git a/dev-lua/luacrypto/files/luacrypto-0.3.2-test.patch b/dev-lua/luacrypto/files/luacrypto-0.3.2-test.patch
new file mode 100644
index 000000000000..ae2315aeadd8
--- /dev/null
+++ b/dev-lua/luacrypto/files/luacrypto-0.3.2-test.patch
@@ -0,0 +1,11 @@
+--- luacrypto-0.3.2/tests/test.lua
++++ luacrypto-0.3.2/tests/test.lua
+@@ -20,7 +20,7 @@
+ assert(s == _G[t .. "_KNOWN"])
+ end
+
+-F = arg[1] or 'message'
++F = 'message'
+ for i, t in ipairs({"sha1", "md5", "sha1", "hmac"}) do
+ print("testing " .. t)
+ local d
diff --git a/dev-lua/luacrypto/luacrypto-0.3.2.ebuild b/dev-lua/luacrypto/luacrypto-0.3.2.ebuild
new file mode 100644
index 000000000000..4a084f783345
--- /dev/null
+++ b/dev-lua/luacrypto/luacrypto-0.3.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luacrypto/luacrypto-0.3.2.ebuild,v 1.1 2013/05/08 23:29:36 radhermit Exp $
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Lua frontend to OpenSSL"
+HOMEPAGE="http://mkottman.github.io/luacrypto/ https://github.com/mkottman/luacrypto/"
+SRC_URI="https://github.com/mkottman/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-lang/lua-5.1
+ dev-libs/openssl:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
+DOCS=( ChangeLog README )
+
+src_configure() {
+ local mycmakeargs=(
+ "-DSKIP_INSTALL_DATA=ON"
+ "-DINSTALL_LMOD=$(pkg-config --variable INSTALL_LMOD lua)"
+ "-DINSTALL_CMOD=$(pkg-config --variable INSTALL_CMOD lua)"
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cp tests/message "${BUILD_DIR}" || die
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dohtml doc/us/*
+}
diff --git a/dev-lua/luacrypto/metadata.xml b/dev-lua/luacrypto/metadata.xml
new file mode 100644
index 000000000000..efa5eb0078f3
--- /dev/null
+++ b/dev-lua/luacrypto/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>