Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/puppet/
Date: Fri, 30 Jun 2017 13:15:02
Message-Id: 1498828493.79ff8beb04c23426b717054ea8deb8c33b7cdb46.graaff@gentoo
1 commit: 79ff8beb04c23426b717054ea8deb8c33b7cdb46
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 30 13:14:39 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 30 13:14:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ff8beb
7
8 app-admin/puppet: fix building with USE=emacs or USE=xemacs, bug 623012
9
10 puppet 5.x no longer contains editing modes for emacs or xemacs.
11 With emacs the USE flag now pulls in app-emacs/puppet-mode.
12 The xemacs USE flag has been removed until there is a suitable
13 package there as well.
14
15 Package-Manager: Portage-2.3.6, Repoman-2.3.1
16
17 app-admin/puppet/puppet-5.0.0.ebuild | 42 +++---------------------------------
18 1 file changed, 3 insertions(+), 39 deletions(-)
19
20 diff --git a/app-admin/puppet/puppet-5.0.0.ebuild b/app-admin/puppet/puppet-5.0.0.ebuild
21 index 3583b0a3e9b..8dbc2f97ac0 100644
22 --- a/app-admin/puppet/puppet-5.0.0.ebuild
23 +++ b/app-admin/puppet/puppet-5.0.0.ebuild
24 @@ -9,7 +9,7 @@ USE_RUBY="ruby21 ruby22 ruby23"
25
26 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
27
28 -inherit elisp-common xemacs-elisp-common eutils user ruby-fakegem versionator
29 +inherit eutils user ruby-fakegem versionator
30
31 DESCRIPTION="A system automation and configuration management software."
32 HOMEPAGE="http://puppetlabs.com/"
33 @@ -18,7 +18,7 @@ SRC_URI="http://downloads.puppetlabs.com/puppet/${P}.tar.gz"
34 LICENSE="Apache-2.0 GPL-2"
35 SLOT="0"
36 KEYWORDS="~amd64 ~hppa ~ppc ~x86"
37 -IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax xemacs"
38 +IUSE="augeas diff doc emacs experimental ldap rrdtool selinux shadow sqlite vim-syntax"
39 RESTRICT="test"
40
41 ruby_add_rdepend "
42 @@ -43,9 +43,6 @@ ruby_add_bdepend "
43 # this should go in the above lists, but isn't because of test deps not being keyworded
44 # dev-ruby/rspec-collection_matchers
45
46 -DEPEND+=" ${DEPEND}
47 - emacs? ( virtual/emacs )
48 - xemacs? ( app-editors/xemacs )"
49 RDEPEND+=" ${RDEPEND}
50 rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
51 selinux? (
52 @@ -54,8 +51,7 @@ RDEPEND+=" ${RDEPEND}
53 )
54 vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
55 >=app-portage/eix-0.18.0"
56 -
57 -SITEFILE="50${PN}-mode-gentoo.el"
58 +PDEPEND="emacs? ( app-emacs/puppet-mode )"
59
60 pkg_setup() {
61 enewgroup puppet
62 @@ -84,20 +80,6 @@ all_ruby_prepare() {
63 rm spec/unit/module_tool/metadata_spec.rb || die
64 }
65
66 -all_ruby_compile() {
67 - if use emacs ; then
68 - elisp-compile ext/emacs/puppet-mode.el
69 - fi
70 -
71 - if use xemacs ; then
72 - # Create a separate version for xemacs to be able to install
73 - # emacs and xemacs in parallel.
74 - mkdir ext/xemacs
75 - cp ext/emacs/* ext/xemacs/
76 - xemacs-elisp-compile ext/xemacs/puppet-mode.el
77 - fi
78 -}
79 -
80 each_ruby_install() {
81 each_fakegem_install
82 # dosym "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${P}" "/usr/$(get_libdir)/ruby/gems/$(ruby_get_version)/gems/${PN}"
83 @@ -133,16 +115,6 @@ all_ruby_install() {
84 fowners -R :puppet /etc/puppetlabs
85 fowners -R :puppet /var/lib/puppet
86
87 - if use emacs ; then
88 - elisp-install ${PN} ext/emacs/puppet-mode.el*
89 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
90 - fi
91 -
92 - if use xemacs ; then
93 - xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
94 - xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
95 - fi
96 -
97 if use ldap ; then
98 insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
99 fi
100 @@ -172,12 +144,4 @@ pkg_postinst() {
101 elog "for more information."
102 elog
103 fi
104 -
105 - use emacs && elisp-site-regen
106 - use xemacs && xemacs-elisp-site-regen
107 -}
108 -
109 -pkg_postrm() {
110 - use emacs && elisp-site-regen
111 - use xemacs && xemacs-elisp-site-regen
112 }