summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-08-11 17:33:28 +0000
committerUlrich Müller <ulm@gentoo.org>2014-08-11 17:33:28 +0000
commit34407ac00c6b859a596afa1a321f5576b350f4cc (patch)
treeeab441e0479445b0667f29e7e3dab1c979358480 /app-editors/emacs-vcs
parentfix usage of ldshared (bug #514288) (diff)
downloadhistorical-34407ac00c6b859a596afa1a321f5576b350f4cc.tar.gz
historical-34407ac00c6b859a596afa1a321f5576b350f4cc.tar.bz2
historical-34407ac00c6b859a596afa1a321f5576b350f4cc.zip
New snapshot of trunk.
Package-Manager: portage-2.2.11-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x9433907D693FB5B8!
Diffstat (limited to 'app-editors/emacs-vcs')
-rw-r--r--app-editors/emacs-vcs/ChangeLog8
-rw-r--r--app-editors/emacs-vcs/Manifest24
-rw-r--r--app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140731.ebuild362
3 files changed, 382 insertions, 12 deletions
diff --git a/app-editors/emacs-vcs/ChangeLog b/app-editors/emacs-vcs/ChangeLog
index 40c2586a9638..92c231fe2ad3 100644
--- a/app-editors/emacs-vcs/ChangeLog
+++ b/app-editors/emacs-vcs/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-editors/emacs-vcs
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v 1.162 2014/07/07 07:09:38 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/ChangeLog,v 1.163 2014/08/11 17:33:10 ulm Exp $
+
+*emacs-vcs-24.4.50_pre20140731 (11 Aug 2014)
+
+ 11 Aug 2014; Ulrich Müller <ulm@gentoo.org>
+ +emacs-vcs-24.4.50_pre20140731.ebuild:
+ New snapshot of trunk.
*emacs-vcs-24.4.50_pre20140630 (05 Jul 2014)
diff --git a/app-editors/emacs-vcs/Manifest b/app-editors/emacs-vcs/Manifest
index 9b17698ecb14..71f71a8f0a9f 100644
--- a/app-editors/emacs-vcs/Manifest
+++ b/app-editors/emacs-vcs/Manifest
@@ -5,25 +5,27 @@ DIST emacs-24.3.91.tar.xz 39423508 SHA256 40cee18cecd3a54b6b14dd2d9d46bf3de625a1
DIST emacs-24.3.92.tar.xz 39639748 SHA256 e5ae5097cbe22100550365e1022c171834a4b2bbcd663cf0850a10793b34beb7 SHA512 de9e534f4a61d1f4ef6a80445ad73c9ef5860fa7bc10e3f45440b0163aa1eaf3b213410168513bd72f01aeed5c2c5929fb70486fdabee48d7f1248c3ed8878ce WHIRLPOOL db471267cad1658c451154c97782bb83f7995136b5864da5ea69b678af5249df24b2587e1d2f6ed183503c3882211a5d4abadd7150be465eb3db6c56002045fc
DIST emacs-24.4.50_pre20140531.tar.xz 24040952 SHA256 9697cedafa3259d472481b368dd04986ee35ca7923341da4d415c62e4f6e5983 SHA512 c48f7f0f737a126a82f20a2230bdc433959b2d9548fd1c9c993a6c6d26218e75dc10835f7b0b7d421a989fee7507683ab1efd356170d9c5eadcae484b5fda6e3 WHIRLPOOL 54e4ec7dd75af36594eb340d16e450a2786615035134aa159dc0c113f77a65813b125542d957193fe64f25b37e2289955ef2abf8e492b6775fbd314e22c4c059
DIST emacs-24.4.50_pre20140630.tar.xz 24254808 SHA256 b0572905e0c03130d98c109bc587b0ea7bc9e3a4c86bc936e947707c8c9de7bd SHA512 03744241af70478a4932f8069a821dfe111e5a37fe56d5f7ee151aea0cfcc2a78d3657c46e8ac3897f744c94c118350f350262fed9982b2d09892e65a3084087 WHIRLPOOL edd2b1d37052b55ef761828b130a76ab00e661d4cd65b6698e03974bb9809007fda79161e7cb90d22fdfd0fe0becd0fc3e1c77c3686b3d9051af6fe6b5c6fa51
+DIST emacs-24.4.50_pre20140731.tar.xz 24297368 SHA256 4b91f9038f4d9f456caa587d2b89af734a894f508389ec08c09d1e3d53672501 SHA512 f70d7a5a38b634c9dc6d18ea34ec725888b6372a85fb46e3818fb43773a8378e52e07c23a8f59f93b417b27c6c12e3108ed1115adf06d0a05a7ed85d45b2de07 WHIRLPOOL 3c844819a78d56fe3f007be7d2f6fc635785cabaed9482eb8c8654f4aae1740a284214d75f63036ab7389afa815251835db05823d0ee7a516209e1144506140c
EBUILD emacs-vcs-24.3.91.ebuild 11441 SHA256 2328d3bf668cb98cb343ce95739861ba24c39811a71ecfdd2ec3e91ef10444d7 SHA512 e3eaca660cee9b8aea5b0a8d1287f0474515f815f97b57b06bd270266a9362214d001677519defccfc6de9567c2d331c6308780867ea998e9a4f723b3ddd5640 WHIRLPOOL b25be868f80129222c2ce7ec6a731e95d34008fb8c109515064e24bde84dc869d90afb317406ad35af8857d177cbba4faeaae4b226fb1af13432d2a9f1821519
EBUILD emacs-vcs-24.3.92.ebuild 11441 SHA256 c7a4970cff2ced6b2b1aa2f66163fad35d018d1061c8bea1c092845e603b85e5 SHA512 6e53a6e5e42f9ca5a6624c65a32ac9332379875d2313b79e8848286efd3a3862463dcb38a1ec4c603ae79fcead473c3fade9241c6187fc19854b3a86578e1515 WHIRLPOOL e1540a1d2b3bcb34f251d1fadbc29e3dcbc9b66ed5b5073a655d34e823bdb7ce0fe68c570fc174dde4e40e70aa2b911d22b47893b228a73eaf37bcfb4094775e
EBUILD emacs-vcs-24.3.9999-r1.ebuild 11291 SHA256 e18678477ed72ff1124799238306aee8bafb0b2ceedde3c8a3e592d53bf08e32 SHA512 73c310e9a351faf37eb967dc202ccadc5c0d862485938c6df732cf8a83c77ce69bb912fcab337c4447f6d7567f5d994c6596f860aed5930ea0576058c166b3c2 WHIRLPOOL de7371f51cc0d8e7241e82ab8eda1991b65e11cf572b90804333289a06843b19aaccf83ea5d03d7ff0c5e44c82f92bf225138d9ab1565fa56e9a545732256cd2
EBUILD emacs-vcs-24.4.50_pre20140531.ebuild 11318 SHA256 0d9ba03a36b405a5071ee44f0b1bdcf44552d82b21fde7d4d223c7ade06f7d9f SHA512 6378fc175fd41be2fb7cd57227339bddd86b53569c62b591e9e6d08920abf8c45f3ca5c39e99e08b73057275ff4b17ef86ee512cf745baddaa38ff8d09e4a95b WHIRLPOOL 841b3ba891819d8738411222f0f3c022d5571fd384ad8725b47b9a66d033c71840723986c874290dccdde90b4bd3607695a351cb75a68c739138854ee905f3eb
EBUILD emacs-vcs-24.4.50_pre20140630.ebuild 11318 SHA256 bf78ad0dc99e14679752e562175509c45c799c821820d916423344df2e800140 SHA512 16873f1ba73aec0c7e845a1a0b89023b873f77dee3ae860562413f003087e44d47c9494803489b4c9c04cb6cbb4930acaede7912e4dd27d73304948cbc073b3e WHIRLPOOL 936ecff95f050e2be0ac7481f28cd5bba1386546a1c497dce2eab1596e723d65b34cd496b86af3af6e236bbe8c5b15d8d8f97d094d0fda23176ce5a9a8e92751
+EBUILD emacs-vcs-24.4.50_pre20140731.ebuild 11318 SHA256 4517905d4754749f2e963d9d6b9ea7cad487f63c0a76de1b96e7ddb0997bd8f6 SHA512 06e4ce02abe81d1b9bd5fd236da861117efd755564039698fb77f92bcf380b2306c694f561423b29754bdbf64648aece5524b01d02ddd4d109c6530ae554dfe0 WHIRLPOOL 5c81a6086ef302895a6bd004416156ccfc6735c86e1f1acf567aa9128fc473b6af0b776d50d0cc7e50fb988c8427a571a546aab2223de5149c3cec5bfbfb8b9f
EBUILD emacs-vcs-24.4.9999.ebuild 11285 SHA256 17397768375acbfae3f427ae6b4045745443129c8216f4a5ae3c48fcdc8bf7eb SHA512 53fde7952587a4d0d99423aeb661d58490dad211dc36cf90c28e26491969e20080d5ea2f6486c88e73dd9be9ee39f3eb59f013c13bb5170ec06820a36065295f WHIRLPOOL 6999e6e985e66ed16b4bc90ed60abff22882306a6984a37119f3a7714950fc20f5b4a454ace89e8c03599dd40ed7b74e50aacd01a59f59abe40d6cbe141f22c2
-MISC ChangeLog 78615 SHA256 4cac66e55b7a854cd1684fb9ac0edb03e34507cb6b9784c482d2ff8137294b72 SHA512 299a25fa2383732aeac1bc97718d98f5832938bfe9caa817696a1b86689320c2fc64689e8964a0236f96d23e777eb4c0a3ce6b8565cb69c5d9fbcadec88dd152 WHIRLPOOL e7f3f0302239430a92ffaadf6a21c5f8bb6dd7b6eb306ada2b05579e466bdf525d932abda7c04cf574a6498f75ed0de7743e1637909159535c30d8a41011888a
+MISC ChangeLog 78775 SHA256 83d2a4dc43f8e9335cb5ec982c0d1bc32017d3f2a3e4290d1dd9df7c7b391cc9 SHA512 39d51c5356d9fe0bb3f880e0fb3093cfc5c65df49a5416788b5a64ebcad0ad8a498d6bccde46a965835e3c899d079a0c0b2acf11fd24e4c87abbf4c94dde98f0 WHIRLPOOL 413f93f29e3bacbf1d95bfe6210b866e7a6405b81f6ea4cbb90af1d951b5342108478cc1916a9da73b419b9ad1ab06ed5070a7db0b7ca02f13a1611b525fad34
MISC metadata.xml 2522 SHA256 0dcfb3cd3457215ad785b82adfd0d60eafc10df3ac58c9125f6006e4ac90ced6 SHA512 8fefab8f3644c38b5a5c37e8aba2ee45a0b329b4dd846d280ef33893d940892abaf09204bf807d98870106677caf48e376667a4f2bf7c1dca26e72b6b5ea2c54 WHIRLPOOL b40fe229764c94b5bf59eda550e9a480a9793f3a4df43fa65c0dea518ad2372faf3276ce6009ad44a02907c2df63068b9596fc39e53cc7214dd5b30750df9a8d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQGcBAEBCAAGBQJTukgwAAoJEJQzkH1pP7W4zRwL/3w9O/cCY7ENoRChZvh4e3hR
-vHOo+rW5CQFOhC97EebM7yMaViKz//asu34/JkvaqchyO1BE8b1ZVAyTt9n5J0ic
-BGQ3dDTMz+yjhQO0ZmKcVV6KURCFIPl+l9pIFRe4PhaUL9yYW5aHK3FVK9qi6XLx
-nnroc15BPEJz2YT7clNrYuM1CGuWPyKQhkzOn4ZZFh/UHuYxJGa5FNUpm7d8sh5B
-zRqzTT5gB78ocq+vFndP842YgvZQpZykdXfSHxiRq0M0GTu4Iy84qHZM6MAkmO5S
-12DoExhnRK9RbggyRg9WkctQMlOsdmQVRRuROK4XdGwpQRR/9P5oh5qs+H0/hkno
-dRU8A+45EHuy94AaNpnqKsjdw+TFVpy3xuG4xe2O3DF5cPCi+ZHODxdnPbTRU1Br
-rDGRoH/rfEp0WOrN4utj1KjX3fC9mWEaq2JY0bB/RjGqqxWkrkMQHrg1S6mTLEtB
-jepQVdoArAUinu8Mgbn9J7F+Xj+W0ReXQoxUXNcEpQ==
-=BFju
+iQGcBAEBCAAGBQJT6P5pAAoJEJQzkH1pP7W497sL/2s0wnUlvJaWduFr0DHUNk0n
+ixnuml/hu67SEFyRI9HyMbLNZn6Tluk1YX25XjdwXZNFVNC92Y1zawmMMEME5nQ8
+9xxpieazlLPJDFIIP+gBFAFBU5Y9PiAuRQDaeLsfReG/okEl/YElz/XGwyWbks/l
+uo5/tlatOM5AIWQJ9lvDRK4pH1yu96G5ol+87HErgG8hrsAJGD8QWFz3jfSpzWx6
+e6NPeuQhibFH8xhX1OpvLiqROArhrydIDNofFTTAWE86wmLrDRxgrcT11rHlWWUv
+THgxY5AjBPvJq98gw02S3tcXajtZmjqosOMAnTb1oaIIPjQmF8l5xA8+vrsoB8N4
+j/h0fE3Lx/0kJ2ew6nK1qq1MPJDDrxN8umRms8Cn1EzMO6PCho/1AIseX8tm2WXq
+OF/9+NQvNafOIPFQ9aMuOuCUnUUgWVCcioeIfDVF+Hs4VhIzf1YEITV5Ns4Q1Mz7
+k59ah6jPSvGt0RH6gCbZFrU2zxb4Gx2H39wQD2psrQ==
+=98us
-----END PGP SIGNATURE-----
diff --git a/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140731.ebuild b/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140731.ebuild
new file mode 100644
index 000000000000..fc797a79937b
--- /dev/null
+++ b/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140731.ebuild
@@ -0,0 +1,362 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.4.50_pre20140731.ebuild,v 1.1 2014/08/11 17:33:10 ulm Exp $
+
+EAPI=5
+
+inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
+
+if [[ ${PV##*.} = 9999 ]]; then
+ EBZR_PROJECT="emacs"
+ EBZR_BRANCH="trunk"
+ EBZR_REPO_URI="bzr://bzr.savannah.gnu.org/emacs/${EBZR_BRANCH}/"
+ # "Nosmart" is much faster for initial branching.
+ EBZR_INITIAL_URI="nosmart+${EBZR_REPO_URI}"
+ EBZR_UNPACK_DIR="${WORKDIR}/emacs"
+ EBZR_WORKDIR_CHECKOUT="t" #434746
+ inherit bzr
+ S="${EBZR_UNPACK_DIR}"
+else
+ SRC_URI="http://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
+ mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
+ # FULL_VERSION keeps the full version number, which is needed in
+ # order to determine some path information correctly for copy/move
+ # operations later on
+ FULL_VERSION="${PV%%_*}"
+ #S="${WORKDIR}/emacs-${FULL_VERSION}"
+ S="${WORKDIR}/emacs"
+fi
+
+DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
+HOMEPAGE="http://www.gnu.org/software/emacs/"
+
+LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
+SLOT="24"
+IUSE="acl alsa aqua athena dbus games gconf gfile gif gnutls gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm zlib"
+REQUIRED_USE="?? ( aqua X )"
+
+RDEPEND="sys-libs/ncurses
+ >=app-admin/eselect-emacs-1.16
+ >=app-emacs/emacs-common-gentoo-1.4-r1[games?,X?]
+ net-libs/liblockfile
+ acl? ( virtual/acl )
+ alsa? ( media-libs/alsa-lib )
+ dbus? ( sys-apps/dbus )
+ gfile? ( >=dev-libs/glib-2.28.6 )
+ gnutls? ( net-libs/gnutls )
+ gpm? ( sys-libs/gpm )
+ hesiod? ( net-dns/hesiod )
+ kerberos? ( virtual/krb5 )
+ libxml2? ( >=dev-libs/libxml2-2.2.0 )
+ selinux? ( sys-libs/libselinux )
+ zlib? ( sys-libs/zlib )
+ X? (
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-misc/xbitmaps
+ gconf? ( >=gnome-base/gconf-2.26.2 )
+ gsettings? ( >=dev-libs/glib-2.28.6 )
+ gif? ( media-libs/giflib )
+ jpeg? ( virtual/jpeg:0= )
+ png? ( >=media-libs/libpng-1.4:0= )
+ svg? ( >=gnome-base/librsvg-2.0 )
+ tiff? ( media-libs/tiff )
+ xpm? ( x11-libs/libXpm )
+ imagemagick? ( >=media-gfx/imagemagick-6.6.2 )
+ xft? (
+ media-libs/fontconfig
+ media-libs/freetype
+ x11-libs/libXft
+ m17n-lib? (
+ >=dev-libs/libotf-0.9.4
+ >=dev-libs/m17n-lib-1.5.1
+ )
+ )
+ gtk? (
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ )
+ !gtk? (
+ motif? ( >=x11-libs/motif-2.3:0 )
+ !motif? (
+ Xaw3d? ( x11-libs/libXaw3d )
+ !Xaw3d? ( athena? ( x11-libs/libXaw ) )
+ )
+ )
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ gzip-el? ( app-arch/gzip )
+ pax_kernel? (
+ sys-apps/attr
+ sys-apps/paxctl
+ )"
+
+if [[ ${PV##*.} = 9999 ]]; then
+ DEPEND="${DEPEND}
+ sys-apps/texinfo"
+fi
+
+EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
+SITEFILE="20${PN}-${SLOT}-gentoo.el"
+
+src_prepare() {
+ if [[ ${PV##*.} = 9999 ]]; then
+ FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \
+ configure.ac)
+ [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
+ einfo "Emacs branch: ${EBZR_BRANCH}"
+ einfo "Revision: ${EBZR_REVISION:-${EBZR_REVNO}}"
+ einfo "Emacs version number: ${FULL_VERSION}"
+ [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
+ || die "Upstream version number changed to ${FULL_VERSION}"
+ fi
+
+ epatch_user
+
+ # Fix filename reference in redirected man page
+ sed -i -e "/^\\.so/s/etags/&-${EMACS_SUFFIX}/" doc/man/ctags.1 \
+ || die "unable to sed ctags.1"
+
+ AT_M4DIR=m4 eautoreconf
+}
+
+src_configure() {
+ strip-flags
+
+ if use sh; then
+ replace-flags "-O[1-9]" -O0 #262359
+ elif use ia64; then
+ replace-flags "-O[2-9]" -O1 #325373
+ else
+ replace-flags "-O[3-9]" -O2
+ fi
+
+ local myconf
+
+ if use alsa; then
+ use sound || ewarn \
+ "USE flag \"alsa\" overrides \"-sound\"; enabling sound support."
+ myconf+=" --with-sound=alsa"
+ else
+ myconf+=" --with-sound=$(usex sound oss)"
+ fi
+
+ if use X; then
+ myconf+=" --with-x --without-ns"
+ myconf+=" $(use_with gconf)"
+ myconf+=" $(use_with gsettings)"
+ myconf+=" $(use_with toolkit-scroll-bars)"
+ myconf+=" $(use_with gif)"
+ myconf+=" $(use_with jpeg)"
+ myconf+=" $(use_with png)"
+ myconf+=" $(use_with svg rsvg)"
+ myconf+=" $(use_with tiff)"
+ myconf+=" $(use_with xpm)"
+ myconf+=" $(use_with imagemagick)"
+
+ if use xft; then
+ myconf+=" --with-xft"
+ myconf+=" $(use_with m17n-lib libotf)"
+ myconf+=" $(use_with m17n-lib m17n-flt)"
+ else
+ myconf+=" --without-xft"
+ myconf+=" --without-libotf --without-m17n-flt"
+ use m17n-lib && ewarn \
+ "USE flag \"m17n-lib\" has no effect if \"xft\" is not set."
+ fi
+
+ local f
+ if use gtk; then
+ einfo "Configuring to build with GIMP Toolkit (GTK+)"
+ myconf+=" --with-x-toolkit=$(usex gtk3 gtk3 gtk2)"
+ for f in motif Xaw3d athena; do
+ use ${f} && ewarn \
+ "USE flag \"${f}\" has no effect if \"gtk\" is set."
+ done
+ elif use motif; then
+ einfo "Configuring to build with Motif toolkit"
+ myconf+=" --with-x-toolkit=motif"
+ for f in Xaw3d athena; do
+ use ${f} && ewarn \
+ "USE flag \"${f}\" has no effect if \"motif\" is set."
+ done
+ elif use athena || use Xaw3d; then
+ einfo "Configuring to build with Athena/Lucid toolkit"
+ myconf+=" --with-x-toolkit=lucid $(use_with Xaw3d xaw3d)"
+ else
+ einfo "Configuring to build with no toolkit"
+ myconf+=" --with-x-toolkit=no"
+ fi
+ elif use aqua; then
+ einfo "Configuring to build with Nextstep (Cocoa) support"
+ myconf+=" --with-ns --disable-ns-self-contained"
+ myconf+=" --without-x"
+ else
+ myconf+=" --without-x --without-ns"
+ fi
+
+ # Save version information in the Emacs binary. It will be available
+ # in variable "system-configuration-options".
+ myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
+ if [[ ${PV##*.} = 9999 ]]; then
+ myconf+=" EBZR_BRANCH=${EBZR_BRANCH} EBZR_REVNO=${EBZR_REVNO}"
+ fi
+
+ econf \
+ --program-suffix="-${EMACS_SUFFIX}" \
+ --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
+ --localstatedir="${EPREFIX}"/var \
+ --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
+ --with-gameuser="${GAMES_USER_DED:-games}" \
+ --without-compress-install \
+ --with-file-notification=$(usev gfile || usev inotify || echo no) \
+ $(use_enable acl) \
+ $(use_with dbus) \
+ $(use_with gnutls) \
+ $(use_with gpm) \
+ $(use_with hesiod) \
+ $(use_with kerberos) $(use_with kerberos kerberos5) \
+ $(use_with libxml2 xml2) \
+ $(use_with selinux) \
+ $(use_with wide-int) \
+ $(use_with zlib) \
+ ${myconf}
+}
+
+src_compile() {
+ export SANDBOX_ON=0 # for the unbelievers, see Bug #131505
+ emake
+}
+
+src_install () {
+ emake DESTDIR="${D}" NO_BIN_LINK=t install
+
+ mv "${ED}"/usr/bin/{emacs-${FULL_VERSION}-,}${EMACS_SUFFIX} \
+ || die "moving emacs executable failed"
+ mv "${ED}"/usr/share/man/man1/{emacs-,}${EMACS_SUFFIX}.1 \
+ || die "moving emacs man page failed"
+
+ # move info dir to avoid collisions with the dir file generated by portage
+ mv "${ED}"/usr/share/info/${EMACS_SUFFIX}/dir{,.orig} \
+ || die "moving info dir failed"
+ touch "${ED}"/usr/share/info/${EMACS_SUFFIX}/.keepinfodir
+ docompress -x /usr/share/info/${EMACS_SUFFIX}/dir.orig
+
+ # avoid collision between slots, see bug #169033 e.g.
+ rm "${ED}"/usr/share/emacs/site-lisp/subdirs.el
+ rm -rf "${ED}"/usr/share/{applications,icons}
+ rm -rf "${ED}"/var
+
+ # remove unused <version>/site-lisp dir
+ rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
+
+ if use gzip-el; then
+ # compress .el files when a corresponding .elc exists
+ find "${ED}"/usr/share/emacs/${FULL_VERSION}/lisp -type f \
+ -name "*.elc" -print | sed 's/\.elc$/.el/' | xargs gzip -9n
+ assert "gzip .el failed"
+ fi
+
+ local cdir
+ if use source; then
+ cdir="/usr/share/emacs/${FULL_VERSION}/src"
+ insinto "${cdir}"
+ # This is not meant to install all the source -- just the
+ # C source you might find via find-function
+ doins src/*.{c,h,m}
+ elif has installsources ${FEATURES}; then
+ cdir="/usr/src/debug/${CATEGORY}/${PF}/${S#"${WORKDIR}/"}/src"
+ fi
+
+ sed -e "${cdir:+#}/^Y/d" -e "s/^[XY]//" >"${T}/${SITEFILE}" <<-EOF
+ X
+ ;;; ${PN}-${SLOT} site-lisp configuration
+ X
+ (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
+ Y (setq find-function-C-source-directory
+ Y "${EPREFIX}${cdir}")
+ X (let ((path (getenv "INFOPATH"))
+ X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
+ X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))
+ X (and path
+ X ;; move Emacs Info dir before anything else in /usr/share/info
+ X (let* ((p (cons nil (split-string path ":" t))) (q p))
+ X (while (and (cdr q) (not (string-match re (cadr q))))
+ X (setq q (cdr q)))
+ X (setcdr q (cons dir (delete dir (cdr q))))
+ X (setq Info-directory-list (prune-directory-list (cdr p)))))))
+ EOF
+ elisp-site-file-install "${T}/${SITEFILE}" || die
+
+ dodoc README BUGS
+
+ if use aqua; then
+ dodir /Applications/Gentoo
+ rm -rf "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app
+ mv nextstep/Emacs.app \
+ "${ED}"/Applications/Gentoo/Emacs${EMACS_SUFFIX#emacs}.app || die
+ fi
+
+ DOC_CONTENTS="You can set the version to be started by /usr/bin/emacs
+ through the Emacs eselect module, which also redirects man and info
+ pages. Therefore, several Emacs versions can be installed at the
+ same time. \"man emacs.eselect\" for details.
+ \\n\\nIf you upgrade from Emacs version 24.2 or earlier, then it is
+ strongly recommended that you use app-admin/emacs-updater to rebuild
+ all byte-compiled elisp files of the installed Emacs packages."
+ use X && DOC_CONTENTS+="\\n\\nYou need to install some fonts for Emacs.
+ Installing media-fonts/font-adobe-{75,100}dpi on the X server's
+ machine would satisfy basic Emacs requirements under X11.
+ See also https://wiki.gentoo.org/wiki/Xft_support_for_GNU_Emacs
+ for how to enable anti-aliased fonts."
+ use aqua && DOC_CONTENTS+="\\n\\nEmacs${EMACS_SUFFIX#emacs}.app is in
+ \"${EPREFIX}/Applications/Gentoo\". You may want to copy or symlink
+ it into /Applications by yourself."
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ # move Info dir file to correct name
+ local infodir=/usr/share/info/${EMACS_SUFFIX} f
+ if [[ -f ${ED}${infodir}/dir.orig ]]; then
+ mv "${ED}"${infodir}/dir{.orig,} || die "moving info dir failed"
+ elif [[ -d "${ED}"${infodir} ]]; then
+ # this should not happen in EAPI 4
+ ewarn "Regenerating Info directory index in ${infodir} ..."
+ rm -f "${ED}"${infodir}/dir{,.*}
+ for f in "${ED}"${infodir}/*; do
+ if [[ ${f##*/} != *-[0-9]* && -e ${f} ]]; then
+ install-info --info-dir="${ED}"${infodir} "${f}" \
+ || die "install-info failed"
+ fi
+ done
+ fi
+}
+
+pkg_postinst() {
+ elisp-site-regen
+
+ local pvr
+ for pvr in ${REPLACING_VERSIONS}; do
+ [[ ${pvr%%[-_]*} = 24.[12] ]] && FORCE_PRINT_ELOG=1
+ done
+ readme.gentoo_print_elog
+
+ if use livecd; then
+ # force an update of the emacs symlink for the livecd/dvd,
+ # because some microemacs packages set it with USE=livecd
+ eselect emacs update
+ elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
+ # refresh symlinks in case any installed files have changed
+ eselect emacs set ${EMACS_SUFFIX}
+ else
+ eselect emacs update ifunset
+ fi
+}
+
+pkg_postrm() {
+ elisp-site-regen
+ eselect emacs update ifunset
+}