LinuxSir.cn,穿越时空的Linuxsir!

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

bmpanel2-9999.ebuild

[复制链接]
发表于 2010-3-20 09:12:54 | 显示全部楼层 |阅读模式
不知道有用这个panel的不,arch的兄弟用的好想比较多,发些最近portage把bmpanel移出去了,google了一下才发些,nsf开发了bmpanel2,于是凑合弄了个来用,推荐大家也用用,呵呵
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. inherit git
  5. EGIT_REPO_URI="git://github.com/nsf/bmpanel2.git"
  6. DESCRIPTION="a lightweight, NETWM compliant panel for X11 Window System."
  7. HOMEPAGE="http://nsf.110mb.com/bmpanel"
  8. SRC_URI=""
  9. LICENSE="as-is"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~ppc"
  12. IUSE="doc"
  13. RDEPEND="
  14.     dev-util/cmake
  15.     x11-libs/pango
  16.     x11-libs/cairo
  17.     x11-libs/libX11
  18.     dev-python/pygtk
  19.     doc? ( app-text/asciidoc )"
  20. DEPEND="${RDEPEND}
  21.         dev-util/pkgconfig"
  22. src_unpack() {
  23.         git_src_unpack
  24. }
  25. src_compile() {
  26.         # the provided configure script is broken.
  27.         # it doesn't provide --disable-foo, --host etc. so we can't use econf here.
  28.         #local myconf="--prefix=/usr --ugly"
  29.         #use doc && myconf="${myconf} --with-doc"
  30.         #einfo "./configure ${myconf}"
  31.         #./configure ${myconf} || die "configure failed"
  32.     einfo "cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE ."
  33.         cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE . || die "cmake failed"
  34. }
  35. src_install() {
  36.         emake install DESTDIR="${D}" || die "emake install failed"
  37.         # INSTALL contains some useful informations
  38. }
复制代码
另外有个ebuild的问题想问一下
src_unpack() {
        git_src_unpack
}
中 直接调用git 命令了应该,怎么给git传递参数呢,
比如我想git clone --depth=1 git://github.com/nsf/bmpanel2.git
而不是git clone git://github.com/nsf/bmpanel2.git
发表于 2010-3-20 10:05:20 | 显示全部楼层
看看git的eclass
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-20 20:37:08 | 显示全部楼层
Post by zhllg;2076556
看看git的eclass

能给个联接吗?
thx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-3-20 20:38:32 | 显示全部楼层
找到了,谢谢。
回复 支持 反对

使用道具 举报

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

本版积分规则

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