<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>155682</bug_id>
          
          <creation_ts>2006-11-19 08:44 0000</creation_ts>
          <short_desc>app-office/ledger: emacs dep should be virtual/emacs</short_desc>
          <delta_ts>2006-11-20 01:29:09 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mkennedy@gentoo.org</reporter>
          <assigned_to>wrobel@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>mkennedy@gentoo.org</who>
            <bug_when>2006-11-19 08:44:37 0000</bug_when>
            <thetext>The emacs dependency should be &quot;virtual/emacs&quot; so that the two slots in app-editors/emacs-cvs can be used :-)

Also, the build system will install into /usr/share/emacs/site-lisp/.  That needs to be changed so that {ledger,timeclock}.el* install into /usr/share/emacs/site-lisp/ledger.  50ledger-mode-gentoo.el should still go into /usr/share/emacs/site-lisp/ though.

Calling elisp_src_install will result in the emacs .el/.elc being installed twice.  If you can adjust the econf/einstall to honor --lispdir=/usr/share/emacs/site-lisp/ledger, that&apos;s the best way.  I usually don&apos;t call elisp_src_compile or elisp_src_install from an ebuild not in app-emacs/.  Take a look at how dev-lang/gforth uses the eclass for an example.

And you need to make sure the new subdirectory, /usr/share/emacs/site-lisp/ledger is added to the load-path.  So in your 50ledger-mode-gentoo.el, add this to the top: 

  (add-to-list &apos;load-path &quot;@SITELISP@&quot;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wrobel@gentoo.org</who>
            <bug_when>2006-11-20 01:29:09 0000</bug_when>
            <thetext>Hi Matthew, thanks for the corrections. I fixed the ebuild according to your suggestions :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>