Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/emacs/, app-editors/emacs-vcs/
Date: Sun, 20 Sep 2015 12:00:09
Message-Id: 1442749601.67c97f62a611081c46cbc3158cb3a3cd337e4671.ulm@gentoo
1 commit: 67c97f62a611081c46cbc3158cb3a3cd337e4671
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 20 11:44:36 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 20 11:46:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c97f62
7
8 app-editors/emacs: Prefer inotify to gfile.
9
10 USE flag "inotify" will override "gfile" when both are set.
11 This follows an upstream change in configure.
12
13 Bug: http://debbugs.gnu.org/21241
14
15 Package-Manager: portage-2.2.20.1
16
17 app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild | 4 +-
18 .../emacs-vcs/emacs-vcs-25.0.9999-r1.ebuild | 4 +-
19 .../emacs-24.5-r1.ebuild} | 55 ++++++----------------
20 3 files changed, 19 insertions(+), 44 deletions(-)
21
22 diff --git a/app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild b/app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild
23 index 5d6f549..32126d5 100644
24 --- a/app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild
25 +++ b/app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild
26 @@ -39,10 +39,10 @@ RDEPEND="sys-libs/ncurses
27 acl? ( virtual/acl )
28 alsa? ( media-libs/alsa-lib )
29 dbus? ( sys-apps/dbus )
30 - gfile? ( >=dev-libs/glib-2.28.6 )
31 gnutls? ( net-libs/gnutls )
32 gpm? ( sys-libs/gpm )
33 hesiod? ( net-dns/hesiod )
34 + !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
35 kerberos? ( virtual/krb5 )
36 libxml2? ( >=dev-libs/libxml2-2.2.0 )
37 selinux? ( sys-libs/libselinux )
38 @@ -218,7 +218,7 @@ src_configure() {
39 --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
40 --with-gameuser="${GAMES_USER_DED:-games}" \
41 --without-compress-install \
42 - --with-file-notification=$(usev gfile || usev inotify || echo no) \
43 + --with-file-notification=$(usev inotify || usev gfile || echo no) \
44 $(use_enable acl) \
45 $(use_with dbus) \
46 $(use_with gnutls) \
47
48 diff --git a/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r1.ebuild b/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r1.ebuild
49 index 7198b67..85b8e5b 100644
50 --- a/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r1.ebuild
51 +++ b/app-editors/emacs-vcs/emacs-vcs-25.0.9999-r1.ebuild
52 @@ -39,10 +39,10 @@ RDEPEND="sys-libs/ncurses
53 acl? ( virtual/acl )
54 alsa? ( media-libs/alsa-lib )
55 dbus? ( sys-apps/dbus )
56 - gfile? ( >=dev-libs/glib-2.28.6 )
57 gnutls? ( net-libs/gnutls )
58 gpm? ( sys-libs/gpm )
59 hesiod? ( net-dns/hesiod )
60 + !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
61 kerberos? ( virtual/krb5 )
62 libxml2? ( >=dev-libs/libxml2-2.2.0 )
63 selinux? ( sys-libs/libselinux )
64 @@ -223,7 +223,7 @@ src_configure() {
65 --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
66 --with-gameuser=":gamestat" \
67 --without-compress-install \
68 - --with-file-notification=$(usev gfile || usev inotify || echo no) \
69 + --with-file-notification=$(usev inotify || usev gfile || echo no) \
70 $(use_enable acl) \
71 $(use_with dbus) \
72 $(use_with gnutls) \
73
74 diff --git a/app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild b/app-editors/emacs/emacs-24.5-r1.ebuild
75 similarity index 87%
76 copy from app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild
77 copy to app-editors/emacs/emacs-24.5-r1.ebuild
78 index 5d6f549..4c7d69d 100644
79 --- a/app-editors/emacs-vcs/emacs-vcs-24.5.9999.ebuild
80 +++ b/app-editors/emacs/emacs-24.5-r1.ebuild
81 @@ -6,43 +6,28 @@ EAPI=5
82
83 inherit autotools elisp-common eutils flag-o-matic multilib readme.gentoo
84
85 -if [[ ${PV##*.} = 9999 ]]; then
86 - inherit git-r3
87 - EGIT_REPO_URI="git://git.sv.gnu.org/emacs.git"
88 - EGIT_BRANCH="emacs-24"
89 - EGIT_CHECKOUT_DIR="${WORKDIR}/emacs"
90 - S="${EGIT_CHECKOUT_DIR}"
91 -else
92 - SRC_URI="https://dev.gentoo.org/~ulm/distfiles/emacs-${PV}.tar.xz
93 - mirror://gnu-alpha/emacs/pretest/emacs-${PV}.tar.xz"
94 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
95 - # FULL_VERSION keeps the full version number, which is needed in
96 - # order to determine some path information correctly for copy/move
97 - # operations later on
98 - FULL_VERSION="${PV%%_*}"
99 - #S="${WORKDIR}/emacs-${FULL_VERSION}"
100 - S="${WORKDIR}/emacs"
101 -fi
102 -
103 DESCRIPTION="The extensible, customizable, self-documenting real-time display editor"
104 HOMEPAGE="https://www.gnu.org/software/emacs/"
105 +SRC_URI="mirror://gnu/emacs/${P}.tar.xz
106 + https://dev.gentoo.org/~ulm/emacs/${P}-patches-1.tar.xz"
107
108 LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
109 SLOT="24"
110 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
111 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"
112 REQUIRED_USE="?? ( aqua X )"
113
114 RDEPEND="sys-libs/ncurses
115 >=app-eselect/eselect-emacs-1.16
116 - >=app-emacs/emacs-common-gentoo-1.4-r1[games?,X?]
117 + >=app-emacs/emacs-common-gentoo-1.5[games?,X?]
118 net-libs/liblockfile
119 acl? ( virtual/acl )
120 alsa? ( media-libs/alsa-lib )
121 dbus? ( sys-apps/dbus )
122 - gfile? ( >=dev-libs/glib-2.28.6 )
123 gnutls? ( net-libs/gnutls )
124 gpm? ( sys-libs/gpm )
125 hesiod? ( net-dns/hesiod )
126 + !inotify? ( gfile? ( >=dev-libs/glib-2.28.6 ) )
127 kerberos? ( virtual/krb5 )
128 libxml2? ( >=dev-libs/libxml2-2.2.0 )
129 selinux? ( sys-libs/libselinux )
130 @@ -90,26 +75,19 @@ DEPEND="${RDEPEND}
131 sys-apps/paxctl
132 )"
133
134 -if [[ ${PV##*.} = 9999 ]]; then
135 - DEPEND="${DEPEND}
136 - sys-apps/texinfo"
137 -fi
138 +RDEPEND="${RDEPEND}
139 + !<app-editors/emacs-vcs-${PV}"
140
141 EMACS_SUFFIX="${PN/emacs/emacs-${SLOT}}"
142 SITEFILE="20${PN}-${SLOT}-gentoo.el"
143 +# FULL_VERSION keeps the full version number, which is needed in
144 +# order to determine some path information correctly for copy/move
145 +# operations later on
146 +FULL_VERSION="${PV%%_*}"
147 +S="${WORKDIR}/emacs-${FULL_VERSION}"
148
149 src_prepare() {
150 - if [[ ${PV##*.} = 9999 ]]; then
151 - FULL_VERSION=$(sed -n 's/^AC_INIT([^,]*,[ \t]*\([^ \t,)]*\).*/\1/p' \
152 - configure.ac)
153 - [[ ${FULL_VERSION} ]] || die "Cannot determine current Emacs version"
154 - einfo "Emacs branch: ${EGIT_BRANCH}"
155 - einfo "Commit: ${EGIT_VERSION}"
156 - einfo "Emacs version number: ${FULL_VERSION}"
157 - [[ ${FULL_VERSION} =~ ^${PV%.*}(\..*)?$ ]] \
158 - || die "Upstream version number changed to ${FULL_VERSION}"
159 - fi
160 -
161 + EPATCH_SUFFIX=patch epatch
162 epatch_user
163
164 # Fix filename reference in redirected man page
165 @@ -207,18 +185,15 @@ src_configure() {
166 # Save version information in the Emacs binary. It will be available
167 # in variable "system-configuration-options".
168 myconf+=" GENTOO_PACKAGE=${CATEGORY}/${PF}"
169 - if [[ ${PV##*.} = 9999 ]]; then
170 - myconf+=" EGIT_BRANCH=${EGIT_BRANCH} EGIT_VERSION=${EGIT_VERSION}"
171 - fi
172
173 econf \
174 --program-suffix="-${EMACS_SUFFIX}" \
175 --infodir="${EPREFIX}"/usr/share/info/${EMACS_SUFFIX} \
176 --localstatedir="${EPREFIX}"/var \
177 --enable-locallisppath="${EPREFIX}/etc/emacs:${EPREFIX}${SITELISP}" \
178 - --with-gameuser="${GAMES_USER_DED:-games}" \
179 + --with-gameuser=":gamestat" \
180 --without-compress-install \
181 - --with-file-notification=$(usev gfile || usev inotify || echo no) \
182 + --with-file-notification=$(usev inotify || usev gfile || echo no) \
183 $(use_enable acl) \
184 $(use_with dbus) \
185 $(use_with gnutls) \