public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/use-package/files/, app-emacs/use-package/
@ 2022-04-21  1:54 Maciej Barć
  0 siblings, 0 replies; only message in thread
From: Maciej Barć @ 2022-04-21  1:54 UTC (permalink / raw
  To: gentoo-commits

commit:     e18144b837785cb1520a526da40ac7b2f79841b3
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 01:24:34 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 01:44:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e18144b8

app-emacs/use-package: new package; add version 2.4.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/use-package/Manifest                     |  1 +
 .../use-package/files/50use-package-gentoo.el      |  1 +
 .../files/use-package-require-diminish.patch       | 14 ++++++++
 app-emacs/use-package/metadata.xml                 | 13 ++++++++
 app-emacs/use-package/use-package-2.4.1.ebuild     | 39 ++++++++++++++++++++++
 5 files changed, 68 insertions(+)

diff --git a/app-emacs/use-package/Manifest b/app-emacs/use-package/Manifest
new file mode 100644
index 000000000000..9aad8f0492a8
--- /dev/null
+++ b/app-emacs/use-package/Manifest
@@ -0,0 +1 @@
+DIST use-package-2.4.1.tar.gz 124368 BLAKE2B 5eaa6f500234d86651e155fa5360362c5e2696a8b258d5785a02b94f4ccacc6a9815e0b53f663684cef1cc9aa6c6812a5f59e04de3a3d7c5ac36e9dfb6ea09ea SHA512 7248243dbddd939eb1ef9e76f9410265ed1cc48398745f593b57122261a6bb3bf4ab40392b6f29476ca33922f7087a52596a87968cf4914e5ed82db6c513bbbf

diff --git a/app-emacs/use-package/files/50use-package-gentoo.el b/app-emacs/use-package/files/50use-package-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/use-package/files/50use-package-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")

diff --git a/app-emacs/use-package/files/use-package-require-diminish.patch b/app-emacs/use-package/files/use-package-require-diminish.patch
new file mode 100644
index 000000000000..afa7f33045ec
--- /dev/null
+++ b/app-emacs/use-package/files/use-package-require-diminish.patch
@@ -0,0 +1,14 @@
+Diminishing is one of core features of use-package, normally
+it would have to be required before using use-package.
+This patch will load diminish when use-package loads.
+index 1f3895f..a38ee48 100644
+--- a/use-package-diminish.el
++++ b/use-package-diminish.el
+@@ -33,6 +33,7 @@
+ 
+ ;;; Code:
+ 
++(require 'diminish)
+ (require 'use-package-core)
+ 
+ (defun use-package-normalize-diminish (name label arg &optional recursed)

diff --git a/app-emacs/use-package/metadata.xml b/app-emacs/use-package/metadata.xml
new file mode 100644
index 000000000000..3f12e84d7508
--- /dev/null
+++ b/app-emacs/use-package/metadata.xml
@@ -0,0 +1,13 @@
+<?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/jwiegley/use-package/issues/</bugs-to>
+    <remote-id type="github">jwiegley/use-package</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/app-emacs/use-package/use-package-2.4.1.ebuild b/app-emacs/use-package/use-package-2.4.1.ebuild
new file mode 100644
index 000000000000..654d57b3022e
--- /dev/null
+++ b/app-emacs/use-package/use-package-2.4.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# NOTICE: This package provides all "use-package" Emacs Lisp libraries except
+# "bind-chord" and "bind-key" which are split into their own packages.
+
+EAPI=8
+
+NEED_EMACS=24.3
+
+inherit elisp
+
+DESCRIPTION="Declaration macro for simplifying your Emacs configuration"
+HOMEPAGE="https://github.com/jwiegley/use-package/"
+SRC_URI="https://github.com/jwiegley/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	app-emacs/bind-chord
+	app-emacs/bind-key
+	app-emacs/diminish
+	app-emacs/system-packages
+"
+BDEPEND="${RDEPEND}"
+
+DOCS=( NEWS.md README.md use-package.org )
+PATCHES=( "${FILESDIR}"/${PN}-require-diminish.patch )
+
+ELISP_TEXINFO="${PN}.texi"
+SITEFILE="50${PN}-gentoo.el"
+
+src_install() {
+	rm bind-{chord,key}.el{,c} ${PN}-tests.el || die
+
+	elisp_src_install
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-21  1:54 [gentoo-commits] repo/gentoo:master commit in: app-emacs/use-package/files/, app-emacs/use-package/ Maciej Barć

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox