diff options
Diffstat (limited to 'app-emacs/color-theme')
-rw-r--r-- | app-emacs/color-theme/Manifest | 3 | ||||
-rw-r--r-- | app-emacs/color-theme/color-theme-6.6.0-r3.ebuild | 37 | ||||
-rw-r--r-- | app-emacs/color-theme/files/50color-theme-gentoo-6.6.0-r3.el | 119 | ||||
-rw-r--r-- | app-emacs/color-theme/files/color-theme-6.6.0-emacs-29.patch | 114 |
4 files changed, 273 insertions, 0 deletions
diff --git a/app-emacs/color-theme/Manifest b/app-emacs/color-theme/Manifest index 3324b96f09f7..6249302f8f32 100644 --- a/app-emacs/color-theme/Manifest +++ b/app-emacs/color-theme/Manifest @@ -1,6 +1,9 @@ +AUX 50color-theme-gentoo-6.6.0-r3.el 4346 BLAKE2B e04d2a07505c2aaf91ebbd658d936d57fec2e67def0f4da50b34c9486e83b5f1c95909bfd257b492405dfbef5bdd05250baf2064cab009364d18ad0bfde59bbe SHA512 6b74b5408a8d3389ef52a9e3605c81405049a9f8e8e1130ab953d8c1c87326ee1d7ae44304071b8c66bf19f75b781ae48507cb4e5e92b680465098fffa4c8e52 AUX 50color-theme-gentoo.el 4375 BLAKE2B 0a17afad7fd9290dde1992e813711d9bed4b36ec9f2a3d41ab5775dc55e125f7f3cb9b74d1230f1202ee3083b68c29782c3cba955444c04a42b31f3f66b39b89 SHA512 318354c71e75b343eaf90b3be2f94c0b6b93c776afe3289a5c18a5b837478291ce6a8d554a6357c13f14cbe568bf10c5d7ed9690ee8c382ec3cc4aeeac70412a AUX color-theme-6.6.0-emacs-26.patch 1956 BLAKE2B dc7f32c9b0485771f057fb0cd4ddc20f8f154917b3fca5294f535f0420429840ba172000e3ee89e79e3004310ffe36e105028250bb893b35d4866ac52c7a6d67 SHA512 2c20a9565019c0271c9ad8c56fdabd731be9bfce2b9841a1b4e140d44ed13337d14bcb1b7a793ed5bf866335e4212f3d7880bf8c561593a76a2c0990d8b81b0f +AUX color-theme-6.6.0-emacs-29.patch 3513 BLAKE2B 606e3175cf7d4e5cb4af6efe9564130919982fb9c6e3c22c08e1a88c99d8bd614712dd90f48b17f73b036c65dae7220207d47d387e9dafc90a8971a2a04db5a7 SHA512 c2759fb4dd1acef043f75f3f7b9a75e0ab4992297779a074fda61192a89c2fcef0d82140796d35dbf4718b0c8007e7e7386f8b4758c1e3160ac49e979c925da0 AUX color-theme-6.6.0-replace-in-string.patch 1173 BLAKE2B 4e27361d5212afd78e6b94b7b20c3e2512715a280a98fcecaef3b3202ca376b5749c37c3dfb3f1d27673a3421d12de6fc0d7b6c2ee07f1720a32d737558f1e2b SHA512 bdf1ebb03c1fc70bf78adf4886b005780d1c540ac59730e644111f5a3a925b6b05d2e910520b67ec768815f0fecca3a5e617472ca9e415900daf890ca77bc6d1 DIST color-theme-6.6.0.tar.gz 124858 BLAKE2B b98e97b6c02fa9bac30c5eaefaa1724f751e1176b99fcf10e5d44507ada0c82e2cc2df8352c6d605d097a0c3697b071c2cf9bfe32b4a8cbf67cf00dd5c1545e4 SHA512 4faa22900f6ad4a1dd57452470e23b57827d3f02bf2b9e3c4eed6f5693432d6478aa5008e67f219a95412a63fe52dbcad15b0ac7a3b4d39f1d28ceda75e5e76c EBUILD color-theme-6.6.0-r2.ebuild 1005 BLAKE2B 422bc608c5c31017eebd2176dff6783d6480c39e9bcb82811c619f0e702bc0ea9b3759f8574bbeab2509b8a37c1a39e5264fa7d97b4a8928b6f62d5795535333 SHA512 6c68fb1b0072b27c24c6db938244502b0e144b64af4252c499e54b76bdbff762abaa36f053ccfbf44c66e28604d7c4718f843d67c3cc5b3068672716152e95b9 +EBUILD color-theme-6.6.0-r3.ebuild 1059 BLAKE2B fa08f01b009fc03f35b64a5d95d4708f366cba8c5cbecc666fc495f49fbf21261a91708e65fe9f6ba6c6cff7168146fa6b291582a644eabfa35cc148fdec1dd4 SHA512 424cbcfb146f6c7316df80a3e553d8b419184fe514030cd0bc1f8ba3b3c245549236fa35b1741fd47cac719e5d418cdc6b77082a792cbd8a01e8910bc7aea287 MISC metadata.xml 283 BLAKE2B 81c49021199f71096079a27f9121390fb8c1285c54b9478583ff2d647277fa106ef12456d7097c4be092fc48b514a1adcf855ca0fac911598232ef9eb7f102c0 SHA512 f32b303760addf5d4db8d18bd10fb677353cdfa4c5e545d47804ef756cf5e5a21f8b8efb631b08f802185913ceb98da820e404e06eb03d01fe9ea85c10d1ac13 diff --git a/app-emacs/color-theme/color-theme-6.6.0-r3.ebuild b/app-emacs/color-theme/color-theme-6.6.0-r3.ebuild new file mode 100644 index 000000000000..41b2cc7a1c60 --- /dev/null +++ b/app-emacs/color-theme/color-theme-6.6.0-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp readme.gentoo-r1 + +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 ~amd64-linux ~x86-linux" + +PATCHES=( + "${FILESDIR}"/${P}-replace-in-string.patch + "${FILESDIR}"/${P}-emacs-26.patch + "${FILESDIR}"/${P}-emacs-29.patch +) +ELISP_REMOVE="color-theme-autoloads.*" +SITEFILE="50${PN}-gentoo-6.6.0-r3.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 + + local 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-6.6.0-r3.el b/app-emacs/color-theme/files/50color-theme-gentoo-6.6.0-r3.el new file mode 100644 index 000000000000..b516108fdf9b --- /dev/null +++ b/app-emacs/color-theme/files/50color-theme-gentoo-6.6.0-r3.el @@ -0,0 +1,119 @@ +(add-to-list 'load-path "@SITELISP@") + +(autoload '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. + +\(fn &optional ARG)" t) + +(autoload '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) + +(autoload '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. + +\(fn EVENT)" t) + +(autoload '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) + +(autoload '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) + +\(fn &optional BUF)" t) + +(autoload '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) + +(autoload '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.") + +(autoload '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. + +\(fn THEME-A THEME-B)" t) + +(autoload '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. + +\(fn THEME)") + +(autoload 'color-theme-submit "color-theme" "\ +Submit your color-theme to the maintainer." t) + +(autoload 'color-theme-initialize "color-theme" "\ +Initialize the color theme package by loading color-theme-libraries." t) diff --git a/app-emacs/color-theme/files/color-theme-6.6.0-emacs-29.patch b/app-emacs/color-theme/files/color-theme-6.6.0-emacs-29.patch new file mode 100644 index 000000000000..7b2e601e39cf --- /dev/null +++ b/app-emacs/color-theme/files/color-theme-6.6.0-emacs-29.patch @@ -0,0 +1,114 @@ +--- color-theme-6.6.0/color-theme.el ++++ color-theme-6.6.0/color-theme.el +@@ -50,7 +50,7 @@ + (require 'reporter) + (require 'sendmail)) + +-(require 'cl); set-difference is a function... ++(require 'cl-seq); cl-set-difference is a function... + + ;; for custom-face-attributes-get or face-custom-attributes-get + (require 'cus-face) +@@ -143,7 +143,7 @@ + "Regexp that matches variable names. + Only variables that match this regexp can be changed as part of a color + theme. In addition to matching this name, the variables have to be user +-variables (see function `user-variable-p')." ++variables (see function `custom-variable-p')." + :type 'regexp + :group 'color-theme) + +@@ -174,7 +174,7 @@ + frames with different color themes. + + setup: +- \(require 'color-theme) ++ \(require \\='color-theme) + ;; set default color theme + \(color-theme-blue-sea) + ;; create some frames with different color themes +@@ -430,7 +430,7 @@ + If you defined your own color theme and want to add it to this list, + use something like this: + +- (add-to-list 'color-themes '(color-theme-gnome2 \"Gnome2\" \"Alex\"))") ++ (add-to-list \\='color-themes \\='(color-theme-gnome2 \"Gnome2\" \"Alex\"))") + + ;;; Functions + +@@ -513,7 +513,7 @@ + If you want to install the color theme permanently, put the call to the + color theme function into your ~/.emacs: + +- \(require 'color-theme) ++ \(require \\='color-theme) + \(color-theme-gnome2) + + If you worry about the size of color-theme.el: You are right. Use +@@ -607,7 +607,7 @@ + + If the optional argument EXCLUDE is non-nil, then the sense is + reversed: only non-matching elements will be retained." +- (let (elem new-list) ++ (let (elem new-list name) + (dolist (elem old-list) + (setq name (symbol-name (if (listp elem) (car elem) elem))) + (when (or (and (not exclude) +@@ -861,12 +861,12 @@ + "Return a list of variable settings usable in a color theme. + Such an alist may be installed by `color-theme-install-variables'. + The variable names must match `color-theme-legal-variables', and the +-variable must be a user variable according to `user-variable-p'." ++variable must be a user variable according to `custom-variable-p'." + (let ((vars) + (val)) + (mapatoms (lambda (v) + (and (boundp v) +- (user-variable-p v) ++ (custom-variable-p v) + (string-match color-theme-legal-variables + (symbol-name v)) + (setq val (eval v)) +@@ -952,12 +952,12 @@ + + Example: + +- \(require 'color-theme) ++ \(require \\='color-theme) + \(defun my-color-theme () + \"Color theme by Alex Schroeder, created 2000-05-17.\" + \(interactive) + \(color-theme-install +- '(... ++ \\='(... + ... + ...))) + \(my-color-theme) +@@ -967,7 +967,7 @@ + + Example: + +- \(require 'color-theme) ++ \(require \\='color-theme) + \(color-theme-gnome2)" + (interactive) + (message "Pretty printing current color theme function...") +@@ -1495,15 +1495,15 @@ + (color-theme-get-vars) + (color-theme-get-face-definitions))) + (delete-frame)) +- (let ((params (set-difference ++ (let ((params (cl-set-difference + (color-theme-frame-params theme-b) + (color-theme-frame-params theme-a) + :test 'equal)) +- (vars (set-difference ++ (vars (cl-set-difference + (color-theme-variables theme-b) + (color-theme-variables theme-a) + :test 'equal)) +- (faces (set-difference ++ (faces (cl-set-difference + (color-theme-faces theme-b) + (color-theme-faces theme-a) + :test 'equal))) |