|
发表于 2010-8-25 23:02:25
|
显示全部楼层
应该是继承一下就可以了吧?文档是没有,不过例子倒是可以现找的。
- # Copyright 1999-2007 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: $
- EAPI="2"
- inherit distutils eutils elisp-common mercurial
- DESCRIPTION="Rope interface for Emacs"
- HOMEPAGE="http://rope.sourceforge.net/"
- EHG_REPO_URI="http://bitbucket.org/agr/ropemacs"
- LICENSE="GPL-2"
- SLOT="0"
- KEYWORDS="~x86 ~amd64"
- IUSE=""
- RESTRICT="nomirror"
- DEPEND=">=dev-python/rope-0.9.3
- >=app-emacs/pymacs-0.23
- =dev-python/ropemode-9999"
- RDEPEND="${DEPEND}"
- SITEFILE=55${PN}-gentoo.el
- S="${WORKDIR}/${PN}"
- src_prepare() {
- sed -e 's_'\''ropemode'\'', __g' -i setup.py || die
- }
- src_install() {
- distutils_src_install
- elisp-site-file-install "${FILESDIR}/${SITEFILE}"
- }
- pkg_postinst() {
- elisp-site-regen
- }
- pkg_postrm() {
- elisp-site-regen
- }
复制代码 |
|