LinuxSir.cn,穿越时空的Linuxsir!

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

写了一个 chm2pdf 的 ebuild

[复制链接]
发表于 2008-12-13 19:19:05 | 显示全部楼层 |阅读模式
转了一本,cpu 比较高,最后倒是出来了,呵呵,还行

  1. # Copyright 1999-2008 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $

  4. inherit distutils

  5. DESCRIPTION="A simple Python script that converts CHM files into PDF files"
  6. HOMEPAGE="http://code.google.com/p/chm2pdf/"
  7. SRC_URI="http://chm2pdf.googlecode.com/files/${P}.tar.gz"

  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~x86"
  11. IUSE="beautifulsoup"
  12. RESTRICT="mirror"
  13. DEPEND=""
  14. RDEPEND="dev-libs/chmlib
  15.                 dev-python/pychm
  16.                 app-text/htmldoc
  17.                 beautifulsoup? ( dev-python/beautifulsoup ) "
复制代码
发表于 2008-12-14 02:18:34 | 显示全部楼层
不错,我也要试试。
不过ebuild的内容没贴完整吧?
回复 支持 反对

使用道具 举报

发表于 2008-12-14 04:45:36 | 显示全部楼层
  1. eix chm2pdf
  2. [i] app-text/chm2pdf [1]
  3.      Available versions:  (~)0.9.1
  4.      Installed versions:  0.9.1(02:38:02 PM 12/08/2008)
  5.      Homepage:            http://code.google.com/p/chm2pdf/
  6.      Description:         A script that converts a CHM file into a single PDF file.
  7. [1] "sunrise" /usr/local/portage/layman/sunrise
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-14 06:11:21 | 显示全部楼层
Post by druggo;1923644
不错,我也要试试。
不过ebuild的内容没贴完整吧?


呵呵,inherit distutils 之后就不需要别的了。
回复 支持 反对

使用道具 举报

发表于 2008-12-14 13:48:45 | 显示全部楼层
试了一个页面和数千都带中文的chm,转换结果都是乱码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-14 22:34:01 | 显示全部楼层
这个命令好多参数,你可以看看。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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