Skip to content

Commit

Permalink
app-emacs/tty-format: new package, add 12
Browse files Browse the repository at this point in the history
Signed-off-by: Ulrich Müller <[email protected]>
  • Loading branch information
ulm committed Aug 5, 2024
1 parent 2679250 commit 53573e7
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-emacs/tty-format/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST tty-format-12.el.xz 6512 BLAKE2B 1a8fa04936cb12af062f60037b61a4204839a678d5ea566d08c4cfa9c48b24c8e32af8232f237bebf41ad1f64ba4fadf91d2b4e1f66cf1bfb27d00c78d25604e SHA512 5fd3285a7bb9c722a05d1621ac0958a366cc728165b594e17291de44e840874d50b983d1b774d7736e306fab3ac61095c97999abc821a20ab89fa088f461982f
20 changes: 20 additions & 0 deletions app-emacs/tty-format/files/50tty-format-gentoo.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
(add-to-list 'load-path "@SITELISP@")
(autoload 'ansi-format-encode "tty-format")
(autoload 'ansi-format-decode "tty-format")
(autoload 'backspace-overstrike-encode "tty-format")
(autoload 'backspace-overstrike-decode "tty-format")
(autoload 'tty-format-guess "tty-format")

(add-to-list 'format-alist
'(ansi-colors
"ANSI SGR escape sequence colours and fonts."
nil
ansi-format-decode ansi-format-encode t nil))

(add-to-list 'format-alist
'(backspace-overstrike
"Backspace overstriking for bold and underline."
nil
backspace-overstrike-decode backspace-overstrike-encode t nil))

(custom-add-option 'find-file-hook 'tty-format-guess)
9 changes: 9 additions & 0 deletions app-emacs/tty-format/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo GNU Emacs project</name>
</maintainer>
<stabilize-allarches/>
</pkgmetadata>
18 changes: 18 additions & 0 deletions app-emacs/tty-format/tty-format-12.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit elisp

DESCRIPTION="Text file backspacing and ANSI SGR as faces"
HOMEPAGE="https://user42.tuxfamily.org/tty-format/index.html
https://www.emacswiki.org/emacs/TtyFormat"
# taken from https://download.tuxfamily.org/user42/tty-format.el"
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.el.xz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

SITEFILE="50${PN}-gentoo.el"

0 comments on commit 53573e7

Please sign in to comment.