From 9af4ac45ef0eb5ae7a44fefbb32cc754e743a8d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Sat, 21 Apr 2007 05:52:38 +0000 Subject: [PATCH] Autoload instead of require. Make use of elisp.eclass defaults. Package-Manager: portage-2.1.2.4 --- app-emacs/php-mode/ChangeLog | 6 +++- app-emacs/php-mode/Manifest | 28 +++++++++++-------- app-emacs/php-mode/files/51php-mode-gentoo.el | 8 ++++++ app-emacs/php-mode/php-mode-1.2.0.ebuild | 19 +++---------- 4 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 app-emacs/php-mode/files/51php-mode-gentoo.el diff --git a/app-emacs/php-mode/ChangeLog b/app-emacs/php-mode/ChangeLog index 519dc398848e..ae7d8b3f735a 100644 --- a/app-emacs/php-mode/ChangeLog +++ b/app-emacs/php-mode/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emacs/php-mode # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emacs/php-mode/ChangeLog,v 1.16 2007/03/08 07:56:40 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emacs/php-mode/ChangeLog,v 1.17 2007/04/21 05:52:38 ulm Exp $ + + 21 Apr 2007; Ulrich Mueller +files/51php-mode-gentoo.el, + php-mode-1.2.0.ebuild: + Autoload instead of require. Make use of elisp.eclass defaults. 08 Mar 2007; Christian Faulhammer files/50php-mode-gentoo.el: diff --git a/app-emacs/php-mode/Manifest b/app-emacs/php-mode/Manifest index fe8314a7c552..5489e6b98f49 100644 --- a/app-emacs/php-mode/Manifest +++ b/app-emacs/php-mode/Manifest @@ -5,20 +5,24 @@ AUX 50php-mode-gentoo.el 103 RMD160 98c256184359d54444aa1e2a33b664a0dbeade2c SHA MD5 d2cdc0bace481ca4f5c026ca1cfc0f17 files/50php-mode-gentoo.el 103 RMD160 98c256184359d54444aa1e2a33b664a0dbeade2c files/50php-mode-gentoo.el 103 SHA256 be94cca6cbb52d1c6691a042889fa15ff15f22862a7313749c0e27c864c095f0 files/50php-mode-gentoo.el 103 +AUX 51php-mode-gentoo.el 325 RMD160 fa972c06a1d00590f8bccf39a599cd5472ea9ee2 SHA1 9ee7c30153d647cfd2e38019c1319d36369dccba SHA256 10e4a4a8755548ce359839a0b35ee2eb2557b4d061b04827fbe72097d9047a3b +MD5 ba645669d56c89d3249a40a0c137cff9 files/51php-mode-gentoo.el 325 +RMD160 fa972c06a1d00590f8bccf39a599cd5472ea9ee2 files/51php-mode-gentoo.el 325 +SHA256 10e4a4a8755548ce359839a0b35ee2eb2557b4d061b04827fbe72097d9047a3b files/51php-mode-gentoo.el 325 DIST php-mode-1.1.0.tgz 12940 RMD160 a80e57e61d039f6b8de5f5d2cf2e27d5e293c7d2 SHA1 7abbbe6f9e9744f3d1030dc4d6d74e25a959327a SHA256 d8c746ca57d3245712eee57e10fa8fb3088edab4affbb7a1831c82487e2b9601 DIST php-mode-1.2.0.tgz 14301 RMD160 e505633805f9a19c1d8edac6efda88080b41c7ac SHA1 0a4db2de01dbce2416b049867591b62440af81db SHA256 b388d1976bbcf13708eb3eaf339930e9b671ef7bb86fdecdde5f3b9e18889e9c EBUILD php-mode-1.1.0.ebuild 713 RMD160 4ad3664e9885f694a23a6feebb8df47ac1fcc6d8 SHA1 de79a75224d61a43ceff803c7d88638d5718473b SHA256 5628bdb28b33fc4d3a19dd5bf6ad876b69e6ca19fde149ccb9497304b5fdb039 MD5 11acb1cb658f5cc244d38a8a13c562c8 php-mode-1.1.0.ebuild 713 RMD160 4ad3664e9885f694a23a6feebb8df47ac1fcc6d8 php-mode-1.1.0.ebuild 713 SHA256 5628bdb28b33fc4d3a19dd5bf6ad876b69e6ca19fde149ccb9497304b5fdb039 php-mode-1.1.0.ebuild 713 -EBUILD php-mode-1.2.0.ebuild 705 RMD160 ec7397f101dc56bdacec422f121bde6dd8d14e89 SHA1 b8350c2d6b2fb3d40c59dc77d4eec163b90449b5 SHA256 7fa25853e6688ad0d164fb7b2e9a36ea1cd3d4ed4f272da02488eee4138b1440 -MD5 fad14f70baf104d063d722e9a4b63434 php-mode-1.2.0.ebuild 705 -RMD160 ec7397f101dc56bdacec422f121bde6dd8d14e89 php-mode-1.2.0.ebuild 705 -SHA256 7fa25853e6688ad0d164fb7b2e9a36ea1cd3d4ed4f272da02488eee4138b1440 php-mode-1.2.0.ebuild 705 -MISC ChangeLog 1865 RMD160 de4445a17f8cf04248f1fea9a762c76c8f424061 SHA1 9617fc74de89878add667600f948dc3ce4f3f514 SHA256 6a5b466b908164ae63e5f7407816dd31ab8ca27cb4ee38ce5980c90aa72a0ba3 -MD5 15e0fdc7c95736b36a760ba602c2cb22 ChangeLog 1865 -RMD160 de4445a17f8cf04248f1fea9a762c76c8f424061 ChangeLog 1865 -SHA256 6a5b466b908164ae63e5f7407816dd31ab8ca27cb4ee38ce5980c90aa72a0ba3 ChangeLog 1865 +EBUILD php-mode-1.2.0.ebuild 496 RMD160 ec460a375f9da3995a929532939907843a17566e SHA1 68cb11b6d077c17eb0c059370aff0c711e098cc3 SHA256 a5ee8b0d9953a414f482ca76b2b52816a30e32110e07f5b5c9419d89a95329b4 +MD5 7ff5ceca81cae69ecd622c5f73072a2e php-mode-1.2.0.ebuild 496 +RMD160 ec460a375f9da3995a929532939907843a17566e php-mode-1.2.0.ebuild 496 +SHA256 a5ee8b0d9953a414f482ca76b2b52816a30e32110e07f5b5c9419d89a95329b4 php-mode-1.2.0.ebuild 496 +MISC ChangeLog 2031 RMD160 886dea5627bdd4b62c321a9c2dd0abc8b6cf7127 SHA1 53f5aa29bebac9ec8a1d044f19af470f6f754bdc SHA256 9512a105a6c2720f659b8ae399a5f8b4f368de76f300d4cc3375d3730200b113 +MD5 acf854e8a0560f1b166d38c514935c41 ChangeLog 2031 +RMD160 886dea5627bdd4b62c321a9c2dd0abc8b6cf7127 ChangeLog 2031 +SHA256 9512a105a6c2720f659b8ae399a5f8b4f368de76f300d4cc3375d3730200b113 ChangeLog 2031 MISC metadata.xml 158 RMD160 415d172437ca754d24fc5ab186ba8e77934d96e4 SHA1 61f6eff9729cd87a725c2a70c81aca4270a17fc4 SHA256 1393bdef3a74343fdb40a112c7096a1af16f67e7a43413250de28dfe73810eab MD5 fcd33d07e4ee719b01157946734f4fe8 metadata.xml 158 RMD160 415d172437ca754d24fc5ab186ba8e77934d96e4 metadata.xml 158 @@ -30,9 +34,9 @@ MD5 ca1fe74a9f0b00f2700329dd2c311bbe files/digest-php-mode-1.2.0 232 RMD160 752b7def97fc9f98f48dc57f28d38d4824388452 files/digest-php-mode-1.2.0 232 SHA256 f435a166ed4a8b76646e4b1338a32a957c81370acee4b52faf40eff9d458d719 files/digest-php-mode-1.2.0 232 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.6 (GNU/Linux) +Version: GnuPG v1.4.7 (GNU/Linux) -iD8DBQFF78F2NQqtfCuFneMRAtkAAKCYcNaq3Awav5TkfgIpgc/HmyWuaQCfX9IO -eJgIAh7YYVUMYnHmrk98O3g= -=C7eG +iD8DBQFGKacoOeoy/oIi7uwRArmVAKCPTtHWkzLrfE1jLfxWBxU/LnunSACfT0wc +9PFkS1i/QioiHZS5X/kpaPQ= +=7J5K -----END PGP SIGNATURE----- diff --git a/app-emacs/php-mode/files/51php-mode-gentoo.el b/app-emacs/php-mode/files/51php-mode-gentoo.el new file mode 100644 index 000000000000..5db8dc5a055c --- /dev/null +++ b/app-emacs/php-mode/files/51php-mode-gentoo.el @@ -0,0 +1,8 @@ + +;;; php-mode site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'php-mode "php-mode" "Major mode for editing PHP code." t) +(add-to-list 'auto-mode-alist '("\\.php[s34]?\\'" . php-mode)) +(add-to-list 'auto-mode-alist '("\\.phtml\\'" . php-mode)) +(add-to-list 'auto-mode-alist '("\\.inc\\'" . php-mode)) diff --git a/app-emacs/php-mode/php-mode-1.2.0.ebuild b/app-emacs/php-mode/php-mode-1.2.0.ebuild index ff49f51faf83..d65272547bf9 100644 --- a/app-emacs/php-mode/php-mode-1.2.0.ebuild +++ b/app-emacs/php-mode/php-mode-1.2.0.ebuild @@ -1,29 +1,18 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emacs/php-mode/php-mode-1.2.0.ebuild,v 1.1 2007/02/09 08:32:37 opfer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emacs/php-mode/php-mode-1.2.0.ebuild,v 1.2 2007/04/21 05:52:38 ulm Exp $ inherit elisp -IUSE="" - DESCRIPTION="GNU Emacs major mode for editing PHP code" HOMEPAGE="http://php-mode.sourceforge.net" SRC_URI="mirror://sourceforge/php-mode/${P}.tgz" + LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" - -DEPEND="" +IUSE="" S="${WORKDIR}" -SITEFILE=50php-mode-gentoo.el - -src_compile() { - emacs --batch -f batch-byte-compile --no-site-file --no-init-file *.el -} - -src_install() { - elisp-install ${PN} *.el *.elc - elisp-site-file-install "${FILESDIR}/${SITEFILE}" -} +SITEFILE=51${PN}-gentoo.el -- 2.26.2