* [gentoo-commits] repo/gentoo:master commit in: app-emacs/package-lint/, app-emacs/package-lint/files/
@ 2022-04-26 23:13 Maciej Barć
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2022-04-26 23:13 UTC (permalink / raw
To: gentoo-commits
commit: 53277ef48dbfe60be03041e8bfaf7f3ced5acd52
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 26 23:12:47 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Apr 26 23:13:08 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53277ef4
app-emacs/package-lint: new package; add version 0.16
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-emacs/package-lint/Manifest | 1 +
.../package-lint/files/50package-lint-gentoo.el | 1 +
.../package-lint-symbol-info-data-directory.patch | 26 +++++++++++++++++
app-emacs/package-lint/metadata.xml | 26 +++++++++++++++++
app-emacs/package-lint/package-lint-0.16.ebuild | 34 ++++++++++++++++++++++
5 files changed, 88 insertions(+)
diff --git a/app-emacs/package-lint/Manifest b/app-emacs/package-lint/Manifest
new file mode 100644
index 000000000000..a55a783a16b8
--- /dev/null
+++ b/app-emacs/package-lint/Manifest
@@ -0,0 +1 @@
+DIST package-lint-0.16.tar.gz 224744 BLAKE2B a1d26ae28727e305416498b66da188cbadababc9f415c199eff380dbce4888ee3137b6f13a26147d427142a9d244c784e192d21df3173d0a0c2dde4acb1e8630 SHA512 f5d79b69d37671233614a622cd5fd6c28c230adb0d5b7934ccd6bedc12228adb7bdef6739fdd32be383cefceb65b9538a00f763b49be6499e4b6e3f8b1a34616
diff --git a/app-emacs/package-lint/files/50package-lint-gentoo.el b/app-emacs/package-lint/files/50package-lint-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/package-lint/files/50package-lint-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/package-lint/files/package-lint-symbol-info-data-directory.patch b/app-emacs/package-lint/files/package-lint-symbol-info-data-directory.patch
new file mode 100644
index 000000000000..1b8644976721
--- /dev/null
+++ b/app-emacs/package-lint/files/package-lint-symbol-info-data-directory.patch
@@ -0,0 +1,26 @@
+index 2ecaef5..8178375 100644
+--- a/package-lint.el
++++ b/package-lint.el
+@@ -106,13 +106,15 @@ a backport library shipping the feature and VERSION is an
+ optional minimum version containing the feature.")
+
+ (defconst package-lint-symbol-info
+- (let* ((stdlib-changes (with-temp-buffer
+- (insert-file-contents
+- (expand-file-name "data/stdlib-changes"
+- (if load-file-name
+- (file-name-directory load-file-name)
+- default-directory)))
+- (read (current-buffer))))
++ (let* ((stdlib-changes
++ (with-temp-buffer
++ (insert-file-contents
++ (let ((siteetc-stdlib-changes
++ (expand-file-name "data/stdlib-changes" "@SITEETC@")))
++ (if (file-exists-p siteetc-stdlib-changes)
++ siteetc-stdlib-changes
++ (expand-file-name "data/stdlib-changes" default-directory))))
++ (read (current-buffer))))
+ (info (make-hash-table)))
+ (pcase-dolist (`(,version . ,data) stdlib-changes)
+ (pcase-dolist (`(,syms . ,action)
diff --git a/app-emacs/package-lint/metadata.xml b/app-emacs/package-lint/metadata.xml
new file mode 100644
index 000000000000..ddaf53faef36
--- /dev/null
+++ b/app-emacs/package-lint/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/purcell/package-lint/issues/</bugs-to>
+ <remote-id type="github">purcell/package-lint</remote-id>
+ </upstream>
+ <longdescription>
+ This library provides a linter for the metadata in Emacs Lisp files which
+ are intended to be packages. You can integrate it into your build process.
+ package-lint detects various issues that may make your package
+ uninstallable or unusable for some users, and it warns about significant
+ deviations from the Elisp coding conventions, such as non-compliant symbol
+ naming, and use of reserved keybindings. Among other community uses,
+ package-lint is a prerequisite for submission of packages to MELPA.
+ package-lint can be used standalone, but see also the flycheck-package and
+ package-lint-flymake packages, which both use package-lint to conveniently
+ display packaging errors directly in the buffer while writing elisp
+ packages.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-emacs/package-lint/package-lint-0.16.ebuild b/app-emacs/package-lint/package-lint-0.16.ebuild
new file mode 100644
index 000000000000..16a41eaf585d
--- /dev/null
+++ b/app-emacs/package-lint/package-lint-0.16.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=26.1
+
+inherit elisp
+
+DESCRIPTION="Linting library for Emacs Lisp package metadata"
+HOMEPAGE="https://github.com/purcell/package-lint/"
+SRC_URI="https://github.com/purcell/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+DOCS=( README.md )
+PATCHES=( "${FILESDIR}"/${PN}-symbol-info-data-directory.patch )
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i ${PN}.el || die
+}
+
+src_install() {
+ elisp-install ${PN} ${PN}{,-flymake}.el{,c}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+
+ insinto ${SITEETC}/${PN}
+ doins -r data
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/package-lint/, app-emacs/package-lint/files/
@ 2024-03-25 2:27 Maciej Barć
0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2024-03-25 2:27 UTC (permalink / raw
To: gentoo-commits
commit: 6a6fe7485fc0191bcadeb20662b2fb8565c16a40
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 25 02:25:59 2024 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 02:27:23 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a6fe748
app-emacs/package-lint: bump to 0.22
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-emacs/package-lint/Manifest | 1 +
.../package-lint-0.22-load-data-directory.patch | 17 +++++++
app-emacs/package-lint/package-lint-0.22.ebuild | 54 ++++++++++++++++++++++
3 files changed, 72 insertions(+)
diff --git a/app-emacs/package-lint/Manifest b/app-emacs/package-lint/Manifest
index f357dc65a5e7..91eab74928ee 100644
--- a/app-emacs/package-lint/Manifest
+++ b/app-emacs/package-lint/Manifest
@@ -1 +1,2 @@
DIST package-lint-0.21.tar.gz 320199 BLAKE2B 58e27e2c775e5b78a900b6ce887996e472579b154fba4efebb292c17878b80327aa9aed12e0ed7795f2a876a88c94788e55686ff6705f4ccc730cc690d5d4e0c SHA512 809214078cf6bf1c8648f438a6e8f33a4c2f453f316d818f856af785e94ab85b041ca3fa6dea4485aa116bfe436d56f326ea911c1e04dec3e4fc82b5de0055ae
+DIST package-lint-0.22.tar.gz 322207 BLAKE2B 4605bd733ac46c5d1535c5c27c3921006e9641342f2fc42500b225146384e193c719e73c246ec9fc8a9db811d6c9b70b979647b9581a135e78b4cb7f4f4dfd8a SHA512 3924d8a0daaf2bf08c3128aff9776b3b5629d1bc6beeeef6355b07cb14f04769a24458eb81f38a27a7fa3db235fe5eca7a1cdf1a1ae222dd67e8d53e7955647b
diff --git a/app-emacs/package-lint/files/package-lint-0.22-load-data-directory.patch b/app-emacs/package-lint/files/package-lint-0.22-load-data-directory.patch
new file mode 100644
index 000000000000..c4846cf9b6f8
--- /dev/null
+++ b/app-emacs/package-lint/files/package-lint-0.22-load-data-directory.patch
@@ -0,0 +1,17 @@
+--- a/package-lint.el
++++ b/package-lint.el
+@@ -113,11 +113,9 @@ optional minimum version containing the feature.")
+ (defun package-lint--load-data (file)
+ "Load sexp data from FILE."
+ (with-temp-buffer
+- (insert-file-contents
+- (expand-file-name file
+- (if load-file-name
+- (file-name-directory load-file-name)
+- default-directory)))
++ (let ((ef (expand-file-name file "@SITEETC@")))
++ (insert-file-contents
++ (if (file-exists-p ef) ef file)))
+ (read (current-buffer))))
+
+ (defconst package-lint-symbol-info
diff --git a/app-emacs/package-lint/package-lint-0.22.ebuild b/app-emacs/package-lint/package-lint-0.22.ebuild
new file mode 100644
index 000000000000..4014aa033f64
--- /dev/null
+++ b/app-emacs/package-lint/package-lint-0.22.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=26.1
+
+inherit elisp
+
+DESCRIPTION="Linting library for Emacs Lisp package metadata"
+HOMEPAGE="https://github.com/purcell/package-lint/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/purcell/${PN}.git"
+else
+ SRC_URI="https://github.com/purcell/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+RDEPEND="
+ app-emacs/compat
+"
+BDEPEND="
+ ${RDEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.22-load-data-directory.patch"
+)
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i "${PN}.el" || die
+}
+
+src_install() {
+ elisp-install "${PN}" ${PN}{,-flymake}.el{,c}
+ elisp-make-site-file "${SITEFILE}"
+
+ insinto "${SITEETC}/${PN}"
+ doins -r data
+
+ einstalldocs
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-25 2:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25 2:27 [gentoo-commits] repo/gentoo:master commit in: app-emacs/package-lint/, app-emacs/package-lint/files/ Maciej Barć
-- strict thread matches above, loose matches on Subject: below --
2022-04-26 23:13 Maciej Barć
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox