From e8e690a7f10953ba1f121957f1ee8a178ac30059 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Wed, 19 Feb 2020 20:17:37 -0500 Subject: [PATCH] dev-lua/luasec: bump to 0.9 --- dev-lua/luasec/Manifest | 2 + dev-lua/luasec/files/luasec-0.9-bad-cflags.patch | 24 ++++++++++++ dev-lua/luasec/luasec-0.9.ebuild | 50 ++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 dev-lua/luasec/files/luasec-0.9-bad-cflags.patch create mode 100644 dev-lua/luasec/luasec-0.9.ebuild diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest index 6ea0e0f..6a2c9b3 100644 --- a/dev-lua/luasec/Manifest +++ b/dev-lua/luasec/Manifest @@ -1,3 +1,5 @@ AUX bad-cflags.patch 1691 BLAKE2B 3052bd5d4cb87a041aeee65b0b4ca1e29016f5e3543c476196c8b49dd212cfeb4b17f8f853fbc49b11537787841ede439bd40249570d630759195041c486bb32 SHA512 ccb3b5fd380d26637ea60b47831f96a0863dd255d7733386da0c263a2b54e20966f6f32e83dd507e91ea461c4d55aef19f4d8daf6ad2f7c6c7497b3ab4c129c9 +AUX luasec-0.9-bad-cflags.patch 724 BLAKE2B e6133b77770744d29272c6ec49f749c48336eecb772290380f1ef780c1b275a4d1ef58b29cfb784e68aad96e0330673ab6838e315aac79bf098e5cdca7c996a2 SHA512 298d49fc3fd0b3aa943cdd6ab0d15fc21fe3c68297a588fdc5fcb9189544a180555714971540ddbaac657d82c57a5c432b4b04d2a7b7dad6f5670780dac26a57 EBUILD luasec-0.7-r1.ebuild 1004 BLAKE2B a379ac8970830aba3a17a63823fe7c371bce15a7adc20a7f05befa8b597e68ec86615a7f0d7429a3516a06cb8e852d008d11a4b5d9412bdbc967613b1c4240fc SHA512 7087cabbaf5ac92c6058a5f6a684a59247f90c7e05b6c7cf927c8ef289a46a01e0e7a56b351b4f5164863e996e97bdb6b5c1203c8b3e2834cf85c2d13bd6e513 +EBUILD luasec-0.9.ebuild 1003 BLAKE2B 5cf430549730c487848be663c102843df9221b2ab5786114af155aad3213cb02a83490dd06c2ee4f1a28a4fdc6515ba06623f78044a0ace16a402f79cc49cd93 SHA512 066738d5f64e0227653c33a799d4dd3f1e9693fc84c234f9c4bb6268f87871cfb07a3ba2ddcb0a3f361e4ac2095500f83ed2789d1f46fd0eb1e3bb87d1560c69 MISC metadata.xml 245 BLAKE2B 4c24a2800e24e0cf46964eaa758418af78ec860cdac0bebd67753a5edc27c79c2687d76f75e68fe903fc645dfb12d7201c8548f21be2995cc78dc49702fe88d7 SHA512 b57a329570a21935fce6a7f09d98376e23c9a3a34d514ef55a6151fe490d2841441ef666626d364149ea5ef129eae39cab78913a7bc81c16a5b5aefb7ae37532 diff --git a/dev-lua/luasec/files/luasec-0.9-bad-cflags.patch b/dev-lua/luasec/files/luasec-0.9-bad-cflags.patch new file mode 100644 index 0000000..d264584 --- /dev/null +++ b/dev-lua/luasec/files/luasec-0.9-bad-cflags.patch @@ -0,0 +1,24 @@ +diff --git a/src/Makefile b/src/Makefile +index 9b06a03..4c60781 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -16,8 +16,8 @@ WARN=-Wall -pedantic + BSD_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS) + BSD_LDFLAGS=-O -fPIC -shared $(LIBDIR) + +-LNX_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS) +-LNX_LDFLAGS=-O -fPIC -shared $(LIBDIR) ++LNX_CFLAGS=-fPIC $(WARN) $(INCDIR) $(DEFS) ++LNX_LDFLAGS=-fPIC -shared $(LIBDIR) + + MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)' + MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS) +@@ -25,7 +25,7 @@ MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR) + + INSTALL = install + CC ?= cc +-CCLD ?= $(MYENV) $(CC) ++CCLD ?= $(CC) + CFLAGS += $(MYCFLAGS) + LDFLAGS += $(MYLDFLAGS) + diff --git a/dev-lua/luasec/luasec-0.9.ebuild b/dev-lua/luasec/luasec-0.9.ebuild new file mode 100644 index 0000000..54655e4 --- /dev/null +++ b/dev-lua/luasec/luasec-0.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5_1 lua5_2 lua5_3 lua5_4 luajit2 ) +inherit lua-alt git-r3 + +DESCRIPTION="LuaSec is a binding for OpenSSL library to provide TLS/SSL communication." +HOMEPAGE="https://github.com/brunoos/luasec/wiki" +EGIT_REPO_URI="https://github.com/brunoos/luasec" +if [[ ${PV} == 9999 ]] +then + : +else + EGIT_COMMIT="v${PV}" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="libressl" + +RDEPEND=" + ${LUA_DEPS} + dev-lua/luasocket + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) +" +DEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}/${P}-bad-cflags.patch" +) + +src_compile() { + this_compile() { + emake LD='$(CC)' LUAPATH="${INSTALL_LMOD}" LUACPATH="${INSTALL_CMOD}" linux + } + lua_foreach_impl this_compile +} + +src_install() { + this_install() { + emake DESTDIR="${D}" LUAPATH="${INSTALL_LMOD}" LUACPATH="${INSTALL_CMOD}" install + } + lua_foreach_impl this_install +} -- 2.11.4.GIT