* [gentoo-commits] repo/proj/prefix:master commit in: dev-lang/lua/
@ 2016-01-04 19:11 Fabian Groffen
0 siblings, 0 replies; 2+ messages in thread
From: Fabian Groffen @ 2016-01-04 19:11 UTC (permalink / raw
To: gentoo-commits
commit: 2a6686da4cb8391442ade9193f60940b0a63650e
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 4 19:10:49 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 4 19:10:49 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=2a6686da
dev-lang/lua: cleanup 5.2.1
Package-Manager: portage-2.2.20-prefix
dev-lang/lua/lua-5.2.1.ebuild | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
diff --git a/dev-lang/lua/lua-5.2.1.ebuild b/dev-lang/lua/lua-5.2.1.ebuild
index 58e4a25..3cafe75 100644
--- a/dev-lang/lua/lua-5.2.1.ebuild
+++ b/dev-lang/lua/lua-5.2.1.ebuild
@@ -39,14 +39,6 @@ src_prepare() {
fi
fi
- # fix libtool and ld usage on OSX
- if [[ ${CHOST} == *-darwin* ]] ; then
- sed -i \
- -e 's/libtool/glibtool/g' \
- -e 's/-Wl,-E//g' \
- Makefile src/Makefile
- fi
-
[ -d "${FILESDIR}/${PV}" ] && \
EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
@@ -74,17 +66,7 @@ src_compile() {
tc-export CC
# what to link to liblua
- liblibs="-lm"
- if [[ $CHOST == *-darwin* ]]; then
- mycflags="${mycflags} -DLUA_USE_MACOSX"
- elif [[ ${CHOST} == *-winnt* ]]; then
- : # nothing for now...
- elif [[ ${CHOST} == *-interix* ]]; then
- : # nothing here too...
- else # building for standard linux (and bsd too)
- mycflags="${mycflags} -DLUA_USE_LINUX"
- fi
- liblibs="${liblibs} $(dlopen_lib)"
+ liblibs="-lm $(dlopen_lib)"
# what to link to the executables
mylibs=
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/prefix:master commit in: dev-lang/lua/
@ 2016-01-04 19:32 Fabian Groffen
0 siblings, 0 replies; 2+ messages in thread
From: Fabian Groffen @ 2016-01-04 19:32 UTC (permalink / raw
To: gentoo-commits
commit: 6d6e76fcd87c3eef8a7a5ec7cc46d3a7ae2367e7
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 4 19:32:40 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 4 19:32:40 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=6d6e76fc
dev-lang/lua: bring 5.2.1 up to rev 1.4
Package-Manager: portage-2.2.20-prefix
dev-lang/lua/lua-5.2.1.ebuild | 37 +++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)
diff --git a/dev-lang/lua/lua-5.2.1.ebuild b/dev-lang/lua/lua-5.2.1.ebuild
index 3cafe75..3d01ece 100644
--- a/dev-lang/lua/lua-5.2.1.ebuild
+++ b/dev-lang/lua/lua-5.2.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.2.1.ebuild,v 1.1 2012/07/04 19:34:20 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/Attic/lua-5.2.1.ebuild,v 1.4 2014/07/04 21:21:21 mabi dead $
EAPI=4
@@ -23,28 +23,14 @@ PDEPEND="emacs? ( app-emacs/lua-mode )"
src_prepare() {
local PATCH_PV=$(get_version_component_range 1-2)
- if [[ ${CHOST} == *-winnt* ]]; then
- epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-no-libtool.patch
- else
- epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make.patch
-
- # Using dynamic linked lua is not recommended for performance
- # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
- # Mainly, this is of concern if your arch is poor with GPRs, like x86
- # Note that this only affects the interpreter binary (named lua), not the lua
- # compiler (built statically) nor the lua libraries (both shared and static
- # are installed)
- if use static ; then
- sed -i -e 's:\(-export-dynamic\):-static \1:' src/Makefile
- fi
- fi
+ epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make.patch
[ -d "${FILESDIR}/${PV}" ] && \
EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
sed -i \
- -e 's:\(LUA_ROOT\s*\).*:\1"/usr/":' \
- -e "s:\(LUA_CDIR\s*LUA_ROOT \"\)lib:\1$(get_libdir):" \
+ -e 's:\(define LUA_ROOT\s*\).*:\1"'${EPREFIX}'/usr/":' \
+ -e "s:\(define LUA_CDIR\s*LUA_ROOT \"\)lib:\1$(get_libdir):" \
src/luaconf.h \
|| die "failed patching luaconf.h"
@@ -57,6 +43,16 @@ src_prepare() {
sed -i -e '/#define LUA_USE_READLINE/d' src/luaconf.h
fi
+ # Using dynamic linked lua is not recommended for performance
+ # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
+ # Mainly, this is of concern if your arch is poor with GPRs, like x86
+ # Note that this only affects the interpreter binary (named lua), not the lua
+ # compiler (built statically) nor the lua libraries (both shared and static
+ # are installed)
+ if use static ; then
+ sed -i -e 's:\(-export-dynamic\):-static \1:' src/Makefile
+ fi
+
# upstream does not use libtool, but we do (see bug #336167)
cp "${FILESDIR}/configure.in" "${S}"
eautoreconf
@@ -66,7 +62,8 @@ src_compile() {
tc-export CC
# what to link to liblua
- liblibs="-lm $(dlopen_lib)"
+ liblibs="-lm"
+ liblibs="${liblibs} $(dlopen_lib)"
# what to link to the executables
mylibs=
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-04 19:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 19:11 [gentoo-commits] repo/proj/prefix:master commit in: dev-lang/lua/ Fabian Groffen
-- strict thread matches above, loose matches on Subject: below --
2016-01-04 19:32 Fabian Groffen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox