diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-03-23 02:21:54 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-03-23 02:21:54 +0000 |
commit | bc20c711e6cab305c867ef836a071cbe98dde6a9 (patch) | |
tree | 1f51e065ed4d33805a5188bdac1d130c221c6f00 /app-emacs/emhacks | |
parent | Add local jde USE flag for app-emacs/emhacks. (diff) | |
download | gentoo-2-bc20c711e6cab305c867ef836a071cbe98dde6a9.tar.gz gentoo-2-bc20c711e6cab305c867ef836a071cbe98dde6a9.tar.bz2 gentoo-2-bc20c711e6cab305c867ef836a071cbe98dde6a9.zip |
Initial import, from Emacs overlay.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-emacs/emhacks')
-rw-r--r-- | app-emacs/emhacks/ChangeLog | 10 | ||||
-rw-r--r-- | app-emacs/emhacks/Manifest | 5 | ||||
-rw-r--r-- | app-emacs/emhacks/emhacks-20070920.ebuild | 41 | ||||
-rw-r--r-- | app-emacs/emhacks/files/50emhacks-gentoo.el | 35 | ||||
-rw-r--r-- | app-emacs/emhacks/metadata.xml | 20 |
5 files changed, 111 insertions, 0 deletions
diff --git a/app-emacs/emhacks/ChangeLog b/app-emacs/emhacks/ChangeLog new file mode 100644 index 000000000000..679c95bfd508 --- /dev/null +++ b/app-emacs/emhacks/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-emacs/emhacks +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/emhacks/ChangeLog,v 1.1 2008/03/23 02:21:53 ulm Exp $ + +*emhacks-20070920 (23 Mar 2008) + + 23 Mar 2008; Ulrich Mueller <ulm@gentoo.org> +files/50emhacks-gentoo.el, + +metadata.xml, +emhacks-20070920.ebuild: + Initial import, from Emacs overlay. Ebuild contributed by me. + diff --git a/app-emacs/emhacks/Manifest b/app-emacs/emhacks/Manifest new file mode 100644 index 000000000000..c7c2268d094b --- /dev/null +++ b/app-emacs/emhacks/Manifest @@ -0,0 +1,5 @@ +AUX 50emhacks-gentoo.el 937 RMD160 00e7a9107132c94d97a292350dc466cf7661e23e SHA1 48761a601f17e1431aff361b5b6da56fc8c6f7dd SHA256 d9aa7f3092091878296cabcec0b1562c9808dd065fa5c7fc0c1b6425e3982c88 +DIST emhacks-20070920.tar.bz2 71232 RMD160 657e5ca93e09a5d4344959da5ac6d154478ac753 SHA1 3578074d43b88f48385a927e3032cfe2b3eece1d SHA256 d249a6dfcb0e7b40c76844ee5959032ad0a792ff391ee11fe5e4a461c6b86ed7 +EBUILD emhacks-20070920.ebuild 1052 RMD160 07411d0c61a62950bad8c1e59bc3fe72184b36b9 SHA1 e149f7a7e51d291f7a471ff549894e38669423d8 SHA256 58c4ec06a7e0710cd5cbc44cacaa125a08998f4ddee431fb162c87a15b0e2649 +MISC ChangeLog 334 RMD160 baac1d0613a5f21404e6234c560beb1c782e4347 SHA1 e10efaad33f3fb95522a548b4a89d354ce7ea81d SHA256 6a8fd55f767e31c5d0baa0ba4a46c7423a829bc396fd701568c118d113b7f2d1 +MISC metadata.xml 711 RMD160 7b9cbe0e14bcf7a17b4d20ca05d3502f174ed0f4 SHA1 bf3240620c11ff9a3a6165d2bda1e4332b69e401 SHA256 29b171cc57ae473aa873167119dfe7657c3a35ba9a83ff73b2e2a4101bb80582 diff --git a/app-emacs/emhacks/emhacks-20070920.ebuild b/app-emacs/emhacks/emhacks-20070920.ebuild new file mode 100644 index 000000000000..9f05a93c9620 --- /dev/null +++ b/app-emacs/emhacks/emhacks-20070920.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/emhacks/emhacks-20070920.ebuild,v 1.1 2008/03/23 02:21:53 ulm Exp $ + +inherit elisp + +DESCRIPTION="Useful Emacs Lisp libraries, including gdiff, jjar, jmaker, swbuff, and tabbar" +HOMEPAGE="http://emhacks.sourceforge.net/" +# CVS snapshot +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="jde" + +DEPEND="jde? ( app-emacs/jde )" +RDEPEND="${DEPEND}" + +SITEFILE=50${PN}-gentoo.el +EMACSFLAGS="${EMACSFLAGS} -L ." + +src_unpack() { + unpack ${A} + cd "${S}" + # remove files included in Emacs>=22 or not useful on GNU/Linux + rm -r findstr* overlay-fix* recentf* ruler-mode* tree-widget* + # this requires jde and cedet, not everyone may want it + use jde || rm jsee.el +} + +src_install() { + elisp-install ${PN} *.el *.elc || die "elisp-install failed" + + cp "${FILESDIR}/${SITEFILE}" "${T}" + use jde || sed -i -e '/;; jsee/,$d' "${T}/${SITEFILE}" + elisp-site-file-install "${T}/${SITEFILE}" \ + || die "elisp-site-file-install failed" + + dodoc Changelog || die "dodoc failed" +} diff --git a/app-emacs/emhacks/files/50emhacks-gentoo.el b/app-emacs/emhacks/files/50emhacks-gentoo.el new file mode 100644 index 000000000000..e1648f32e4dd --- /dev/null +++ b/app-emacs/emhacks/files/50emhacks-gentoo.el @@ -0,0 +1,35 @@ + +;;; emhacks site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") + +;; dir-tree +(autoload 'dir-tree "dir-tree" + "Display the ROOT directory in a tree widget." t) + +;; gdiff +(require 'gdiff-setup) + +;; swbuff +(autoload 'swbuff-switch-to-next-buffer "swbuff" + "Switch to the next buffer in the buffer list." t) +(autoload 'swbuff-kill-this-buffer "swbuff" + "Kill the current buffer. +And update the status window if showing." t) + +;; tabbar +(autoload 'tabbar-local-mode "tabbar" nil t) +(autoload 'tabbar-mode "tabbar" nil t) +(autoload 'tabbar-mwheel-mode "tabbar" nil t) + +;; jjar +(autoload 'jjar-create "jjar" "Create a new jar file." t) +(autoload 'jjar-update "jjar" "Update an existing jar file." t) + +;; jmaker +(autoload 'jmaker-generate-makefile "jmaker" + "Generate and edit a Java Makefile in directory ROOT." t) + +;; jsee +(autoload 'jsee-browse-api-doc "jsee" + "Browse the Java API Documentation of the current Java file." t) diff --git a/app-emacs/emhacks/metadata.xml b/app-emacs/emhacks/metadata.xml new file mode 100644 index 000000000000..7d51835f1052 --- /dev/null +++ b/app-emacs/emhacks/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>emacs</herd> +<longdescription> + The EMHACKS project goal is to provide a set of useful libraries to help + using Emacs or XEmacs. + + Among those libraries you will find: + gdiff, Use an external GUI diff tool from [X]Emacs; + jjar, Java Archive builder; + jmaker, Java Makefile generator; + swbuff, Quick switch between Emacs buffers; + tabbar, Display a tab bar in the header line. +</longdescription> +<use> + <flag name='jde'>Enable support for Java Development Environment. + This requires packages app-emacs/jde (and app-emacs/cedet).</flag> +</use> +</pkgmetadata> |