Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FL-732: luasec, correct openssl dep

  • Loading branch information...
commit d5cf4afd2006e34df8e2ac57b7ea30bbfd58320f 1 parent 43ba71b
Oleg angryvincent authored
2  dev-lua/luasec/Manifest
View
@@ -0,0 +1,2 @@
+DIST luasec-0.4.1.tar.gz 28646 SHA256 9a9ea9f23044d41be29aea3de1bd795118a29e7311ea4c55fe1f0bc1c74a448b SHA512 bc934e952294ec45c9c8cfb70f68ebcd415b241d4af8dbf649016a7d14d7da5380d12cbf490560425235168f2c5abbbcd48192068a4e8e6bf523c92cfbf604d9 WHIRLPOOL 90ebad1e0f9fba88bbfe3832ef61cf1daab3cf3694bb0d4466772a24ad103f737737af93df77cc6aea04a98fb9ad0cdf0dcf6f2a09667643a8cabbd6030e7d49
+DIST luasec-0.4.1_p20130620.tar.gz 45297 SHA256 8bb3e8c5c3a4980f027b7ab41d5a08a2d44834e4230bcb6a2638ba4a7a3dc53f SHA512 914ae2adf7ce48c78d972ae5cbe2b52cbd42083cbe98063c36bd52af52b3bdec4cb389b8599928b2703436fc8eaf70de3212def0adaf936c7bbedf650f9c8c4e WHIRLPOOL 7a7c8e43ae846a8351c39a1dbfaab091a9d12c197538413137c0de807da6d20b894155fd9ec1f4bdefd7090a7b7cdb7ef195165870a6b5addd1ad66ad7208d11
17 dev-lua/luasec/files/luasec-0.4_Makefile.patch
View
@@ -0,0 +1,17 @@
+--- src/Makefile.old 2009-10-15 12:59:54.000000000 +0000
++++ src/Makefile 2009-10-26 14:29:26.000000000 +0000
+@@ -33,10 +33,10 @@
+ all:
+
+ install: $(CMOD) $(LMOD)
+- mkdir -p $(LUAPATH)/ssl
+- cp $(CMOD) $(LUACPATH)
+- cp $(LMOD) $(LUAPATH)
+- cp https.lua $(LUAPATH)/ssl
++ mkdir -p $(DESTDIR)$(LUAPATH)/ssl $(DESTDIR)$(LUACPATH)
++ cp $(CMOD) $(DESTDIR)$(LUACPATH)
++ cp $(LMOD) $(DESTDIR)$(LUAPATH)
++ cp https.lua $(DESTDIR)$(LUAPATH)/ssl
+
+ linux:
+ @$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)"
41 dev-lua/luasec/luasec-0.4.1.ebuild
View
@@ -0,0 +1,41 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit multilib toolchain-funcs flag-o-matic eutils
+
+DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication."
+HOMEPAGE="http://www.inf.puc-rio.br/~brunoos/luasec/"
+SRC_URI="http://www.inf.puc-rio.br/~brunoos/luasec/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="*"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1[deprecated]
+ dev-lua/luasocket
+ dev-libs/openssli[-bindist]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e "s#^LUAPATH=.*#LUAPATH=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/Makefile"
+ sed -i -e "s#^LUACPATH=.*#LUACPATH=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/Makefile"
+ epatch "${FILESDIR}/${PN}-0.4_Makefile.patch"
+}
+
+src_compile() {
+ append-flags -fPIC
+ emake \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC) -shared" \
+ linux \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+}
38 dev-lua/luasec/luasec-0.4.1_p20130620.ebuild
View
@@ -0,0 +1,38 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vcs-snapshot multilib toolchain-funcs
+
+DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication."
+HOMEPAGE="https://github.com/brunoos/luasec http://www.inf.puc-rio.br/~brunoos/luasec/"
+COMMIT="063e8a8a5c57858cdc845f8d51b994426edd37ab"
+SRC_URI="https://github.com/brunoos/luasec/tarball/${COMMIT} -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~*"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1[deprecated]
+ dev-lua/luasocket
+ dev-libs/openssl[-bindist]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e "s#^LUAPATH.*#LUAPATH=$(pkg-config --variable INSTALL_LMOD lua)#"\
+ -e "s#^LUACPATH.*#LUACPATH=$(pkg-config --variable INSTALL_CMOD lua)#" Makefile || die
+ sed -i -e "s/-O2//" src/Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ linux
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+}
Please sign in to comment.
Something went wrong with that request. Please try again.