From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E37021382C5 for ; Sun, 6 Dec 2020 01:34:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 270B3E087F; Sun, 6 Dec 2020 01:34:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8181E087F for ; Sun, 6 Dec 2020 01:34:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 85D153411BE for ; Sun, 6 Dec 2020 01:34:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EAFF847A for ; Sun, 6 Dec 2020 01:34:08 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1607218416.1c73c534632603d64377940b996b8c34937969fe.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/lua/files/, dev-lang/lua/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/lua/files/lua-5.2-make-r1.patch dev-lang/lua/lua-5.2.4-r2.ebuild X-VCS-Directories: dev-lang/lua/ dev-lang/lua/files/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 1c73c534632603d64377940b996b8c34937969fe X-VCS-Branch: master Date: Sun, 6 Dec 2020 01:34:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5ca5239d-09d7-4340-8dc8-f17ad4306bfb X-Archives-Hash: 2e2f390d7bf595b34556cbfa51f681d7 commit: 1c73c534632603d64377940b996b8c34937969fe Author: William Hubbs gentoo org> AuthorDate: Sun Dec 6 01:30:56 2020 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun Dec 6 01:33:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c73c534 dev-lang/lua: migrate 5.2.4 to eapi 7 Signed-off-by: William Hubbs gentoo.org> dev-lang/lua/files/lua-5.2-make-r1.patch | 4 ++-- dev-lang/lua/lua-5.2.4-r2.ebuild | 36 +++++++++++++++++++------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/dev-lang/lua/files/lua-5.2-make-r1.patch b/dev-lang/lua/files/lua-5.2-make-r1.patch index a0624af9cc3..c65f799c0dc 100644 --- a/dev-lang/lua/files/lua-5.2-make-r1.patch +++ b/dev-lang/lua/files/lua-5.2-make-r1.patch @@ -17,7 +17,7 @@ +# Use libtool for binary installs, etc. + +export V -+export LIBTOOL = $(EROOT)usr/bin/libtool --quiet --tag=CC ++export LIBTOOL = libtool --quiet --tag=CC +# See libtool manual about how to set this + +gentoo_clean: @@ -47,7 +47,7 @@ lzio.h + -+export LIBTOOL = $(EROOT)usr/bin/libtool --quiet --tag=CC ++export LIBTOOL = libtool --quiet --tag=CC +export LIB_VERSION = 6:1:1 + +# The following rules use libtool for compiling and linking in order to diff --git a/dev-lang/lua/lua-5.2.4-r2.ebuild b/dev-lang/lua/lua-5.2.4-r2.ebuild index af89f22a59c..e9de80efdfb 100644 --- a/dev-lang/lua/lua-5.2.4-r2.ebuild +++ b/dev-lang/lua/lua-5.2.4-r2.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -inherit eutils autotools multilib multilib-minimal portability toolchain-funcs versionator +inherit autotools multilib multilib-minimal portability toolchain-funcs DESCRIPTION="A powerful light-weight programming language designed for extending applications" HOMEPAGE="http://www.lua.org/" @@ -17,7 +17,7 @@ SRC_URI=" LICENSE="MIT" SLOT="5.2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="+deprecated emacs readline static test test-complete" +IUSE="+deprecated readline static test test-complete" RESTRICT="!test? ( test )" RDEPEND="readline? ( sys-libs/readline:0= ) @@ -25,16 +25,17 @@ RDEPEND="readline? ( sys-libs/readline:0= ) !dev-lang/lua:0" DEPEND="${RDEPEND} sys-devel/libtool" -PDEPEND="emacs? ( app-emacs/lua-mode )" MULTILIB_WRAPPED_HEADERS=( /usr/include/lua${SLOT}/luaconf.h ) -src_prepare() { - local PATCH_PV=$(get_version_component_range 1-2) +PATCHES=( + "${FILESDIR}/${PN}-$(ver_cut 1-2)-make-r1.patch" +) - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch +src_prepare() { + default # use glibtool on Darwin (versus Apple libtool) if [[ ${CHOST} == *-darwin* ]] ; then @@ -42,9 +43,6 @@ src_prepare() { Makefile src/Makefile || die fi - [ -d "${FILESDIR}/${PV}" ] && \ - EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch - # correct lua versioning sed -i -e 's/\(LIB_VERSION = \)6:1:1/\10:0:0/' src/Makefile || die @@ -108,7 +106,7 @@ multilib_src_compile() { RPATH="${EPREFIX}/usr/$(get_libdir)/" \ LUA_LIBS="${mylibs}" \ LIB_LIBS="${liblibs}" \ - V=$(get_version_component_range 1-2) \ + V=$(ver_cut 1-2) \ gentoo_all } @@ -129,7 +127,7 @@ multilib_src_install() { # We want packages to find our things... # A slotted Lua uses different directories for headers & names for # libraries, and pkgconfig should reflect that. - local PATCH_PV=$(get_version_component_range 1-2) + local PATCH_PV=$(ver_cut 1-2) cp "${FILESDIR}/lua.pc" "${WORKDIR}" || die sed -r -i \ -e "/^INSTALL_INC=/s,(/include)$,\1/lua${SLOT}," \ @@ -152,9 +150,9 @@ multilib_src_install() { } multilib_src_install_all() { - dodoc README - dohtml doc/*.html doc/*.png doc/*.css doc/*.gif - + DOCS="README" + HTML_DOCS="doc/*.html doc/*.png doc/*.css doc/*.gif" + einstalldocs newman doc/lua.1 lua${SLOT}.1 newman doc/luac.1 luac${SLOT}.1 } @@ -192,3 +190,11 @@ src_test() { die "Tests failed" fi } + +pkg_postinst() { + if has_version "app-editor/emacs"; then + if ! has_version "app-emacs/lua-mode"; then + einfo "Install app-emacs/lua-mode for lua support for emacs" + fi + fi +}