Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/lua/
Date: Tue, 29 Dec 2020 20:00:34
Message-Id: 1609271994.52cefbb87f2cb424a1697a514f1df1e6d4cba87d.williamh@gentoo
1 commit: 52cefbb87f2cb424a1697a514f1df1e6d4cba87d
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 19:59:54 2020 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 19:59:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52cefbb8
7
8 dev-lang/lua: remove 5.1.5-r5 (this version was broken)
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-lang/lua/lua-5.1.5-r5.ebuild | 113 ---------------------------------------
13 1 file changed, 113 deletions(-)
14
15 diff --git a/dev-lang/lua/lua-5.1.5-r5.ebuild b/dev-lang/lua/lua-5.1.5-r5.ebuild
16 deleted file mode 100644
17 index 0d03622ce72..00000000000
18 --- a/dev-lang/lua/lua-5.1.5-r5.ebuild
19 +++ /dev/null
20 @@ -1,113 +0,0 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -inherit eutils multilib multilib-minimal portability toolchain-funcs versionator flag-o-matic
27 -
28 -DESCRIPTION="A powerful light-weight programming language designed for extending applications"
29 -HOMEPAGE="http://www.lua.org/"
30 -SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
31 -
32 -LICENSE="MIT"
33 -SLOT="0"
34 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
35 -IUSE="+deprecated emacs readline doc"
36 -
37 -RDEPEND="readline? ( >=sys-libs/readline-6.2_p5-r1:0=[${MULTILIB_USEDEP}] )"
38 -DEPEND="${RDEPEND}"
39 -PDEPEND="emacs? ( app-emacs/lua-mode )"
40 -
41 -MULTILIB_WRAPPED_HEADERS=(
42 - /usr/include/luaconf.h
43 -)
44 -
45 -src_prepare() {
46 - # Correct documentation link
47 - sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html || die
48 -
49 - # Using dynamic linked lua is not recommended for performance
50 - # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
51 - # Mainly, this is of concern if your arch is poor with GPRs, like x86.
52 -
53 - # Therefore both lua interpreter and compiler are statically linked to
54 - # the core library modules.
55 -
56 - # Note: This patch only adds the required targets to the makefiles
57 - # instead of relying upon libtool, which fails cross-compiling. Both
58 - # shared and static versions of lua libraries are installed.
59 - epatch "${FILESDIR}"/${P}-gentoo-build.patch
60 -
61 - # Rename deprecated functions in scripts
62 - use deprecated || epatch "${FILESDIR}"/${P}-disable-deprecated.patch
63 -
64 - # Remove readline dependency if not requested
65 - use readline || epatch "${FILESDIR}"/${P}-disable-readline.patch
66 -
67 - epatch "${FILESDIR}/${P}-fix_vararg_calls.patch"
68 -
69 - # Required by EAPI >= 6
70 - eapply_user
71 -
72 - # Add documentation URIs if needed
73 - use doc && \
74 - HTML_DOCS=( doc/*.{html,css,png,gif} ) && \
75 - DOCS="HISTORY README"
76 -
77 - # custom Makefiles
78 - multilib_copy_sources
79 -}
80 -
81 -multilib_src_configure() {
82 - # Fix directories according to FHS/Gentoo policy paths and ABI
83 - sed -i \
84 - -e 's:/usr/local:'${EPREFIX}'/usr:' \
85 - -e 's:/man/:/share/man/:' \
86 - -e "s:\([/\"]\)\<lib\>:\1$(get_libdir):g" \
87 - Makefile etc/lua.pc src/luaconf.h doc/manual.html || die
88 -}
89 -
90 -multilib_src_compile() {
91 - append-cflags "-DLUA_USE_LINUX"
92 - append-ldflags "-Wl,-E"
93 - tc-export AR CC CPP LD RANLIB
94 - emake \
95 - MYLDFLAGS="${LDFLAGS}" \
96 - MYCFLAGS="${CFLAGS}" \
97 - linux
98 -}
99 -
100 -multilib_src_install() {
101 - emake -j1 install INSTALL_TOP="${ED}/usr"
102 -
103 - insinto usr/$(get_libdir)/pkgconfig
104 - doins etc/lua.pc
105 -}
106 -
107 -multilib_src_install_all() {
108 - einstalldocs -r
109 -
110 - doicon etc/lua.ico
111 -
112 - doman doc/lua.1 doc/luac.1
113 -}
114 -
115 -multilib_src_test() {
116 - # These tests MUST succeed for the ebuild to succeed
117 - local MUST_SUCCEED="bisect cf echo env factorial fib fibfor hello printf sieve
118 - sort trace-calls trace-globals"
119 -
120 - # These tests MUST fail for the ebuild to succeed
121 - local MUST_FAIL="readonly"
122 -
123 - cd "${BUILD_DIR}" || die
124 -
125 - local test
126 - for test in ${MUST_SUCCEED}; do
127 - src/lua test/${test}.lua || die "test $test failed"
128 - done
129 -
130 - for test in ${MUST_FAIL}; do
131 - src/lua test/${test}.lua && die "test $test failed"
132 - done
133 -}