summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-05-01 21:08:45 +0200
committerUlrich Müller <ulm@gentoo.org>2021-05-01 21:09:07 +0200
commit30234fdf04d978b3c8ff514f762cea5f812a8ff6 (patch)
tree2af0800878e81903315a018a6c643978beaeebaf /app-portage
parentwxwidgets.eclass: Add eqawarn for GTK 2 slot (diff)
downloadgentoo-30234fdf04d978b3c8ff514f762cea5f812a8ff6.tar.gz
gentoo-30234fdf04d978b3c8ff514f762cea5f812a8ff6.tar.bz2
gentoo-30234fdf04d978b3c8ff514f762cea5f812a8ff6.zip
app-portage/gs-elpa: Generate ebuilds for EAPI 7
Instead of EAPI 5, which is no longer supported by elisp.eclass. Closes: https://bugs.gentoo.org/787500 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/gs-elpa/files/gs-elpa-0.1.3-eapi7.patch47
-rw-r--r--app-portage/gs-elpa/gs-elpa-0.1.3-r2.ebuild28
2 files changed, 75 insertions, 0 deletions
diff --git a/app-portage/gs-elpa/files/gs-elpa-0.1.3-eapi7.patch b/app-portage/gs-elpa/files/gs-elpa-0.1.3-eapi7.patch
new file mode 100644
index 000000000000..f0289a8a5967
--- /dev/null
+++ b/app-portage/gs-elpa/files/gs-elpa-0.1.3-eapi7.patch
@@ -0,0 +1,47 @@
+--- gs-elpa-0.1.3/gs_elpa/ebuild.py
++++ gs-elpa-0.1.3/gs_elpa/ebuild.py
+@@ -16,7 +16,7 @@
+ from g_sorcery.ebuild import DefaultEbuildGenerator
+
+ Layout = collections.namedtuple("Layout",
+- ["vars_before_inherit", "inherit",
++ ["eapi", "vars_before_inherit", "inherit",
+ "vars_after_description", "vars_after_keywords"])
+
+
+@@ -26,6 +26,8 @@
+ """
+ def __init__(self, package_db):
+
++ eapi = "7"
++
+ vars_before_inherit = \
+ ["repo_uri", "source_type", "realname", {"name" : "digest_sources", "value" : "yes"}]
+
+@@ -37,7 +39,7 @@
+ vars_after_keywords = \
+ ["depend", "rdepend"]
+
+- layout = Layout(vars_before_inherit,
++ layout = Layout(eapi, vars_before_inherit,
+ inherit, vars_after_description, vars_after_keywords)
+
+ super(ElpaEbuildWithDigestGenerator, self).__init__(package_db, layout)
+@@ -48,6 +50,8 @@
+ """
+ def __init__(self, package_db):
+
++ eapi = "7"
++
+ vars_before_inherit = \
+ ["repo_uri", "source_type", "realname"]
+
+@@ -59,7 +63,7 @@
+ vars_after_keywords = \
+ ["depend", "rdepend"]
+
+- layout = Layout(vars_before_inherit, inherit,
++ layout = Layout(eapi, vars_before_inherit, inherit,
+ vars_after_description, vars_after_keywords)
+
+ super(ElpaEbuildWithoutDigestGenerator, self).__init__(package_db, layout)
diff --git a/app-portage/gs-elpa/gs-elpa-0.1.3-r2.ebuild b/app-portage/gs-elpa/gs-elpa-0.1.3-r2.ebuild
new file mode 100644
index 000000000000..3466a9505488
--- /dev/null
+++ b/app-portage/gs-elpa/gs-elpa-0.1.3-r2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{3_7,3_8} )
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit distutils-r1
+
+DESCRIPTION="g-sorcery backend for elisp packages"
+HOMEPAGE="https://github.com/jauhien/gs-elpa"
+SRC_URI="https://github.com/jauhien/gs-elpa/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="app-portage/g-sorcery[$(python_gen_usedep 'python*')]
+ dev-python/sexpdata[$(python_gen_usedep 'python*')]"
+RDEPEND="${DEPEND}"
+
+PATCHES=("${FILESDIR}/${P}-eapi7.patch")
+
+python_install_all() {
+ distutils-r1_python_install_all
+ doman docs/*.8
+}