LinuxSir.cn,穿越时空的Linuxsir!

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

cutecom-0.20.0.ebuild,本人初学ebuild第三个练手作品 [by 枪炮与玫瑰]

[复制链接]
发表于 2008-3-25 19:27:49 | 显示全部楼层 |阅读模式
看到cutecom-0.20.0发布了,但没见着进portage,等不及了就就参考 cutecom-0.14.0.ebuild来写,因为新版本使用到了cmake, 基于Qt4的,所以代码通过qgrep 翻来翻去参考写出来的,想用cutecom的朋友可以一试
/net-dialup/cutecom-0.20.0.ebuild
练手作品,欢迎指点!

刚才注册了 3444542@163.com这个号进gentoo .bugs里面乱折腾了一下贴上去了,边打开stardict..英文烂的结果
  1. gentoo bugs 地址
  2. http://bugs.gentoo.org/show_bug.cgi?id=214679
复制代码
  1. # Copyright 1999-2008 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header:  $
  4. inherit eutils qt4 cmake-utils kde-functions
  5. DESCRIPTION="CuteCom is a serial terminal, like minicom, written in qt"
  6. HOMEPAGE="http://cutecom.sourceforge.net"
  7. SRC_URI="http://cutecom.sourceforge.net/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86"
  11. IUSE=""
  12. RESTRICT="mirror"  #for local overlay
  13. DEPEND="$(qt4_min_version 4.2)"
  14. RDEPEND="${DEPEND}
  15.         net-dialup/lrzsz"
  16. src_compile() {
  17. #if has_version x11-libs/qt-core:4; then
  18. #        ewarn "KDE 4.0.2 doesn't work well with Qt-4.4, expect strange bugs."
  19. #        ewarn "It is highly recommend, that you install x11-libs/qt-4.3.4,"
  20. #        ewarn "recompile ${P} and all of its dependencies if you want"
  21. #        ewarn "to use KDE 4.0.2."
  22. #fi
  23.         cmake-utils_src_compile || die "src_compile fail"
  24. }
  25. src_install() {
  26.         cmake-utils_src_install
  27.         dobin cutecom
  28.         dodoc README Changelog README
  29.         make_desktop_entry cutecom "CuteCom" openterm
  30. }
  31. #------------------ 一个使用第三方ebuild的示例---------------------------
  32. #sudo mkdir /usr/local/myportage/net-dialup/cutecom/ -p
  33. #cd /usr/local/myportage/net-dialup/cutecom/
  34. #--------------------
  35. #add PORTDIR_OVERLAY to /etc/make.conf
  36. #PORTDIR_OVERLAY="/usr/local/myportage"
  37. #PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/layman/gentoo-china"
  38. #sudo sh -c "echo net-dialup/cutecom >> /etc/portage/package.keywords" #for ~x86
  39. #sudo sh -c 'echo "net-dialup/cutecom >> /etc/portage/package.use'  #这步不用 no IUSE
  40. #不用这一步
  41. #sudo ebuild ./cutecom-0.20.0.ebuild digest
  42. #sudo sh -c "emerge cutecom -av"
  43. #cat /var/lib/portage/world | grep cutecom
  44. #---------------------------------------------
  45. #test for ebuild
  46. #repoman scan
  47. #repoman full
  48. #---------------------------------------------
  49. #==========联系方式==========
  50. # mailto: 3444542@163.com
  51. # QQ: 3444542
  52. # gmail: zlbgps@gmail.com
  53. # irc: irc.freenode.org/#gentoo-cn   GunsNRose
  54. # blog: http://hi.baidu.com/3444542/blog
  55. #============================
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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