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 27D4B1382C5 for ; Mon, 8 Feb 2021 19:01:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73129E0970; Mon, 8 Feb 2021 19:01:31 +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 47100E0970 for ; Mon, 8 Feb 2021 19:01:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 B8BA933BE95 for ; Mon, 8 Feb 2021 19:01:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F2C746F for ; Mon, 8 Feb 2021 19:01:28 +0000 (UTC) From: "罗百科" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "罗百科" Message-ID: <1612810882.1347cc863ef59c588aabbe27d7cb9067801cb004.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/lfe/files/, dev-lang/lfe/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/lfe/Manifest dev-lang/lfe/files/70lfe-gentoo.el dev-lang/lfe/lfe-1.3.0_p20210112.ebuild dev-lang/lfe/metadata.xml X-VCS-Directories: dev-lang/lfe/files/ dev-lang/lfe/ X-VCS-Committer: patrick X-VCS-Committer-Name: 罗百科 X-VCS-Revision: 1347cc863ef59c588aabbe27d7cb9067801cb004 X-VCS-Branch: master Date: Mon, 8 Feb 2021 19:01:28 +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: 319e1b4b-2442-4a33-b560-478305ff083b X-Archives-Hash: a4225cb8729a6740fb5dfc2a55957b92 commit: 1347cc863ef59c588aabbe27d7cb9067801cb004 Author: Patrick Lauer gentoo org> AuthorDate: Mon Feb 8 14:17:39 2021 +0000 Commit: 罗百科 gentoo org> CommitDate: Mon Feb 8 19:01:22 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1347cc86 dev-lang/lfe: Bump Since the latest release doesn't build use snapshot. Thanks to Maciej Barc for figuring this out. Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Patrick Lauer gentoo.org> dev-lang/lfe/Manifest | 1 + dev-lang/lfe/files/70lfe-gentoo.el | 6 +++ dev-lang/lfe/lfe-1.3.0_p20210112.ebuild | 75 +++++++++++++++++++++++++++++++++ dev-lang/lfe/metadata.xml | 6 +++ 4 files changed, 88 insertions(+) diff --git a/dev-lang/lfe/Manifest b/dev-lang/lfe/Manifest index 157950b638b..3af9f48f189 100644 --- a/dev-lang/lfe/Manifest +++ b/dev-lang/lfe/Manifest @@ -1 +1,2 @@ DIST lfe-1.1.1.zip 386864 BLAKE2B d966e483c0490d7c6e48ae53819a0f1f30ea0edd7dcc6c7c3fe82c79ed0e4013d66dde4e74d4369e72fc46076723612f00ccb8d33d912d46dfdbf8e38940f72b SHA512 8660716a73126615bd0cde161a780cc49ba57718afd820dbe891da5e1d9ec2f52cc1864159dcedba1c674ccfef42b9662ec8e0bbfe82c10798527ae0979b8f8e +DIST lfe-1.3.0_p20210112.zip 447903 BLAKE2B bc63fd7f988abba77e7f4baef906c2fd4370e1aeb2bc04b019d429586cbcb91792ac0f65a3d29a904997d2488a2540411c38e904c0208e2183a8f0f8362f7c36 SHA512 ee178436ca8aea1f1001e5f679a366414229f584cc0e0a38d9749b7cb49d7378a3f8681dcb8c1d5c61e4f498aa31c575a791fe21337b3079a11b623ada363de9 diff --git a/dev-lang/lfe/files/70lfe-gentoo.el b/dev-lang/lfe/files/70lfe-gentoo.el new file mode 100644 index 00000000000..2be4c13d18a --- /dev/null +++ b/dev-lang/lfe/files/70lfe-gentoo.el @@ -0,0 +1,6 @@ +;;; lfe site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") + +(autoload 'lfe-mode "lfe-mode" nil t) +(autoload 'inferior-lfe-mode "inferior-lfe-mode" nil t) diff --git a/dev-lang/lfe/lfe-1.3.0_p20210112.ebuild b/dev-lang/lfe/lfe-1.3.0_p20210112.ebuild new file mode 100644 index 00000000000..17f438b3df2 --- /dev/null +++ b/dev-lang/lfe/lfe-1.3.0_p20210112.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit elisp-common toolchain-funcs + +DESCRIPTION="Lisp-flavoured Erlang" +HOMEPAGE="http://lfe.github.io/" +SRC_URI="https://github.com/rvirding/lfe/archive/v${PV}.zip -> ${P}.zip" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_BRANCH="develop" + EGIT_REPO_URI="https://github.com/rvirding/${PN}.git" +else + COMMIT_SHA="e5f20c459a13b35ed1e71b1d2667363af168e958" + SRC_URI="https://github.com/rvirding/${PN}/archive/${COMMIT_SHA}.zip -> ${P}.zip" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}-${COMMIT_SHA}" +fi + +RESTRICT="mirror test" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="doc emacs" + +RDEPEND=" + dev-lang/erlang +" +DEPEND=" + ${RDEPEND} + doc? ( app-text/pandoc ) +" + +SITEFILE="70${PN}-gentoo.el" + +src_prepare() { + default + + sed -i "s|cc |$(tc-getCC) ${CFLAGS} |g" ./Makefile \ + || die "Failed to fix the makefile" +} + +src_compile() { + emake compile + + use doc && emake docs + use emacs && emake emacs +} + +src_install() { + dodir "/usr/$(get_libdir)/erlang/lib/lfe/ebin/" + cp -R ./ebin "${D}/usr/$(get_libdir)/erlang/lib/lfe/" + dobin ./bin/* + + if use doc; then + dodoc ./doc/*.txt + doman ./doc/man/* + fi + + if use emacs; then + elisp-install lfe emacs/* \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-lang/lfe/metadata.xml b/dev-lang/lfe/metadata.xml index afa3a329e3a..9345ada5e45 100644 --- a/dev-lang/lfe/metadata.xml +++ b/dev-lang/lfe/metadata.xml @@ -5,6 +5,12 @@ patrick@gentoo.org Patrick Lauer + + LFE, Lisp Flavoured Erlang, is a lisp syntax front-end + to the Erlang compiler. Code produced with it is compatible + with "normal" Erlang code. + An LFE evaluator and shell is also included. + rvirding/lfe