LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]编写的ebuild不能通过digest

[复制链接]
发表于 2009-4-26 18:56:50 | 显示全部楼层 |阅读模式
我试着为app-text/foxitreader-1.0-1编写了一个ebuild练练手,可是编写的ebuild怎么也无法通过digest。一直提示!!! app-text/foxitreader-1.0-1 does not follow correct package syntax.
我刚刚开始编写ebuild,对它了解不多,请大家帮忙检查。
  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. # a testing ebuild for foxitreader by hjhee@163.com

  5. DESCRIPTION="Foxit PDF Reader"
  6. HOMEPAGE="http://www.foxitsoftware.com/pdf/desklinux/"
  7. SRC_URI="http://mirrors.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/1.0/enu/FoxitReader-1.0-1.i386.tar.bz2"

  8. LICENSE="Foxit Reader"
  9. SLOT="0"
  10. KEYWORDS="~x86"
  11. IUSE="cups"

  12. DEPEND=""
  13. RDEPEND="media-libs/freetype
  14.                  media-libs/libpng
  15.                  x11-base/xorg-x11
  16.                  media-libs/jpeg
  17.                  sys-libs/zlib
  18.                  media-libs/lcms
  19.         cups? ( net-print/cups )
  20.         x86? ( >=x11-libs/gtk+-2.0 )"

  21. S="${WORKDIR}/${PN}"

  22. src_unpack() {
  23.         unpack ${A} || die "unpack ${A} failed"
  24. }

  25. src_install() {
  26.         dodir ${D}/opt/${PN}
  27.         mv ${S}/* ${D}/opt/${PN}
  28.         dodoc Readme.txt
  29. }


  30. pkg_postinst () {
  31.         einfo "this a testing ebuild"
  32. }
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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