Skip to content

Commit

Permalink
app-xemacs/ebuild-mode: Inline functions from xemacs-elisp.eclass.
Browse files Browse the repository at this point in the history
Acked-by: Mats Lidell <[email protected]>
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Ulrich Müller <[email protected]>
  • Loading branch information
ulm committed Dec 14, 2019
1 parent aa81826 commit 7eab553
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
23 changes: 17 additions & 6 deletions app-xemacs/ebuild-mode/ebuild-mode-1.47.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

EAPI=7

inherit xemacs-elisp

DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
Expand All @@ -15,11 +13,24 @@ KEYWORDS="amd64 hppa x86"

RDEPEND=">=app-editors/xemacs-21.4.20-r5
app-xemacs/sh-script"
DEPEND="${RDEPEND}"
BDEPEND="${RDEPEND}"

src_compile() {
${XEMACS_BATCH_CLEAN} -eval "(add-to-list 'load-path \".\")" \
-f batch-byte-compile ebuild-mode.el gentoo-newsitem-mode.el || die
xemacs-elisp-make-autoload-file \
local XEMACS="${EPREFIX}/usr/bin/xemacs"

"${XEMACS}" -batch -q --no-site-file \
-eval "(add-to-list 'load-path \".\")" \
-f batch-byte-compile \
ebuild-mode.el gentoo-newsitem-mode.el || die

"${XEMACS}" -batch -q --no-site-file \
-eval "(setq autoload-package-name \"${PN}\")" \
-eval "(setq generated-autoload-file \"${S}/auto-autoloads.el\")" \
-l autoload -f batch-update-autoloads \
ebuild-mode.el gentoo-newsitem-mode.el || die
}

src_install() {
insinto /usr/share/xemacs/site-packages/lisp/${PN}
doins *.el *.elc
}
23 changes: 17 additions & 6 deletions app-xemacs/ebuild-mode/ebuild-mode-1.48.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

EAPI=7

inherit xemacs-elisp

DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz"
Expand All @@ -15,11 +13,24 @@ KEYWORDS="~amd64 ~hppa ~x86"

RDEPEND=">=app-editors/xemacs-21.4.20-r5
app-xemacs/sh-script"
DEPEND="${RDEPEND}"
BDEPEND="${RDEPEND}"

src_compile() {
${XEMACS_BATCH_CLEAN} -eval "(add-to-list 'load-path \".\")" \
-f batch-byte-compile ebuild-mode.el gentoo-newsitem-mode.el || die
xemacs-elisp-make-autoload-file \
local XEMACS="${EPREFIX}/usr/bin/xemacs"

"${XEMACS}" -batch -q --no-site-file \
-eval "(add-to-list 'load-path \".\")" \
-f batch-byte-compile \
ebuild-mode.el gentoo-newsitem-mode.el || die

"${XEMACS}" -batch -q --no-site-file \
-eval "(setq autoload-package-name \"${PN}\")" \
-eval "(setq generated-autoload-file \"${S}/auto-autoloads.el\")" \
-l autoload -f batch-update-autoloads \
ebuild-mode.el gentoo-newsitem-mode.el || die
}

src_install() {
insinto /usr/share/xemacs/site-packages/lisp/${PN}
doins *.el *.elc
}

0 comments on commit 7eab553

Please sign in to comment.