Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 202341
Collapse All | Expand All

(-)cflow-1.2.ebuild~ (-2 / +16 lines)
Lines 17-30 Link Here
17
	emacs? ( virtual/emacs )"
17
	emacs? ( virtual/emacs )"
18
RDEPEND="${DEPEND}"
18
RDEPEND="${DEPEND}"
19
19
20
SITEFILE=cflow-mode.el
20
SITEFILE=50${PN}-gentoo.el
21
21
22
src_compile() {
22
src_compile() {
23
	econf \
23
	econf \
24
		$(use_enable nls) \
24
		$(use_enable nls) \
25
		$(use_enable debug) \
25
		$(use_enable debug) \
26
		EMACS=no \
26
		|| die "econf failed"
27
		|| die "econf failed"
27
	emake || die "emake failed"
28
	emake || die "emake failed"
29
30
	if use emacs; then
31
		elisp-compile elisp/cflow-mode.el || die "elisp-compile failed"
32
	fi
28
}
33
}
29
34
30
src_install() {
35
src_install() {
Lines 32-40 Link Here
32
	doinfo doc/cflow.info
37
	doinfo doc/cflow.info
33
	emake DESTDIR="${D}" install || die "emake install failed"
38
	emake DESTDIR="${D}" install || die "emake install failed"
34
39
35
	use emacs && elisp-site-file-install "${S}/elisp/${SITEFILE}"
40
	if use emacs; then
41
		elisp-install ${PN} elisp/cflow-mode.{el,elc} \
42
			|| die "elisp-install failed"
43
		elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
44
			|| die "elisp-site-file-install failed"
45
	fi
36
}
46
}
37
47
38
pkg_postinst() {
48
pkg_postinst() {
39
	use emacs && elisp-site-regen
49
	use emacs && elisp-site-regen
40
}
50
}
51
52
pkg_postrm() {
53
	use emacs && elisp-site-regen
54
}

Return to bug 202341