From: Diego Elio Pettenò Date: Sat, 27 Jan 2007 22:09:02 +0000 (+0000) Subject: Add an emacs useflag to enable search forwarding to emacs, thanks to Sebastian Schube... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=869605e4e7c65a5f3cabf46c6ad7742423af1997;p=gentoo.git Add an emacs useflag to enable search forwarding to emacs, thanks to Sebastian Schubert in bug #116737. Package-Manager: portage-2.1.2-r4 --- diff --git a/kde-base/kdvi/ChangeLog b/kde-base/kdvi/ChangeLog index 4557f44701a8..d66ccb45e992 100644 --- a/kde-base/kdvi/ChangeLog +++ b/kde-base/kdvi/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for kde-base/kdvi # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdvi/ChangeLog,v 1.63 2007/01/16 20:30:17 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdvi/ChangeLog,v 1.64 2007/01/27 22:09:02 flameeyes Exp $ + + 27 Jan 2007; Diego Pettenò + +files/50kdvi-gentoo.el, kdvi-3.5.6.ebuild: + Add an emacs useflag to enable search forwarding to emacs, thanks to + Sebastian Schubert in bug #116737. *kdvi-3.5.6 (16 Jan 2007) diff --git a/kde-base/kdvi/Manifest b/kde-base/kdvi/Manifest index 36d4acad0f42..ebe34e946adb 100644 --- a/kde-base/kdvi/Manifest +++ b/kde-base/kdvi/Manifest @@ -1,6 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX 50kdvi-gentoo.el 193 RMD160 e89f4e461fad3b898a11b28276247873f6e260d8 SHA1 713442fe67c14500e790697c78a841bda31b7489 SHA256 42da88113566909995046b9bc63c9849cdbf055dd2b11c6c06176a1865af5730 +MD5 fe396e496b93179b8918648e7cd75081 files/50kdvi-gentoo.el 193 +RMD160 e89f4e461fad3b898a11b28276247873f6e260d8 files/50kdvi-gentoo.el 193 +SHA256 42da88113566909995046b9bc63c9849cdbf055dd2b11c6c06176a1865af5730 files/50kdvi-gentoo.el 193 DIST kdegraphics-3.5.2.tar.bz2 7288264 RMD160 cf2fce91b76af7d570b20f336ba551c5c3bd767f SHA1 80703d46fd90b7ab95f92d7b7c411a04f431d13b SHA256 b33e26d99188f0aee2dc0ff95923a1c1bca7f2a2510a1f761b155b8d2781e64f DIST kdegraphics-3.5.5.tar.bz2 7334117 RMD160 c6febdf8ebd67110be3f27ada4c00e148403217f SHA1 e063f9351e2781cc6a5d23834611fc7dc7dc4fbd SHA256 b6706d37568686e1ca4b4bb2cf1f79c027b94a512f6fe1156b7c7b7f79336f16 DIST kdegraphics-3.5.6.tar.bz2 7332938 RMD160 4cb41696ffb1284252009edfe8bd0933ef541800 SHA1 481d3f3733c042f7dfe7d9fc6620d17f8b945957 SHA256 2c397f3c524b7c465e6d9289944aa8ed2acc43c8bafb983eb3f252aba7a19a1f @@ -12,14 +16,14 @@ EBUILD kdvi-3.5.5.ebuild 558 RMD160 e5739c3ce5938c38763872ae2099f822b1a8ad7e SHA MD5 c19ead903643bab6ff153e36b6015eb0 kdvi-3.5.5.ebuild 558 RMD160 e5739c3ce5938c38763872ae2099f822b1a8ad7e kdvi-3.5.5.ebuild 558 SHA256 4f558c72cbc92692a70cabfd3dc95e28981633223d69d2b0d75508d6c54136ab kdvi-3.5.5.ebuild 558 -EBUILD kdvi-3.5.6.ebuild 568 RMD160 6641c4b27b447217df8b598a9752f96e29decb0b SHA1 add1ee5112270cbcc71f9290487edfdae74064da SHA256 a388b8091872f8aa07d542f9af1ee871f770ca0bcda8baa9226d935fd741ba35 -MD5 23ca838e798ef3ef1327c0e814c66a81 kdvi-3.5.6.ebuild 568 -RMD160 6641c4b27b447217df8b598a9752f96e29decb0b kdvi-3.5.6.ebuild 568 -SHA256 a388b8091872f8aa07d542f9af1ee871f770ca0bcda8baa9226d935fd741ba35 kdvi-3.5.6.ebuild 568 -MISC ChangeLog 7494 RMD160 7030fbee70d0b8f4c2bb259977f73a8fd6fe1ad1 SHA1 9d0c31277f066dbfff9047c223df49f74342d2a7 SHA256 47c06865fe361469b4c26841df9c5308df114873681b6a9747b44ccc3896c07d -MD5 e1c425be0c429df786303a1052636446 ChangeLog 7494 -RMD160 7030fbee70d0b8f4c2bb259977f73a8fd6fe1ad1 ChangeLog 7494 -SHA256 47c06865fe361469b4c26841df9c5308df114873681b6a9747b44ccc3896c07d ChangeLog 7494 +EBUILD kdvi-3.5.6.ebuild 1141 RMD160 4f23c366e057a4fa3f1668e0e072677010c7a923 SHA1 046b8e5754d9786982c9b428ea378726f975bc41 SHA256 e80e6d30e9bdfe43e726c755fae959a9c5aa2d75b6e92ed0d8f353867921ba08 +MD5 90593876b4d7ae51f71e99a2e9c21982 kdvi-3.5.6.ebuild 1141 +RMD160 4f23c366e057a4fa3f1668e0e072677010c7a923 kdvi-3.5.6.ebuild 1141 +SHA256 e80e6d30e9bdfe43e726c755fae959a9c5aa2d75b6e92ed0d8f353867921ba08 kdvi-3.5.6.ebuild 1141 +MISC ChangeLog 7702 RMD160 3c8cf8ba965db6c71925dd1a6fb245b81c2d1311 SHA1 db100b5de9823c34ef470b3c41ef0fb5d3041160 SHA256 430a1098d24c507475aaabfaf31ed503ccbf0296f08e4739c3ae448f1c4c60cc +MD5 9757ebfa8ae12325422b1e2707286d8a ChangeLog 7702 +RMD160 3c8cf8ba965db6c71925dd1a6fb245b81c2d1311 ChangeLog 7702 +SHA256 430a1098d24c507475aaabfaf31ed503ccbf0296f08e4739c3ae448f1c4c60cc ChangeLog 7702 MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a MD5 acc03a4b12bb0433a57e95bd253b9501 metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 metadata.xml 156 @@ -36,7 +40,7 @@ SHA256 585aa29db716746963d4e4383f027d3afd88cc73550bdb8010fd688152b7afd8 files/di -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) -iD8DBQFFrTXgAiZjviIA2XgRAmQZAJ9lHzmnfPwJ38mWiduNDT2v6XDrSwCfWLhf -fJ6/Ss5ldxH2L3yJ0tqSB8c= -=YcOi +iD8DBQFFu82IAiZjviIA2XgRApD6AKDh/d1HWBX+IYxkI1XdP95kMvqkggCeLfnM +obz6JZQgWCPVxrm6r1eA3Zg= +=YkJp -----END PGP SIGNATURE----- diff --git a/kde-base/kdvi/files/50kdvi-gentoo.el b/kde-base/kdvi/files/50kdvi-gentoo.el new file mode 100644 index 000000000000..9ba617b62a92 --- /dev/null +++ b/kde-base/kdvi/files/50kdvi-gentoo.el @@ -0,0 +1,3 @@ +(require 'kdvi-search) +(add-hook 'LaTeX-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line))) +(add-hook 'tex-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line))) diff --git a/kde-base/kdvi/kdvi-3.5.6.ebuild b/kde-base/kdvi/kdvi-3.5.6.ebuild index 127ee4d62f6a..5de9d0afdf0f 100644 --- a/kde-base/kdvi/kdvi-3.5.6.ebuild +++ b/kde-base/kdvi/kdvi-3.5.6.ebuild @@ -1,20 +1,51 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdvi/kdvi-3.5.6.ebuild,v 1.1 2007/01/16 20:30:17 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdvi/kdvi-3.5.6.ebuild,v 1.2 2007/01/27 22:09:02 flameeyes Exp $ KMNAME=kdegraphics MAXKDEVER=$PV KM_DEPRANGE="$PV $MAXKDEVER" -inherit kde-meta eutils +inherit kde-meta eutils elisp-common DESCRIPTION="KDE DVI viewer" KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="tetex" +IUSE="emacs tetex" -DEPEND=" -$(deprange $PV $MAXKDEVER kde-base/kviewshell) ->=media-libs/freetype-2" +DEPEND="$(deprange $PV $MAXKDEVER kde-base/kviewshell) + >=media-libs/freetype-2 + emacs? ( virtual/emacs )" RDEPEND="${DEPEND} tetex? ( virtual/tetex )" KMCOMPILEONLY="kviewshell/" + +src_compile() { + kde-meta_src_compile + + if use emacs; then + cd "${S}/doc/kdvi" + elisp-compile kdvi-search.el + fi +} + +src_install() { + kde-meta_src_install + + if use emacs; then + insinto "${SITELISP}" + doins doc/kdvi/kdvi-search.el* + elisp-site-file-install "${FILESDIR}/50kdvi-gentoo.el" + fi +} + +pkg_postinst() { + kde_pkg_postinst + use emacs && elisp-site-regen +} + +pkg_postrm() { + kde_pkg_postrm + # regenerate site-gentoo if we are merged USE=emacs and unmerged + # USE=-emacs + has_version virtual/emacs && elisp-site-regen +}