Update of /cvsroot/fink/packages/dists/stable/main/finkinfo/editors
In directory usw-pr-cvs1:/tmp/cvs-serv9969
Added Files:
emacsen-common-1.4.13-2.info emacsen-common-1.4.13-2.patch
Log Message:
Moved in from unstable
--- NEW FILE: emacsen-common-1.4.13-2.info ---
Package: emacsen-common
Version: 1.4.13
Revision: 2
Suggests: emacsen
Source: http://fink.sourceforge.net/bindist/source/%n_%v.tar.gz
SourceDirectory: %n-%v
ConfFiles: %p/etc/emacs/site-start.el
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch -p1
DocFiles: debian/changelog debian-emacs-policy debian/copyright
CompileScript: <<
perl -wc emacs-install
perl -wc emacs-package-install
perl -wc generate-install-list
<<
InstallScript: <<
mkdir -p %i/etc/emacs/site-start.d
mkdir -p %i/etc/site-start.d
mkdir -p %i/lib/%n/packages/install
mkdir -p %i/lib/%n/packages/remove
mkdir -p %i/share/doc/%n
mkdir -p %i/share/emacs/site-lisp
install -m 644 site-start.el %i/etc/emacs/
install -m 644 00debian-vars.el %i/etc/emacs/site-start.d/00fink-vars.el
install -m 755 emacs-install %i/lib/%n/
install -m 755 emacs-package-install %i/lib/%n/
(cd %i/lib/%n/; ln -s emacs-install emacs-remove)
(cd %i/lib/%n/; ln -s emacs-package-install emacs-package-remove)
install -m 755 generate-install-list %i/lib/%n/
install -m 644 debian-startup.el %i/share/emacs/site-lisp/fink-startup.el
install -m 755 emacsen-common.install %i/lib/%n/packages/install/emacsen-common
install -m 755 emacsen-common.remove %i/lib/%n/packages/remove/emacsen-common
<<
#
PostInstScript: <<
mkdir -p %p/var/lib/emacsen-common
if [ -e /usr/local ]
then
if [ ! -e /usr/local/share ]
then
if mkdir -p /usr/local/share 2>/dev/null
then
chown root:staff /usr/local/share
chmod 2775 /usr/local/share
fi
fi
if [ ! -e /usr/local/share/emacs ]
then
if mkdir /usr/local/share/emacs 2>/dev/null
then
chown root:staff /usr/local/share/emacs
chmod 2775 /usr/local/share/emacs
fi
fi
if [ ! -e /usr/local/share/emacs/site-lisp ]
then
if mkdir /usr/local/share/emacs/site-lisp 2>/dev/null
then
chown root:staff /usr/local/share/emacs/site-lisp
chmod 2775 /usr/local/share/emacs/site-lisp
fi
fi
if [ ! -e %p/var/lib/emacsen-common/installed-flavors ]
then
chmod 2775 /usr/local/share/emacs
echo -n "" > %p/var/lib/emacsen-common/installed-flavors
chmod 644 %p/var/lib/emacsen-common/installed-flavors
echo -n "" > %p/var/lib/emacsen-common/installed-flavors
fi
fi
%p/lib/emacsen-common/emacs-package-install emacsen-common
# Clean up dead emacs info entry...
#install-info --quiet --remove emacs
<<
PreRmScript: <<
%p/lib/emacsen-common/emacs-package-remove emacsen-common
(rmdir /usr/local/share/emacs/site-lisp 2>/dev/null && rmdir /usr/local/share/emacs
2>/dev/null) || true
<<
PostRmScript: <<
if [ "$1" = purge ]
then
if [ -e %p/var/lib/emacsen-common/installed-flavors ]
then
rm -f %p/var/lib/emacsen-common/installed-flavors
rmdir %p/var/lib/emacsen-common
fi
fi
<<
#
Description: Common facilities for all emacsen.
DescDetail: <<
This package contains code that is needed by all the (x)emacs packages.
It provides a unified mechanism for installing optional emacs-lisp
add-on packages, with facilities for byte-compiling code and making
it available to all installed (x)emacs variants.
<<
DescPort: <<
This package is derived from the Debian emacsen-common package, with a couple
of changes: 1) needs to be convinced to live under the fink prefix directory,
and 2) elisp functions with debian in the name were changed to fink (e.g.,
debian-startup became fink-startup).
The file 00fink-vars.el does very little at this point (none of its Debian
counterpart's functions are needed under OS X), but is being preserved for
future expansion.
<<
DescUsage: <<
The only current documentation is the debian-emacs-policy paper, which gives
a basic idea of what is required of emacs-maintainers and add-on package
maintainers in order to take advantage of the service.
A fink-specific revision of the document will (hopefully) be forthcoming...
<<
License: GPL
Homepage: http://packages.debian.org/unstable/editors/emacsen-common.html
Maintainer: Christian Swinehart <[EMAIL PROTECTED]>
--- NEW FILE: emacsen-common-1.4.13-2.patch ---
diff -Naur emacsen-common-1.4.13.orig/00debian-vars.el
emacsen-common-1.4.13/00debian-vars.el
--- emacsen-common-1.4.13.orig/00debian-vars.el Tue Feb 22 17:42:00 2000
+++ emacsen-common-1.4.13/00debian-vars.el Wed Dec 12 20:32:19 2001
@@ -1,6 +1,6 @@
-;; 00debian-vars.el
+;; 00fink-vars.el
;;
-;; Initialize some emacs variables from debian policy files.
+;; Initialize some emacs variables from fink policy files.
;;
;; Copyright (C) 1997, Frederic Lepied <[EMAIL PROTECTED]>
;;
@@ -20,7 +20,7 @@
;;=============================================================================
;; Configuration section.
;;=============================================================================
-(defun debian-file->string (name &optional func)
+(defun fink-file->string (name &optional func)
"Convert a file into a string"
(interactive "fFile name : ")
(let ((filename (expand-file-name name)))
@@ -36,7 +36,7 @@
(kill-buffer buf)
ret))))
-(defun debian-clean-mailname ()
+(defun fink-clean-mailname ()
(while (search-forward "\n" nil t)
(replace-match "" nil t)))
@@ -45,15 +45,15 @@
;; policy/ch-binarypkg.html, 3.5 Maintainer scripts, /etc/news/server
(let ((mailname
- (debian-file->string "/etc/mailname" (function debian-clean-mailname))))
+ (fink-file->string "@PREFIX@/etc/mailname" (function fink-clean-mailname))))
(if (not mailname)
- (progn
- (message "No /etc/mailname. Reverting to default...")
- (sit-for 3))
+ ;;(progn
+ ;;(message "No @PREFIX@/etc/mailname. Reverting to default...")
+ ;;(sit-for 3))
(setq mail-host-address mailname)))
;; Don't need to check NNTPSERVER for override, gnus does that for us.
-(if (file-readable-p "/etc/news/server")
- (defvar gnus-nntpserver-file "/etc/news/server"))
+(if (file-readable-p "@PREFIX@/etc/news/server")
+ (defvar gnus-nntpserver-file "@PREFIX@/etc/news/server"))
-;;; 00debian-vars.el ends here
+;;; 00fink-vars.el ends here
diff -Naur emacsen-common-1.4.13.orig/debian-startup.el
emacsen-common-1.4.13/debian-startup.el
--- emacsen-common-1.4.13.orig/debian-startup.el Tue Jul 17 12:12:40 2001
+++ emacsen-common-1.4.13/debian-startup.el Wed Dec 12 15:19:02 2001
@@ -1,4 +1,4 @@
-;;; debian-startup.el --- Debian specific emacsen startup code.
+;;; fink-startup.el --- Fink specific emacsen startup code.
;; Copyright (C) 1998 Rob Browning
@@ -29,7 +29,7 @@
;; This file contains startup code needed by all the various flavors
;; of Emacs for a Debian system.
-(defun debian-unique-strings (list)
+(defun fink-unique-strings (list)
"Takes a list of strings and returns the list with *adjacent*
duplicates removed."
@@ -37,10 +37,10 @@
(if (null list)
'()
(if (string= (car list) (car (cdr list)))
- (debian-unique-strings (cdr list))
- (cons (car list) (debian-unique-strings (cdr list))))))
+ (fink-unique-strings (cdr list))
+ (cons (car list) (fink-unique-strings (cdr list))))))
-(defun debian-run-directories (&rest dirs)
+(defun fink-run-directories (&rest dirs)
"Load each file of the form XXfilename.el or XXfilename.elc in any
of the dirs, where XX must be a number. The files will be run in
@@ -73,7 +73,7 @@
files)))
;; Finally sort them, and delete duplicates
- (base-names (debian-unique-strings (sort stripped-names 'string<)))
+ (base-names (fink-unique-strings (sort stripped-names 'string<)))
(old-load-path load-path))
@@ -103,9 +103,9 @@
load-path))))
(setq load-path (append add-on-package-paths old-load-path))))))
-(defun debian-startup (flavor)
+(defun fink-startup (flavor)
- ;; Our handling of debian-emacs-flavor here is truly weird, but we
+ ;; Our handling of fink-emacs-flavor here is truly weird, but we
;; have to do it like this because some of the emacsen flavors
;; didn't DWIM in their startup sequence. I wasn't as clear as I
;; should have been in debian-policy, but they were also
@@ -113,15 +113,15 @@
;; It's even weirder now. I've changed policy back to the old way,
;; but I'm also doing some sanity checking here and making sure that
- ;; even debian-emacs-flavor gets set no matter what. I'm in a rush
+ ;; even fink-emacs-flavor gets set no matter what. I'm in a rush
;; right now, but I'll come back later and make all this cleaner and
;; better documented. Sorry.
- (if (not (boundp 'debian-emacs-flavor))
- (defconst debian-emacs-flavor flavor
- "A symbol representing the particular debian flavor of emacs that's
+ (if (not (boundp 'fink-emacs-flavor))
+ (defconst fink-emacs-flavor flavor
+ "A symbol representing the particular fink flavor of emacs that's
running. Something like 'emacs20, 'xemacs20, etc.")
- (let ((common-dir "/etc/emacs/site-start.d")
- (flavor-dir (concat "/etc/" (symbol-name flavor) "/site-start.d")))
- (debian-run-directories flavor-dir common-dir))))
+ (let ((common-dir "@PREFIX@/etc/emacs/site-start.d")
+ (flavor-dir (concat "@PREFIX@/etc/" (symbol-name flavor) "/site-start.d")))
+ (fink-run-directories flavor-dir common-dir))))
diff -Naur emacsen-common-1.4.13.orig/emacs-install emacsen-common-1.4.13/emacs-install
--- emacsen-common-1.4.13.orig/emacs-install Tue Feb 22 17:42:00 2000
+++ emacsen-common-1.4.13/emacs-install Wed Dec 12 15:17:57 2001
@@ -7,8 +7,8 @@
# Let emacs-package-install/remove know what's going on.
$ENV{'CURRENTLY_HANDLING_EMACSEN'} = "Yes";
-my $lib_dir = "/usr/lib/emacsen-common";
-my $var_dir = "/var/lib/emacsen-common";
+my $lib_dir = "@PREFIX@/lib/emacsen-common";
+my $var_dir = "@PREFIX@/var/lib/emacsen-common";
my $flavor = $ARGV[0];
my $action = 'install';
$action = 'remove' if $0 =~ /remove$/o;
diff -Naur emacsen-common-1.4.13.orig/emacs-package-install
emacsen-common-1.4.13/emacs-package-install
--- emacsen-common-1.4.13.orig/emacs-package-install Tue Feb 22 17:42:00 2000
+++ emacsen-common-1.4.13/emacs-package-install Wed Dec 12 15:17:57 2001
@@ -7,8 +7,8 @@
my $currently_handling_emacsen = $ENV{'CURRENTLY_HANDLING_EMACSEN'};
-my $lib_dir = "/usr/lib/emacsen-common";
-my $var_dir = "/var/lib/emacsen-common";
+my $lib_dir = "@PREFIX@/lib/emacsen-common";
+my $var_dir = "@PREFIX@/var/lib/emacsen-common";
my $pkg = $ARGV[0];
my $action = 'install';
$action = 'remove' if $0 =~ /remove$/o;
diff -Naur emacsen-common-1.4.13.orig/emacsen-common.install
emacsen-common-1.4.13/emacsen-common.install
--- emacsen-common-1.4.13.orig/emacsen-common.install Tue Feb 22 17:42:00 2000
+++ emacsen-common-1.4.13/emacsen-common.install Wed Dec 12 15:17:57 2001
@@ -14,33 +14,33 @@
# If we had .el files that needed byte compiling in the package dir,
# this is how we'd handle it.
- #cp /usr/share/emacs/site-lisp/emacsen-common/*.el \
- # /usr/share/${FLAVOR}/site-lisp/emacsen-common
+ #cp @PREFIX@/share/emacs/site-lisp/emacsen-common/*.el \
+ # @PREFIX@/share/${FLAVOR}/site-lisp/emacsen-common
#${FLAVOR} ${byte_compile_options} \
- # /usr/share/${FLAVOR}/site-lisp/emacsen-common/*.el
- #rm /usr/share/${FLAVOR}/site-lisp/emacsen-common/*.el
+ # @PREFIX@/share/${FLAVOR}/site-lisp/emacsen-common/*.el
+ #rm @PREFIX@/share/${FLAVOR}/site-lisp/emacsen-common/*.el
# Normal add-on packages should usually *not* scatter their files
# directly in site-lisp, but should use a package subdir. This
# package/file is an exception.
# Remove potentially stale versions.
- rm -f /etc/${FLAVOR}/site-start.d/00debian-vars.elc \
- /usr/share/${FLAVOR}/site-lisp/debian-startup.elc
+ rm -f @PREFIX@/etc/${FLAVOR}/site-start.d/00fink-vars.elc \
+ @PREFIX@/share/${FLAVOR}/site-lisp/fink-startup.elc
# Make temporary copies of the .el files
- cp /etc/emacs/site-start.d/00debian-vars.el /etc/${FLAVOR}/site-start.d
- cp /usr/share/emacs/site-lisp/debian-startup.el \
- /usr/share/${FLAVOR}/site-lisp/debian-startup.el
+ cp @PREFIX@/etc/emacs/site-start.d/00fink-vars.el
+@PREFIX@/etc/${FLAVOR}/site-start.d
+ cp @PREFIX@/share/emacs/site-lisp/fink-startup.el \
+ @PREFIX@/share/${FLAVOR}/site-lisp/fink-startup.el
# byte compile everything.
${FLAVOR} ${byte_compile_options} \
- /etc/${FLAVOR}/site-start.d/00debian-vars.el \
- /usr/share/${FLAVOR}/site-lisp/debian-startup.el
+ @PREFIX@/etc/${FLAVOR}/site-start.d/00fink-vars.el \
+ @PREFIX@/share/${FLAVOR}/site-lisp/fink-startup.el
# Remove the redundant .el files.
- rm /etc/${FLAVOR}/site-start.d/00debian-vars.el \
- /usr/share/${FLAVOR}/site-lisp/debian-startup.el
+ rm @PREFIX@/etc/${FLAVOR}/site-start.d/00fink-vars.el \
+ @PREFIX@/share/${FLAVOR}/site-lisp/fink-startup.el
fi
exit 0;
diff -Naur emacsen-common-1.4.13.orig/emacsen-common.remove
emacsen-common-1.4.13/emacsen-common.remove
--- emacsen-common-1.4.13.orig/emacsen-common.remove Tue Feb 22 17:42:00 2000
+++ emacsen-common-1.4.13/emacsen-common.remove Wed Dec 12 15:17:57 2001
@@ -9,8 +9,8 @@
if [ ${FLAVOR} != emacs ]
then
echo emacsen-common: purging byte-compiled files for ${FLAVOR}
- rm -f /etc/${FLAVOR}/site-start.d/00debian-vars.elc \
- /usr/share/${FLAVOR}/site-lisp/debian-startup.elc
+ rm -f @PREFIX@/etc/${FLAVOR}/site-start.d/00fink-vars.elc \
+ @PREFIX@/share/${FLAVOR}/site-lisp/fink-startup.elc
fi
exit 0;
diff -Naur emacsen-common-1.4.13.orig/generate-install-list
emacsen-common-1.4.13/generate-install-list
--- emacsen-common-1.4.13.orig/generate-install-list Tue Jul 17 12:12:40 2001
+++ emacsen-common-1.4.13/generate-install-list Wed Dec 12 15:17:57 2001
@@ -8,8 +8,8 @@
# it will sort them according to their dependencies. It will also add
# in other add-on packages that aren't mentioned, but are needed.
-my $lib_dir = "/usr/lib/emacsen-common";
-my $var_dir = "/var/lib/emacsen-common";
+my $lib_dir = "@PREFIX@/lib/emacsen-common";
+my $var_dir = "@PREFIX@/var/lib/emacsen-common";
my $installed_add_on_pkgs = undef;
sub cwd {
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits