summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-07-02 06:34:42 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-07-02 06:34:42 +0000
commit96647e5d82ac6a1e61841407725a493d19ddcfc2 (patch)
tree29354fc4d0ae95ec5a8e129cc8c0360dcdf70602 /app-emacs/csharp-mode
parentAdded info messages to make waiting times a bit shorter;replaced some manual ... (diff)
downloadgentoo-2-96647e5d82ac6a1e61841407725a493d19ddcfc2.tar.gz
gentoo-2-96647e5d82ac6a1e61841407725a493d19ddcfc2.tar.bz2
gentoo-2-96647e5d82ac6a1e61841407725a493d19ddcfc2.zip
using new-style virtual dependency
(Portage version: 2.1.2.9)
Diffstat (limited to 'app-emacs/csharp-mode')
-rw-r--r--app-emacs/csharp-mode/ChangeLog8
-rw-r--r--app-emacs/csharp-mode/csharp-mode-0.6.0-r1.ebuild35
-rw-r--r--app-emacs/csharp-mode/csharp-mode-0.6.0.ebuild19
-rw-r--r--app-emacs/csharp-mode/files/digest-csharp-mode-0.6.0-r1 (renamed from app-emacs/csharp-mode/files/digest-csharp-mode-0.6.0)0
4 files changed, 42 insertions, 20 deletions
diff --git a/app-emacs/csharp-mode/ChangeLog b/app-emacs/csharp-mode/ChangeLog
index 28acc1b9fce4..d005279da2c3 100644
--- a/app-emacs/csharp-mode/ChangeLog
+++ b/app-emacs/csharp-mode/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emacs/csharp-mode
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/csharp-mode/ChangeLog,v 1.2 2007/04/26 16:06:32 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/csharp-mode/ChangeLog,v 1.3 2007/07/02 06:34:42 opfer Exp $
+
+*csharp-mode-0.6.0-r1 (02 Jul 2007)
+
+ 02 Jul 2007; Christian Faulhammer <opfer@gentoo.org>
+ -csharp-mode-0.6.0.ebuild, +csharp-mode-0.6.0-r1.ebuild:
+ using new-style virtual dependency
*csharp-mode-0.6.0 (26 Apr 2007)
diff --git a/app-emacs/csharp-mode/csharp-mode-0.6.0-r1.ebuild b/app-emacs/csharp-mode/csharp-mode-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..3634503fbb25
--- /dev/null
+++ b/app-emacs/csharp-mode/csharp-mode-0.6.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/csharp-mode/csharp-mode-0.6.0-r1.ebuild,v 1.1 2007/07/02 06:34:42 opfer Exp $
+
+inherit elisp versionator
+
+DESCRIPTION="A derived Emacs mode implementing most of the C# rules"
+HOMEPAGE="http://mfgames.com/linux/csharp-mode"
+SRC_URI="http://mfgames.com/linux/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+NEED_CCMODE=5.30
+
+DEPEND="|| ( >=app-emacs/cc-mode-${NEED_CCMODE} >=virtual/emacs-22 )"
+RDEPEND="${DEPEND}"
+
+SIMPLE_ELISP=t
+SITEFILE=80${PN}-gentoo.el
+
+pkg_setup () {
+ local HAVE_CCMODE
+ HAVE_CCMODE=$(emacs -batch -q \
+ --eval "(and (require 'cc-mode nil t) (princ c-version))")
+ if [ -z "${HAVE_CCMODE}" ] \
+ || ! version_is_at_least "${NEED_CCMODE}" "${HAVE_CCMODE}"; then
+ eerror "This package needs at least cc-mode version ${NEED_CCMODE}."
+ eerror "You should either install package app-emacs/cc-mode,"
+ eerror "or use \"eselect emacs\" to select an Emacs version >= 22."
+ die "cc-mode version ${HAVE_CCMODE} is too low."
+ fi
+}
diff --git a/app-emacs/csharp-mode/csharp-mode-0.6.0.ebuild b/app-emacs/csharp-mode/csharp-mode-0.6.0.ebuild
deleted file mode 100644
index 25d04f41fdea..000000000000
--- a/app-emacs/csharp-mode/csharp-mode-0.6.0.ebuild
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/csharp-mode/csharp-mode-0.6.0.ebuild,v 1.1 2007/04/26 16:06:32 ulm Exp $
-
-inherit elisp
-
-DESCRIPTION="A derived Emacs mode implementing most of the C# rules"
-HOMEPAGE="http://mfgames.com/linux/csharp-mode"
-SRC_URI="http://mfgames.com/linux/releases/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
-
-DEPEND="|| ( app-editors/emacs-cvs app-emacs/cc-mode )"
-
-SIMPLE_ELISP=t
-SITEFILE=80${PN}-gentoo.el
diff --git a/app-emacs/csharp-mode/files/digest-csharp-mode-0.6.0 b/app-emacs/csharp-mode/files/digest-csharp-mode-0.6.0-r1
index dc958b922b4a..dc958b922b4a 100644
--- a/app-emacs/csharp-mode/files/digest-csharp-mode-0.6.0
+++ b/app-emacs/csharp-mode/files/digest-csharp-mode-0.6.0-r1