diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-05-10 22:37:06 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-05-10 23:03:20 +0200 |
commit | 12c8534107e5998ecd3a755463294d091924193f (patch) | |
tree | 8721cd2c3fc8c3dbf6258009ffe145a0de635bfe /app-emacs/elpa-mirror | |
parent | app-emacs/dockerfile-mode: drop old 1.7-r1 (diff) | |
download | gentoo-12c8534107e5998ecd3a755463294d091924193f.tar.gz gentoo-12c8534107e5998ecd3a755463294d091924193f.tar.bz2 gentoo-12c8534107e5998ecd3a755463294d091924193f.zip |
app-emacs/elpa-mirror: new package; add 2.2.2
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/elpa-mirror')
-rw-r--r-- | app-emacs/elpa-mirror/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/elpa-mirror/elpa-mirror-2.2.2.ebuild | 31 | ||||
-rw-r--r-- | app-emacs/elpa-mirror/files/50elpa-mirror-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/elpa-mirror/metadata.xml | 13 |
4 files changed, 48 insertions, 0 deletions
diff --git a/app-emacs/elpa-mirror/Manifest b/app-emacs/elpa-mirror/Manifest new file mode 100644 index 000000000000..b725bf4d2ee8 --- /dev/null +++ b/app-emacs/elpa-mirror/Manifest @@ -0,0 +1 @@ +DIST elpa-mirror-2.2.2.tar.gz 9225 BLAKE2B 2f72fdb33384fc3b38db8b3b404b018b7e01989a410f30e7872c19e6b3b3eb8873c07c1751f7367d237c8117bbe548407dd0af7b301d2837a87aeccd3e704f5a SHA512 2927b40ea6f7ea0c6de6abf3367bdb2826021b7a70206611430f19ed4538814777980ede10946a6e0da258677de146f860467a2f88093491e34dce4279575042 diff --git a/app-emacs/elpa-mirror/elpa-mirror-2.2.2.ebuild b/app-emacs/elpa-mirror/elpa-mirror-2.2.2.ebuild new file mode 100644 index 000000000000..eaeb33c0fb7f --- /dev/null +++ b/app-emacs/elpa-mirror/elpa-mirror-2.2.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="Create local package repository from installed Emacs Lisp packages" +HOMEPAGE="https://github.com/redguardtoo/elpa-mirror/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/redguardtoo/${PN}.git" +else + SRC_URI="https://github.com/redguardtoo/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +# Tests require network access. +PROPERTIES="test_network" +RESTRICT="test" + +DOCS=( README.org ) +SITEFILE="50${PN}-gentoo.el" + +src_test() { + emake EMACS="${EMACS}" test +} diff --git a/app-emacs/elpa-mirror/files/50elpa-mirror-gentoo.el b/app-emacs/elpa-mirror/files/50elpa-mirror-gentoo.el new file mode 100644 index 000000000000..fa406fe42af2 --- /dev/null +++ b/app-emacs/elpa-mirror/files/50elpa-mirror-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'elpamr-create-mirror-for-installed "elpa-mirror" + "Export installed packages into a new directory." t) diff --git a/app-emacs/elpa-mirror/metadata.xml b/app-emacs/elpa-mirror/metadata.xml new file mode 100644 index 000000000000..3bd3ebbdd830 --- /dev/null +++ b/app-emacs/elpa-mirror/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/redguardtoo/elpa-mirror/issues/</bugs-to> + <remote-id type="github">redguardtoo/elpa-mirror</remote-id> + </upstream> +</pkgmetadata> |