summaryrefslogtreecommitdiff
path: root/app-emacs/systemd-mode
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-25 03:53:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-25 03:53:02 +0100
commit1bb02f2ca2710df2358072c9a036ae83d2ece88c (patch)
tree820bd0a18626e1c59cf5db3ff364a95806dd9b61 /app-emacs/systemd-mode
parent7ae4e1d32a98b596d483a19ed94a21b560eb595d (diff)
gentoo auto-resync : 25:10:2022 - 03:53:02
Diffstat (limited to 'app-emacs/systemd-mode')
-rw-r--r--app-emacs/systemd-mode/Manifest5
-rw-r--r--app-emacs/systemd-mode/files/50systemd-mode-gentoo.el2
-rw-r--r--app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch29
-rw-r--r--app-emacs/systemd-mode/metadata.xml13
-rw-r--r--app-emacs/systemd-mode/systemd-mode-1.6.ebuild40
5 files changed, 89 insertions, 0 deletions
diff --git a/app-emacs/systemd-mode/Manifest b/app-emacs/systemd-mode/Manifest
new file mode 100644
index 000000000000..88ce1b4bed7f
--- /dev/null
+++ b/app-emacs/systemd-mode/Manifest
@@ -0,0 +1,5 @@
+AUX 50systemd-mode-gentoo.el 76 BLAKE2B 1ccdda0e583af91bead6b672c59f163a80e96e624911ca843745c9b9709cbbe1f05e7ee6154136c8b1f3cd99ca94e5fafaf643ab2163d775d6e1d3393bcf4f91 SHA512 3e7e9d8c790dcb4fba7e0c125f1fc08d6e05c1822cb3c5ef686466cd2fdfb1a9cda7910400b0844743f57f1720bc25d50692e714dadac18fc98bf9ea583685e3
+AUX systemd-mode-1.6-directive-txt-files.patch 1136 BLAKE2B b6ee41752eb8e89efd4f7afaedab82c80e06997ab19e46c7e655f8f95c8eedd4138ed114981df6c4aa91f132f6565947c6758609aeea04103cd65bd8cbb4fb8a SHA512 a7e98036a72dae4074ddf4a6f633fc23f59da4166a914d3f04f4f5f25980bda068c19299f41d4ad63df6d9c7404d29a516faeffe1a58aa9cfe95aa4bcb22ea76
+DIST systemd-mode-1.6.tar.gz 21986 BLAKE2B 05278d86a6df9b5e95c75c1d1ebee182653f760e12639d4a260cf757fee3236988d5f8de671fe9a4724bc0338e08d6f10c405a1d42691f5d83c0efdc516da178 SHA512 2461e07287c1dbe5990eaae83484e98f4e8f2e89ece4b2f5f53f3c9174fc20a0cdf2e930c356bfb6a84587595d66ac353f4f85b5a96507c5344a615d4516f646
+EBUILD systemd-mode-1.6.ebuild 758 BLAKE2B 0fd88b05490996b40e8efefd61767ec470f92acd6b20f25bb14ee8810e4206003e3293ff93b508995e03053eabefb38d95ecb0af6a2e91129c2e1807281508c6 SHA512 415141ba36c36437e686220d381e4b61cded29aa845bd475474521c0d6302a4e961cd00af928e984c884a7b1852fbca92649085ab8c16cb57858a8b17473b194
+MISC metadata.xml 433 BLAKE2B b4f99c28f3470ec8e7c0dd9f074a94eddaf30e231ca31fbf23cbde0723bd5384c9fec863af1061a210134010053b74e996ae959a57c6cd16ce825216b2bc41fb SHA512 bd8c6d7fcd7edd34e2d18a7a4c3678ba44444a8789d62a52992b4996c907e65a7da2316fe13d98e2cf98e6271e6af89d5b586f71e3094aeebff46c54ef86f4d5
diff --git a/app-emacs/systemd-mode/files/50systemd-mode-gentoo.el b/app-emacs/systemd-mode/files/50systemd-mode-gentoo.el
new file mode 100644
index 000000000000..01b8ef7e6e34
--- /dev/null
+++ b/app-emacs/systemd-mode/files/50systemd-mode-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "systemd-mode-autoloads" nil t)
diff --git a/app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch b/app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch
new file mode 100644
index 000000000000..c85d78a10200
--- /dev/null
+++ b/app-emacs/systemd-mode/files/systemd-mode-1.6-directive-txt-files.patch
@@ -0,0 +1,29 @@
+--- a/systemd.el
++++ b/systemd.el
+@@ -89,7 +89,7 @@
+ (insert-file-contents
+ (let ((f "unit-directives.txt"))
+ (if (null load-file-name) f
+- (expand-file-name f (file-name-directory load-file-name)))))
++ (expand-file-name f (file-name-directory "@SITEETC@")))))
+ (split-string (buffer-string))))
+ "Configuration directives for systemd.")
+
+@@ -105,7 +105,7 @@
+ (insert-file-contents
+ (let ((f "network-directives.txt"))
+ (if (null load-file-name) f
+- (expand-file-name f (file-name-directory load-file-name)))))
++ (expand-file-name f (file-name-directory "@SITEETC@")))))
+ (split-string (buffer-string))))
+ "Network configuration directives for systemd.")
+
+@@ -119,7 +119,7 @@
+ (insert-file-contents
+ (let ((f "nspawn-directives.txt"))
+ (if (null load-file-name) f
+- (expand-file-name f (file-name-directory load-file-name)))))
++ (expand-file-name f (file-name-directory "@SITEETC@")))))
+ (split-string (buffer-string))))
+ "Namespace container configuration directives for systemd.")
+
diff --git a/app-emacs/systemd-mode/metadata.xml b/app-emacs/systemd-mode/metadata.xml
new file mode 100644
index 000000000000..9c2714e05bce
--- /dev/null
+++ b/app-emacs/systemd-mode/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/holomorph/systemd-mode/issues/</bugs-to>
+ <remote-id type="github">holomorph/systemd-mode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/systemd-mode/systemd-mode-1.6.ebuild b/app-emacs/systemd-mode/systemd-mode-1.6.ebuild
new file mode 100644
index 000000000000..801fb5effd59
--- /dev/null
+++ b/app-emacs/systemd-mode/systemd-mode-1.6.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=24.4
+
+inherit elisp
+
+DESCRIPTION="Major mode for editing systemd units in GNU Emacs"
+HOMEPAGE="https://github.com/holomorph/systemd-mode/"
+SRC_URI="https://github.com/holomorph/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}"/${P}-directive-txt-files.patch )
+
+DOCS=( README )
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" -i systemd.el || die
+}
+
+src_compile() {
+ elisp_src_compile
+ elisp-make-autoload-file
+}
+
+src_install() {
+ elisp_src_install
+
+ insinto "${SITEETC}/${PN}"
+ doins "${S}"/*.txt
+}