emacs-packages: Remove color-theme from old emacs package infrastructure
This commit is contained in:
parent
d3bc11da92
commit
6dc2d9645c
@ -1,26 +0,0 @@
|
|||||||
{stdenv, fetchurl, emacs}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "color-theme-6.6.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "mirror://savannah/color-theme/${name}.tar.gz";
|
|
||||||
sha256 = "0yx1ghcjc66s1rl0v3d4r1k88ifw591hf814ly3d73acvh15zlsn";
|
|
||||||
};
|
|
||||||
|
|
||||||
# patches from http://aur.archlinux.org/packages.php?ID=54883
|
|
||||||
patches = [ ./fix-build.patch ./gnus-bug.diff ];
|
|
||||||
|
|
||||||
buildInputs = [ emacs ];
|
|
||||||
|
|
||||||
installFlags = [ "ELISPDIR=$(out)/share/emacs/site-lisp" ];
|
|
||||||
installTargets = "install-bin";
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Emacs-lisp mode for skinning your Emacs";
|
|
||||||
homepage = https://www.nongnu.org/color-theme;
|
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
--- a/Makefile 2009-05-15 18:22:49.000000000 +0200
|
|
||||||
+++ b/Makefile 2009-05-16 08:59:36.000000000 +0200
|
|
||||||
@@ -15,6 +15,7 @@
|
|
||||||
TARGET = $(patsubst %.el,%.elc,$(SPECIAL) $(SOURCE))
|
|
||||||
MANUAL = color-theme
|
|
||||||
MISC = AUTHORS COPYING ChangeLog Makefile.defs Makefile $(AUTOLOADFILE).in
|
|
||||||
+LOADPATH = "$(shell pwd)" "$(shell pwd)/themes"
|
|
||||||
#AUTHORS CREDITS HISTORY NEWS README Makefile ChangeLog \
|
|
||||||
#ChangeLog.2005 ChangeLog.2004 ChangeLog.2003 ChangeLog.2002 \
|
|
||||||
#ChangeLog.2001 servers.pl color-theme-auto.in color-theme.texi
|
|
||||||
@@ -47,7 +48,7 @@
|
|
||||||
|
|
||||||
%.elc: %.el
|
|
||||||
@$(EMACS) $(OPTIONCOMPILE) \
|
|
||||||
- --eval '(setq load-path (cons "." load-path))' \
|
|
||||||
+ --eval '(setq load-path (append load-path (list $(LOADPATH))))' \
|
|
||||||
-f batch-byte-compile $<
|
|
||||||
|
|
||||||
%.info: %.texi
|
|
@ -1,28 +0,0 @@
|
|||||||
diff -Naur color-theme-6.6.0.orig/color-theme.el color-theme-6.6.0.new/color-theme.el
|
|
||||||
--- color-theme-6.6.0.orig/color-theme.el 2011-11-18 01:17:29.000000000 +0100
|
|
||||||
+++ color-theme-6.6.0.new/color-theme.el 2011-11-18 01:24:07.000000000 +0100
|
|
||||||
@@ -73,9 +73,10 @@
|
|
||||||
"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)))
|
|
||||||
+(if (fboundp 'replace-in-string)
|
|
||||||
+ (defalias 'color-theme-replace-in-string 'replace-in-string)
|
|
||||||
+ (defsubst color-theme-replace-in-string (target old new &optional literal)
|
|
||||||
+ (replace-regexp-in-string old new target nil literal)))
|
|
||||||
|
|
||||||
;; 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
|
|
||||||
@@ -1626,8 +1627,8 @@
|
|
||||||
(add-to-list 'color-themes
|
|
||||||
(list ',n
|
|
||||||
(upcase-initials
|
|
||||||
- (replace-in-string
|
|
||||||
- (replace-in-string
|
|
||||||
+ (color-theme-replace-in-string
|
|
||||||
+ (color-theme-replace-in-string
|
|
||||||
(symbol-name ',n) "^color-theme-" "") "-" " "))
|
|
||||||
,author))
|
|
||||||
(defun ,n ()
|
|
Loading…
x
Reference in New Issue
Block a user