public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs:master commit in: app-emacs/emacs-common-gentoo/
Date: Fri, 15 Nov 2013 13:42:58 +0000 (UTC)	[thread overview]
Message-ID: <1384523038.e94e71c712dd52c9f1c6b9543eff519898f2e08f.ulm@gentoo> (raw)

commit:     e94e71c712dd52c9f1c6b9543eff519898f2e08f
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 15 13:43:58 2013 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 13:43:58 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=e94e71c7

Install initial site-gentoo.el file from tarball.

Package-Manager: portage-2.2.7

---
 app-emacs/emacs-common-gentoo/ChangeLog                       |  3 +++
 app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild | 10 ++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/app-emacs/emacs-common-gentoo/ChangeLog b/app-emacs/emacs-common-gentoo/ChangeLog
index 613b87d..9a7611a 100644
--- a/app-emacs/emacs-common-gentoo/ChangeLog
+++ b/app-emacs/emacs-common-gentoo/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  15 Nov 2013; Ulrich Müller <ulm@gentoo.org> emacs-common-gentoo-9999.ebuild:
+  Install initial site-gentoo.el file from tarball.
+
   13 Nov 2013; Ulrich Müller <ulm@gentoo.org> emacs-common-gentoo-9999.ebuild:
   Refuse installation if the site-start.el file is still in its old location;
   we have warned about this since almost two years.

diff --git a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild
index 8994fe0..f60db4f 100644
--- a/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild
+++ b/app-emacs/emacs-common-gentoo/emacs-common-gentoo-9999.ebuild
@@ -34,6 +34,7 @@ pkg_setup() {
 src_install() {
 	insinto "${SITELISP}"
 	doins subdirs.el
+	newins site-gentoo.el site-gentoo.el.orig
 
 	keepdir /etc/emacs
 	insinto /etc/emacs
@@ -93,8 +94,13 @@ site-start-modified-p() {
 
 pkg_preinst() {
 	# make sure that site-gentoo.el exists since site-start.el requires it
-	elisp-site-regen
-	cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die
+	if [[ -d ${EROOT}${SITELISP} ]]; then
+		elisp-site-regen
+		cp "${EROOT}${SITELISP}/site-gentoo.el" "${ED}${SITELISP}/" || die
+		rm "${ED}${SITELISP}/site-gentoo.el.orig" || die
+	else
+		mv "${ED}${SITELISP}"/site-gentoo.el{.orig,} || die
+	fi
 
 	if use games; then
 		local f


             reply	other threads:[~2013-11-15 13:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 13:42 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-21  9:45 [gentoo-commits] proj/emacs:master commit in: app-emacs/emacs-common-gentoo/ Ulrich Müller
2015-07-12  6:53 Ulrich Müller
2015-02-22 18:34 Ulrich Müller
2015-02-22 18:26 Ulrich Müller
2015-02-21 12:03 Ulrich Müller
2015-02-20 11:12 Ulrich Müller
2015-02-19 22:07 Ulrich Müller
2015-02-10 14:12 Ulrich Müller
2015-02-09 12:09 Ulrich Müller
2015-01-23  6:10 Ulrich Müller
2015-01-21 22:13 Ulrich Müller
2015-01-21 21:43 Ulrich Müller
2015-01-21 21:43 Ulrich Müller
2013-11-16 12:41 Ulrich Müller
2013-11-13  9:47 Ulrich Müller
2013-10-31 15:07 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384523038.e94e71c712dd52c9f1c6b9543eff519898f2e08f.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox