summaryrefslogtreecommitdiff
path: root/app-emacs/color-theme
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emacs/color-theme
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/color-theme')
-rw-r--r--app-emacs/color-theme/Manifest7
-rw-r--r--app-emacs/color-theme/color-theme-6.6.0-r1.ebuild33
-rw-r--r--app-emacs/color-theme/files/50color-theme-gentoo.el109
-rw-r--r--app-emacs/color-theme/files/color-theme-6.6.0-replace-in-string.patch30
-rw-r--r--app-emacs/color-theme/metadata.xml8
5 files changed, 187 insertions, 0 deletions
diff --git a/app-emacs/color-theme/Manifest b/app-emacs/color-theme/Manifest
new file mode 100644
index 000000000000..a67e086bf842
--- /dev/null
+++ b/app-emacs/color-theme/Manifest
@@ -0,0 +1,7 @@
+AUX 50color-theme-gentoo.el 4375 SHA256 27e539708b3ee753637688a00458a4baced4347bb5c18f9bccd336e46defe791 SHA512 318354c71e75b343eaf90b3be2f94c0b6b93c776afe3289a5c18a5b837478291ce6a8d554a6357c13f14cbe568bf10c5d7ed9690ee8c382ec3cc4aeeac70412a WHIRLPOOL 2f26621ca95bd3b7217487f51ae145d70caf2bb8eb9d942297d11ec2e27aa8ec26f9adb36f481c0eef5162af4d5913930c9d2a5a3807007707204fde39587fc6
+AUX color-theme-6.6.0-replace-in-string.patch 1173 SHA256 f8e9b98847755b656bc36277e62850e98f4602cb377eebc01320bbd782168804 SHA512 bdf1ebb03c1fc70bf78adf4886b005780d1c540ac59730e644111f5a3a925b6b05d2e910520b67ec768815f0fecca3a5e617472ca9e415900daf890ca77bc6d1 WHIRLPOOL f6b271fb770a0112ec3e524f0bd43669682cb55027858c050258dffa57316e6206fe5a2f1f22df8250268e325beef7e2638164582d38f9fe4fd196dfb55cbeee
+DIST color-theme-6.6.0.tar.gz 124858 SHA256 56d35f02dc4c8dd386a7242007432adc458466c8a48d0d680eda1826197ca17b SHA512 4faa22900f6ad4a1dd57452470e23b57827d3f02bf2b9e3c4eed6f5693432d6478aa5008e67f219a95412a63fe52dbcad15b0ac7a3b4d39f1d28ceda75e5e76c WHIRLPOOL d4139af0f1c2d3c14e6b142cb7eac1f28bcb89cf011e4b6041fca0bc5c01810ddb2e1e9cc916887c5f11741fe69d0fed996473d5f662ec35a85de224909b96ae
+EBUILD color-theme-6.6.0-r1.ebuild 980 SHA256 df3a3c8131ce6e37a94cff14e85b4f0a7d2ab6746d2f619bf371757d6c2e7f13 SHA512 58fb0e52f726753ebf743a464ce12bbadf8a81c32bb50247b1797fd9d60b3e5a4b64b71b8c9be6b6ec87ba0540ac7edce161445229b59386a71ccd41c59b3d13 WHIRLPOOL 2acd2206bc850f77821f4449b0be00a6e27669713d11db1dc52c1c3afa67fddcc11efbda4eef858a28b457c5ee6bb4a20d4e049f01136f099ef77f0858dae113
+MISC ChangeLog 2559 SHA256 e76cb2499d0d93284628ef2652cfcd6191d45598268a6ade8f3c3729d2dfd793 SHA512 aa4364895a864d34d1b222b23791a65b384b931bdc86f5b9974a84df03e968f8096185731ab803e25c475a5933d1e3e09b7147b99f266ec283016ae0c14e4b55 WHIRLPOOL 937cfbbbe030cf3db2defe091b611598180b401be9bdf09b35faf8e4714a650a8424f56fab434457ff4fd5c0dedd0f99ec5d922bbda2edc7c0916150915afbe3
+MISC ChangeLog-2015 5899 SHA256 78b310af7c85405c1a2bea7c7a9f0d7b8bfc666ce1370c2a6b96eba6c0b4c31f SHA512 91d9d819e73559c149a02fc92ea69069ff8ccd2d5e0dc2baab83148fd28737398007582e1a230f3600ec171094bfae91fa216ccef8d3663ebc975efb5d9d2331 WHIRLPOOL 490f568656719fd51fa6b4d24e335c0ee19f38ac41eb5d71df1ede8240715be5ce5c7d9aac75a5ee1f3f31e93428414c8b24289805033b6eae51da860d2a0966
+MISC metadata.xml 259 SHA256 4d59c14917cb31648858cb06bc3c7f224cf1c3906dc3166f8f0d8b8e02970928 SHA512 9a5c456aae7919a4cdbb10b67a27c232daf2ec6db4202e04ba6d5873242fc982a659410443dd6fb4498d42af00b495acc51a6a2cbe12aeab91b585dfac7233a3 WHIRLPOOL 08c68f505a8cc685c52f3a54a07582b64ff7c0b4682c8f9333286fbb5caf4a8d406933c7937fe8c9611f456b5a549ee100657a1c9dc766c8965772f277bf31fb
diff --git a/app-emacs/color-theme/color-theme-6.6.0-r1.ebuild b/app-emacs/color-theme/color-theme-6.6.0-r1.ebuild
new file mode 100644
index 000000000000..c3182eaae203
--- /dev/null
+++ b/app-emacs/color-theme/color-theme-6.6.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit readme.gentoo elisp
+
+DESCRIPTION="Install color themes (includes many themes)"
+HOMEPAGE="http://www.nongnu.org/color-theme/"
+SRC_URI="http://download.savannah.gnu.org/releases-noredirect/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+
+ELISP_PATCHES="${P}-replace-in-string.patch"
+ELISP_REMOVE="color-theme-autoloads.*"
+SITEFILE="50${PN}-gentoo.el"
+
+src_install() {
+ elisp-install ${PN} *.el *.elc
+ elisp-install ${PN}/themes themes/*.el
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ dodoc AUTHORS BUGS ChangeLog README
+
+ DOC_CONTENTS="To use color-theme non-interactively, initialise it
+ in your ~/.emacs file as in the following example (which is
+ for the \"Blue Sea\" theme):
+ \n
+ \n(color-theme-initialize)
+ \n(color-theme-blue-sea)"
+ readme.gentoo_create_doc
+}
diff --git a/app-emacs/color-theme/files/50color-theme-gentoo.el b/app-emacs/color-theme/files/50color-theme-gentoo.el
new file mode 100644
index 000000000000..9d43c350fffd
--- /dev/null
+++ b/app-emacs/color-theme/files/50color-theme-gentoo.el
@@ -0,0 +1,109 @@
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload (quote color-theme-select) "color-theme" "\
+Displays a special buffer for selecting and installing a color theme.
+With optional prefix ARG, this buffer will include color theme libraries
+as well. A color theme library is in itself not complete, it must be
+used as part of another color theme to be useful. Thus, color theme
+libraries are mainly useful for color theme authors." t nil)
+
+(autoload (quote color-theme-describe) "color-theme" "\
+Describe color theme listed at point.
+This shows the documentation of the value of text-property color-theme
+at point. The text-property color-theme should be a color theme
+function. See `color-themes'." t nil)
+
+(autoload (quote color-theme-install-at-mouse) "color-theme" "\
+Install color theme clicked upon using the mouse.
+First argument EVENT is used to set point. Then
+`color-theme-install-at-point' is called." t nil)
+
+(autoload (quote color-theme-install-at-point-for-current-frame) "color-theme" "\
+Install color theme at point for current frame only.
+Binds `color-theme-is-global' to nil and calls
+`color-theme-install-at-point'." t nil)
+
+(autoload (quote color-theme-print) "color-theme" "\
+Print the current color theme function.
+
+You can contribute this function to <URL:news:gnu.emacs.sources> or
+paste it into your .emacs file and call it. That should recreate all
+the settings necessary for your color theme.
+
+Example:
+
+ (require 'color-theme)
+ (defun my-color-theme ()
+ \"Color theme by Alex Schroeder, created 2000-05-17.\"
+ (interactive)
+ (color-theme-install
+ '(...
+ ...
+ ...)))
+ (my-color-theme)
+
+If you want to use a specific color theme function, you can call the
+color theme function in your .emacs directly.
+
+Example:
+
+ (require 'color-theme)
+ (color-theme-gnome2)" t nil)
+
+(autoload (quote color-theme-analyze-defun) "color-theme" "\
+Once you have a color-theme printed, check for missing faces.
+This is used by maintainers who receive a color-theme submission
+and want to make sure it follows the guidelines by the color-theme
+author." t nil)
+
+(autoload (quote color-theme-make-snapshot) "color-theme" "\
+Return the definition of the current color-theme.
+The function returned will recreate the color-theme in use at the moment." nil nil)
+
+(autoload (quote color-theme-compare) "color-theme" "\
+Compare two color themes.
+This will print the differences between installing THEME-A and
+installing THEME-B. Note that the order is important: If a face is
+defined in THEME-A and not in THEME-B, then this will not show up as a
+difference, because there is no reset before installing THEME-B. If a
+face is defined in THEME-B and not in THEME-A, then this will show up as
+a difference." t nil)
+
+(autoload (quote color-theme-install) "color-theme" "\
+Install a color theme defined by frame parameters, variables and faces.
+
+The theme is installed for all present and future frames; any missing
+faces are created. See `color-theme-install-faces'.
+
+THEME is a color theme definition. See below for more information.
+
+If you want to install a color theme from your .emacs, use the output
+generated by `color-theme-print'. This produces color theme function
+which you can copy to your .emacs.
+
+A color theme definition is a list:
+\([FUNCTION] FRAME-PARAMETERS VARIABLE-SETTINGS FACE-DEFINITIONS)
+
+FUNCTION is the color theme function which called `color-theme-install'.
+This is no longer used. There was a time when this package supported
+automatic factoring of color themes. This has been abandoned.
+
+FRAME-PARAMETERS is an alist of frame parameters. These are installed
+with `color-theme-install-frame-params'. These are installed last such
+that any changes to the default face can be changed by the frame
+parameters.
+
+VARIABLE-DEFINITIONS is an alist of variable settings. These are
+installed with `color-theme-install-variables'.
+
+FACE-DEFINITIONS is an alist of face definitions. These are installed
+with `color-theme-install-faces'.
+
+If `color-theme-is-cumulative' is nil, a color theme will undo face and
+frame-parameter settings of previous color themes." nil nil)
+
+(autoload (quote color-theme-submit) "color-theme" "\
+Submit your color-theme to the maintainer." t nil)
+
+(autoload (quote color-theme-initialize) "color-theme" "\
+Initialize the color theme package by loading color-theme-libraries." t nil)
diff --git a/app-emacs/color-theme/files/color-theme-6.6.0-replace-in-string.patch b/app-emacs/color-theme/files/color-theme-6.6.0-replace-in-string.patch
new file mode 100644
index 000000000000..bfd6bedd8983
--- /dev/null
+++ b/app-emacs/color-theme/files/color-theme-6.6.0-replace-in-string.patch
@@ -0,0 +1,30 @@
+http://bugs.gentoo.org/280293
+
+--- color-theme-6.6.0-orig/color-theme.el 2006-05-28 15:07:29.000000000 +0200
++++ color-theme-6.6.0/color-theme.el 2009-08-10 10:17:00.000000000 +0200
+@@ -72,11 +72,6 @@
+ (string-match "XEmacs" emacs-version))
+ "Non-nil if running XEmacs.")
+
+-;; Add this since it appears to miss in emacs-2x
+-(or (fboundp 'replace-in-string)
+- (defun replace-in-string (target old new)
+- (replace-regexp-in-string old new target)))
+-
+ ;; face-attr-construct has a problem in Emacs 20.7 and older when
+ ;; dealing with inverse-video faces. Here is a short test to check
+ ;; wether you are affected.
+@@ -1626,9 +1621,10 @@
+ (add-to-list 'color-themes
+ (list ',n
+ (upcase-initials
+- (replace-in-string
+- (replace-in-string
+- (symbol-name ',n) "^color-theme-" "") "-" " "))
++ (replace-regexp-in-string
++ "-" " "
++ (replace-regexp-in-string
++ "^color-theme-" "" (symbol-name ',n))))
+ ,author))
+ (defun ,n ()
+ ,description
diff --git a/app-emacs/color-theme/metadata.xml b/app-emacs/color-theme/metadata.xml
new file mode 100644
index 000000000000..c438baf3b326
--- /dev/null
+++ b/app-emacs/color-theme/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+</pkgmetadata>