diff options
author | 2013-12-25 00:41:10 +0900 | |
---|---|---|
committer | 2013-12-25 00:41:10 +0900 | |
commit | 4cfeab7983e1440f0c23649ac1a2d7376d283f69 (patch) | |
tree | cbae6c4a2fb49d2b800b4548ab436df3c3a8d373 /app-emacs | |
parent | Merge pull request #10 from omasanori/vim (diff) | |
download | rust-4cfeab7983e1440f0c23649ac1a2d7376d283f69.tar.gz rust-4cfeab7983e1440f0c23649ac1a2d7376d283f69.tar.bz2 rust-4cfeab7983e1440f0c23649ac1a2d7376d283f69.zip |
Add app-emacs/rust-mode.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/rust-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/rust-mode/files/50rust-mode-gentoo.el | 2 | ||||
-rw-r--r-- | app-emacs/rust-mode/rust-mode-0.8.ebuild | 30 | ||||
-rw-r--r-- | app-emacs/rust-mode/rust-mode-9999.ebuild | 30 |
4 files changed, 63 insertions, 0 deletions
diff --git a/app-emacs/rust-mode/Manifest b/app-emacs/rust-mode/Manifest new file mode 100644 index 0000000..33476d6 --- /dev/null +++ b/app-emacs/rust-mode/Manifest @@ -0,0 +1 @@ +DIST rust-0.8.tar.gz 16720822 SHA256 42f791ab1537357fe0f63d67ffe6bcb64ecf16b2bd3f1484ab589823f5914182 SHA512 494817e045af87055ca22a6b15799f14ab4e5a4d1e7be883c211bfbbc2b9b1c498711d91c40c130dd8b8307f226d4ed6100b51064aab8a9f3939f19bd829b0e4 WHIRLPOOL 907838591486cf6336b697bab338ca3aa970f2c0daa352c78dba53ccaa5bb77b3f1e2f110b345bab67e4476846a30b71c612ee0726176b23e49bc3fd4cba17e3 diff --git a/app-emacs/rust-mode/files/50rust-mode-gentoo.el b/app-emacs/rust-mode/files/50rust-mode-gentoo.el new file mode 100644 index 0000000..8686a13 --- /dev/null +++ b/app-emacs/rust-mode/files/50rust-mode-gentoo.el @@ -0,0 +1,2 @@ +(add-to-list 'load-path "@SITELISP@") +(require 'rust-mode) diff --git a/app-emacs/rust-mode/rust-mode-0.8.ebuild b/app-emacs/rust-mode/rust-mode-0.8.ebuild new file mode 100644 index 0000000..eb5eea0 --- /dev/null +++ b/app-emacs/rust-mode/rust-mode-0.8.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit elisp + +DESCRIPTION="Emacs major mode for editing Rust code" +HOMEPAGE="http://www.rust-lang.org/" + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +if [[ ${PV} != 9999 ]]; then + MY_P="rust-${PV}" + SRC_URI="http://static.rust-lang.org/dist/${MY_P}.tar.gz" + + S="${WORKDIR}/${MY_P}/src/etc/emacs" +else + EGIT_SOURCEDIR="${S}" + S="${S}/src/etc/emacs" + + inherit git-2 + + EGIT_REPO_URI="git://github.com/mozilla/rust.git" +fi + +SITEFILE="50${PN}-gentoo.el" diff --git a/app-emacs/rust-mode/rust-mode-9999.ebuild b/app-emacs/rust-mode/rust-mode-9999.ebuild new file mode 100644 index 0000000..79b7f85 --- /dev/null +++ b/app-emacs/rust-mode/rust-mode-9999.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit elisp + +DESCRIPTION="Emacs major mode for editing Rust code" +HOMEPAGE="http://www.rust-lang.org/" + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="0" +KEYWORDS="" + +if [[ ${PV} != 9999 ]]; then + MY_P="rust-${PV}" + SRC_URI="http://static.rust-lang.org/dist/${MY_P}.tar.gz" + + S="${WORKDIR}/${MY_P}/src/etc/emacs" +else + EGIT_SOURCEDIR="${S}" + S="${S}/src/etc/emacs" + + inherit git-2 + + EGIT_REPO_URI="git://github.com/mozilla/rust.git" +fi + +SITEFILE="50${PN}-gentoo.el" |