cutecom-0.20.0.ebuild,本人初学ebuild第三个练手作品 [by **与玫瑰]
时间:2008-03-26
来源:互联网
看到cutecom-0.20.0发布了,但没见着进portage,等不及了就就参考 cutecom-0.14.0.ebuild来写,因为新版本使用到了cmake, 基于Qt4的,所以代码通过qgrep 翻来翻去参考写出来的,想用cutecom的朋友可以一试
/net-dialup/cutecom-0.20.0.ebuild
练手作品,欢迎指点!
刚才注册了 [email protected]这个号进gentoo .bugs里面乱折腾了一下贴上去了,边打开stardict..英文烂的结果
/net-dialup/cutecom-0.20.0.ebuild
练手作品,欢迎指点!
刚才注册了 [email protected]这个号进gentoo .bugs里面乱折腾了一下贴上去了,边打开stardict..英文烂的结果
代码:
gentoo bugs 地址 http://bugs.gentoo.org/show_bug.cgi?id=214679
代码:
# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils qt4 cmake-utils kde-functions DESCRIPTION="CuteCom is a serial terminal, like minicom, written in qt" HOMEPAGE="http://cutecom.sourceforge.net" SRC_URI="http://cutecom.sourceforge.net/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="" RESTRICT="mirror" #for local overlay DEPEND="$(qt4_min_version 4.2)" RDEPEND="${DEPEND} net-dialup/lrzsz" src_compile() { #if has_version x11-libs/qt-core:4; then # ewarn "KDE 4.0.2 doesn't work well with Qt-4.4, expect strange bugs." # ewarn "It is highly recommend, that you install x11-libs/qt-4.3.4," # ewarn "recompile ${P} and all of its dependencies if you want" # ewarn "to use KDE 4.0.2." #fi cmake-utils_src_compile || die "src_compile fail" } src_install() { cmake-utils_src_install dobin cutecom dodoc README Changelog README make_desktop_entry cutecom "CuteCom" openterm } #------------------ 一个使用第三方ebuild的示例--------------------------- #sudo mkdir /usr/local/myportage/net-dialup/cutecom/ -p #cd /usr/local/myportage/net-dialup/cutecom/ #-------------------- #add PORTDIR_OVERLAY to /etc/make.conf #PORTDIR_OVERLAY="/usr/local/myportage" #PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/portage/local/layman/gentoo-china" #sudo sh -c "echo net-dialup/cutecom >> /etc/portage/package.keywords" #for ~x86 #sudo sh -c 'echo "net-dialup/cutecom >> /etc/portage/package.use' #这步不用 no IUSE #不用这一步 #sudo ebuild ./cutecom-0.20.0.ebuild digest #sudo sh -c "emerge cutecom -av" #cat /var/lib/portage/world | grep cutecom #--------------------------------------------- #test for ebuild #repoman scan #repoman full #--------------------------------------------- #==========联系方式========== # mailto: [email protected] # QQ: 3444542 # gmail: [email protected] # irc: irc.freenode.org/#gentoo-cn GunsNRose # blog: http://hi.baidu.com/3444542/blog #============================
作者: axlrose 发布时间: 2008-03-26
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28