Lines 21-27
Link Here
|
21 |
emacs? ( virtual/emacs ) |
21 |
emacs? ( virtual/emacs ) |
22 |
gnuplot? ( sci-visualization/gnuplot )" |
22 |
gnuplot? ( sci-visualization/gnuplot )" |
23 |
|
23 |
|
24 |
SITEFILE=50ledger-mode-gentoo.el |
24 |
SITEFILE=50${PN}-gentoo.el |
25 |
|
25 |
|
26 |
src_compile() { |
26 |
src_compile() { |
27 |
|
27 |
|
Lines 29-35
Link Here
|
29 |
$(use_enable xml) \ |
29 |
$(use_enable xml) \ |
30 |
$(use_enable ofx) \ |
30 |
$(use_enable ofx) \ |
31 |
$(use_enable debug) \ |
31 |
$(use_enable debug) \ |
32 |
$(use_with emacs lispdir ${D}/usr/share/emacs/site-lisp/${PN}) \ |
32 |
$(use_with emacs lispdir "${D}${SITELISP}/${PN}") \ |
33 |
|| die "Configure failed!" |
33 |
|| die "Configure failed!" |
34 |
|
34 |
|
35 |
emake || die "Make failed!" |
35 |
emake || die "Make failed!" |
Lines 44-53
Link Here
|
44 |
insinto /usr/share/${P} |
44 |
insinto /usr/share/${P} |
45 |
doins scripts/entry scripts/getquote scripts/bal scripts/bal-huquq |
45 |
doins scripts/entry scripts/getquote scripts/bal scripts/bal-huquq |
46 |
|
46 |
|
47 |
use emacs && elisp-site-file-install ${FILESDIR}/${SITEFILE} |
|
|
48 |
|
49 |
einstall || die "Installation failed!" |
47 |
einstall || die "Installation failed!" |
50 |
|
48 |
|
|
|
49 |
# Remove timeclock since it is part of Emacs |
50 |
rm -f "${D}${SITELISP}/${PN}"/timeclock.* |
51 |
|
52 |
if use emacs; then |
53 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
54 |
|| die "elisp-site-file-install failed" |
55 |
fi |
56 |
|
51 |
if use gnuplot; then |
57 |
if use gnuplot; then |
52 |
mv scripts/report ledger-report |
58 |
mv scripts/report ledger-report |
53 |
dobin ledger-report |
59 |
dobin ledger-report |