linux feiton ebuild linux下的飞信 [原创]

官方网站 http://libfetion.cn/
下载首页 http://www.libfetion.cn/Linux_demoapp_download.html

依赖 DEPEND="x11-libs/qt        net-misc/curl          virtual/libstdc++ " 所以有Qt洁P的朋友就只有等到GTK版的出来再说了, 看了代码要使用Qt4,就直接把DEPEND改成要Qt4.3以上了

$ cat linux-fetion-0.1.1.ebuild
#====================Start File==================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils qt4

DESCRIPTION="Linux Fetion a KDE IM client, Using CHINA MOBILE's Fetion Protocol "
HOMEPAGE="http://www.libfetion.cn/"

MY_PN=${PN/-/_}
MY_P=${MY_PN}-v${PV}

SRC_URI="http://www.libfetion.cn/download/App/${MY_P}.tar.gz"

LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RESTRICT="mirror"


DEPEND="|| ( ( x11-libs/qt-gui:4
                        x11-libs/qt-qt3support:4 )
                        >=x11-libs/qt-4.3:4 )
                         virtual/libstdc++
                        >=sys-devel/automake-1.5
"

RDEPEND="${DEPEND}
         net-misc/curl
"


S=${WORKDIR}/${MY_PN}


src_unpack()
{
        unpack "${A}"
        cd "${S}"
        echo -e "\nTARGET=${PN}\n" | tee -a ${MY_PN}.pro
}

src_compile()
{
        eqmake4 ${MY_PN}.pro || die "qmake fail"
        emake || die "emake fail"
}

src_install()
{
        dodir /usr/share/libfetion
        dodir /usr/share/applications
        dodir /usr/share/pixmaps

        insinto /usr/share/libfetion
        doins fetion_utf8_CN.qm
        fperms 644 /usr/share/libfetion/fetion_utf8_CN.qm

        insinto /usr/share/libfetion
        doins -r image
        diropts 0755 /usr/share/libfetion/image

        insinto /usr/share/applications
        doins LinuxFetion.desktop

        insinto /usr/share/pixmaps
        doins fetion.png
        insinto /usr/share/app-install/icons
        doins fetion.png

        dobin ${PN}
}

#====================End File==================================

你可能感兴趣的:(#gentoo)