+ -
当前位置:首页 → 问答吧 → cutecom-0.20.0.ebuild,本人初学ebuild第三个练手作品 [by **与玫瑰]

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..英文烂的结果
代码:
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

热门下载

更多