summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kennedy <mkennedy@gentoo.org>2005-03-20 10:13:02 +0000
committerMatthew Kennedy <mkennedy@gentoo.org>2005-03-20 10:13:02 +0000
commit7a8e06d2f66bcd8c22548a87d6c40c48c4293d34 (patch)
tree775f89ef5f7d9f873fda926d10738b8775ae68dd /dev-lang
parent(Portage version: 2.0.51.19) (Manifest recommit) (diff)
downloadgentoo-2-7a8e06d2f66bcd8c22548a87d6c40c48c4293d34.tar.gz
gentoo-2-7a8e06d2f66bcd8c22548a87d6c40c48c4293d34.tar.bz2
gentoo-2-7a8e06d2f66bcd8c22548a87d6c40c48c4293d34.zip
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/erlang/ChangeLog8
-rw-r--r--dev-lang/erlang/erlang-10.2.0.ebuild34
-rw-r--r--dev-lang/erlang/files/50erlang-gentoo.el4
3 files changed, 39 insertions, 7 deletions
diff --git a/dev-lang/erlang/ChangeLog b/dev-lang/erlang/ChangeLog
index c0c26cc043c8..60f8f7211fb0 100644
--- a/dev-lang/erlang/ChangeLog
+++ b/dev-lang/erlang/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-lang/erlang
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.15 2004/10/08 18:20:17 george Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/ChangeLog,v 1.16 2005/03/20 10:13:02 mkennedy Exp $
+
+ 20 Mar 2005; Matthew Kennedy <mkennedy@gentoo.org>
+ +files/50erlang-gentoo.el, erlang-10.2.0.ebuild:
+ USE support for "emacs"; Resolves Bug #78557
*erlang-10.2.0 (07 Oct 2004)
diff --git a/dev-lang/erlang/erlang-10.2.0.ebuild b/dev-lang/erlang/erlang-10.2.0.ebuild
index 85c5c9d7f5e8..291f4bc63f0e 100644
--- a/dev-lang/erlang/erlang-10.2.0.ebuild
+++ b/dev-lang/erlang/erlang-10.2.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-10.2.0.ebuild,v 1.2 2004/10/08 18:20:17 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-10.2.0.ebuild,v 1.3 2005/03/20 10:13:02 mkennedy Exp $
-inherit eutils gcc flag-o-matic
+inherit eutils gcc flag-o-matic elisp-common
#erlang uses a really weird versioning scheme which caused quite a few problems already
#Thus we do a slight modification converting all letters to digits to make it more sane (see e.g. #26420)
@@ -17,11 +17,14 @@ SRC_URI="http://www.erlang.org/download/${MY_P}-0.tar.gz"
LICENSE="EPL"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
-IUSE="X ssl"
+IUSE="X ssl emacs"
DEPEND=">=dev-lang/perl-5.6.1
X? ( virtual/x11 )
- ssl? ( >=dev-libs/openssl-0.9.7d )"
+ ssl? ( >=dev-libs/openssl-0.9.7d )
+ emacs? ( virtual/emacs )"
+
+SITEFILE=50erlang-gentoo.el
S=${WORKDIR}/${MY_P}_${MyDate}
@@ -34,6 +37,12 @@ src_compile() {
[ "${ARCH}" = "amd64" ] && CHOST="x86_64-unknown-linux-gnu"
econf --enable-threads || die
make || die
+
+ if use emacs; then
+ pushd ${D}/lib/tools/emacs
+ elisp-compile *.el
+ popd
+ fi
}
src_install() {
@@ -57,4 +66,19 @@ src_install() {
## Clean up the no longer needed files
rm ${D}/${ERL_LIBDIR}/Install
+
+ if use emacs; then
+ pushd ${S}
+ elisp-install erlang lib/tools/emacs/*.el
+ elisp-site-file-install ${FILESDIR}/${SITEFILE}
+ popd
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
}
diff --git a/dev-lang/erlang/files/50erlang-gentoo.el b/dev-lang/erlang/files/50erlang-gentoo.el
new file mode 100644
index 000000000000..439d3b33a94e
--- /dev/null
+++ b/dev-lang/erlang/files/50erlang-gentoo.el
@@ -0,0 +1,4 @@
+;;; erlang site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(load-library "erlang-start")