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-admin/emacs-updater/
Date: Thu,  5 Jun 2014 17:00:25 +0000 (UTC)	[thread overview]
Message-ID: <1401987574.36a7bc3ebe65a379d41da0cb5ea6d48f5ff62c3b.ulm@gentoo> (raw)

commit:     36a7bc3ebe65a379d41da0cb5ea6d48f5ff62c3b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  5 16:59:34 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jun  5 16:59:34 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=36a7bc3e

Add missing dependency on app-misc/getopt for BSD. Update GETOPT variable in script if necessary.

Package-Manager: portage-2.2.10

---
 app-admin/emacs-updater/ChangeLog                 |  4 ++++
 app-admin/emacs-updater/emacs-updater-9999.ebuild | 11 +++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/app-admin/emacs-updater/ChangeLog b/app-admin/emacs-updater/ChangeLog
index 6008477..0ac3e3b 100644
--- a/app-admin/emacs-updater/ChangeLog
+++ b/app-admin/emacs-updater/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  05 Jun 2014; Ulrich Müller <ulm@gentoo.org> emacs-updater-9999.ebuild:
+  Add missing dependency on app-misc/getopt for BSD. Update GETOPT variable in
+  script if necessary.
+
   19 Jan 2014; Ulrich Müller <ulm@gentoo.org> emacs-updater-9999.ebuild:
   Switch from package.mask to empty KEYWORDS.
 

diff --git a/app-admin/emacs-updater/emacs-updater-9999.ebuild b/app-admin/emacs-updater/emacs-updater-9999.ebuild
index 9b96598..b24787e 100644
--- a/app-admin/emacs-updater/emacs-updater-9999.ebuild
+++ b/app-admin/emacs-updater/emacs-updater-9999.ebuild
@@ -16,15 +16,22 @@ HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Emacs"
 LICENSE="GPL-2+"
 SLOT="0"
 
-RDEPEND=">=app-portage/portage-utils-0.3
+DEPEND="|| ( sys-apps/util-linux app-misc/getopt )"
+RDEPEND="${DEPEND}
+	>=app-portage/portage-utils-0.3
 	virtual/emacs"
 
 S="${WORKDIR}/${PN}"
 
 src_prepare() {
+	if ! has_version sys-apps/util-linux; then
+		# BSD ships a dumb getopt(1), so use getopt-long instead
+		sed -i -e '/^GETOPT=/s/getopt/&-long/' emacs-updater || die
+	fi
+
 	if [[ -n ${EPREFIX} ]]; then
 		sed -i -e "1s:/:${EPREFIX%/}/:" \
-			-e "s:^\(EMACS\|SITELISP\)=:&${EPREFIX%/}:" \
+			-e "s:^\([[:upper:]]*=\)/:\1${EPREFIX%/}/:" \
 			emacs-updater || die
 	fi
 }


                 reply	other threads:[~2014-06-05 17:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1401987574.36a7bc3ebe65a379d41da0cb5ea6d48f5ff62c3b.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