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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BDA3515808B for ; Sun, 6 Mar 2022 15:08:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 739EAE0920; Sun, 6 Mar 2022 15:08:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F402AE0920 for ; Sun, 6 Mar 2022 15:08:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 44C813430DC for ; Sun, 6 Mar 2022 15:08:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78FBD2D3 for ; Sun, 6 Mar 2022 15:07:58 +0000 (UTC) From: "Matthew Smith" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" Message-ID: <1646579185.5ee53e4e6f8a57b79cb9120501d720eb0790a8a9.matthew@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/go-mode/, app-emacs/go-mode/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/go-mode/Manifest app-emacs/go-mode/files/50go-mode-1.6.0-gentoo.el app-emacs/go-mode/go-mode-1.6.0.ebuild X-VCS-Directories: app-emacs/go-mode/files/ app-emacs/go-mode/ X-VCS-Committer: matthew X-VCS-Committer-Name: Matthew Smith X-VCS-Revision: 5ee53e4e6f8a57b79cb9120501d720eb0790a8a9 X-VCS-Branch: master Date: Sun, 6 Mar 2022 15:07:58 +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: 4db6fd86-1d09-47f7-984e-8e73bec3d98e X-Archives-Hash: 67c6997d0d81ef4f24de43f0c89fd784 commit: 5ee53e4e6f8a57b79cb9120501d720eb0790a8a9 Author: Matthew Smith gentoo org> AuthorDate: Sun Mar 6 15:04:35 2022 +0000 Commit: Matthew Smith gentoo org> CommitDate: Sun Mar 6 15:06:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ee53e4e app-emacs/go-mode: add 1.6.0 Also bump to EAPI 8 and run the provided tests. Bug: https://bugs.gentoo.org/582434 Suggested-by: Alessandro Di Marco ethzero.com> Signed-off-by: Matthew Smith gentoo.org> app-emacs/go-mode/Manifest | 1 + app-emacs/go-mode/files/50go-mode-1.6.0-gentoo.el | 2 + app-emacs/go-mode/go-mode-1.6.0.ebuild | 47 +++++++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/app-emacs/go-mode/Manifest b/app-emacs/go-mode/Manifest index 5af33b0616db..882da91fac0a 100644 --- a/app-emacs/go-mode/Manifest +++ b/app-emacs/go-mode/Manifest @@ -1 +1,2 @@ DIST go-mode-1.5.0.tar.gz 36876 BLAKE2B dca184f1cb79c919067ffecd1111f2404685459dca374a1ff14512067d0235bc862a04cb5fb014620856d0d03c15668149d0c62c238098b8561ea2512b26ec36 SHA512 fee67461467feb272dbb90abbad3df786f984925747ad8588c271784f8d27db888dd1da9d4589fb63ccfded1a833b01bb860d3254b00ca5e3f3aa89f199880c3 +DIST go-mode-1.6.0.tar.xz 40764 BLAKE2B e88be130809da4d00978698c6f2cdd0d844a6c6646c23152fcb5f4c3a9a1596ca8d79199d811f8e7d64f6c245cd7bb80b9a403fc0e1362e6b2c556466b45e80d SHA512 24594b1de8ae45922a6a7c7cee8097f4a8ebdac477ae086595a73c5a7757b8c2f8c0249ad4ccf313ca13332790d76495b7c212d2e0e721f98753f23b2d6511c1 diff --git a/app-emacs/go-mode/files/50go-mode-1.6.0-gentoo.el b/app-emacs/go-mode/files/50go-mode-1.6.0-gentoo.el new file mode 100644 index 000000000000..9b688ab3a239 --- /dev/null +++ b/app-emacs/go-mode/files/50go-mode-1.6.0-gentoo.el @@ -0,0 +1,2 @@ +(add-to-list 'load-path "@SITELISP@") +(load "@SITELISP@/go-mode-autoloads" nil t) diff --git a/app-emacs/go-mode/go-mode-1.6.0.ebuild b/app-emacs/go-mode/go-mode-1.6.0.ebuild new file mode 100644 index 000000000000..76def2ac8579 --- /dev/null +++ b/app-emacs/go-mode/go-mode-1.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26 + +inherit elisp + +# Upstream didn't create a git tag for version 1.6.0, this source +# tarball is from the repository at commit 3273fcece5d, the commit that +# bumped the version to 1.6.0. + +DESCRIPTION="An improved Go mode for emacs" +HOMEPAGE="https://github.com/dominikh/go-mode.el" +SRC_URI="https://dev.gentoo.org/~matthew/distfiles/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +SITEFILE="50${PN}-1.6.0-gentoo.el" +DOCS=( README.md ) + +src_prepare() { + default + + # fix path to testdata directory when running tests + sed -i 's|testdata|test/&|g' \ + test/go-indentation-test.el || die +} + +src_compile() { + elisp_src_compile + elisp-make-autoload-file +} + +src_test() { + for suite in test/*-test.el; do + ${EMACS} ${EMACSFLAGS} \ + -L . \ + -l ert \ + -l go-mode \ + -l "${suite}" \ + -f ert-run-tests-batch-and-exit || die "test ${suite} failed" + done +}