LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 581|回复: 1

gentoo ebuild mercurial的语法

[复制链接]
发表于 2010-8-25 20:28:42 | 显示全部楼层 |阅读模式
最近想写个ebuild,要用mercurial下载到指定文件夹 但是不清楚ebuild的语法怎么样,官方也没搜到,请知道的指点一下。
发表于 2010-8-25 23:02:25 | 显示全部楼层
应该是继承一下就可以了吧?文档是没有,不过例子倒是可以现找的。
  1. # Copyright 1999-2007 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. EAPI="2"
  5. inherit distutils eutils elisp-common mercurial
  6. DESCRIPTION="Rope interface for Emacs"
  7. HOMEPAGE="http://rope.sourceforge.net/"
  8. EHG_REPO_URI="http://bitbucket.org/agr/ropemacs"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="~x86 ~amd64"
  12. IUSE=""
  13. RESTRICT="nomirror"
  14. DEPEND=">=dev-python/rope-0.9.3
  15.         >=app-emacs/pymacs-0.23
  16.         =dev-python/ropemode-9999"
  17. RDEPEND="${DEPEND}"
  18. SITEFILE=55${PN}-gentoo.el
  19. S="${WORKDIR}/${PN}"
  20. src_prepare() {
  21.     sed -e 's_'\''ropemode'\'', __g' -i setup.py || die
  22. }
  23. src_install() {
  24.     distutils_src_install
  25.     elisp-site-file-install "${FILESDIR}/${SITEFILE}"
  26. }
  27. pkg_postinst() {
  28.     elisp-site-regen
  29. }
  30. pkg_postrm() {
  31.     elisp-site-regen
  32. }
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表