LinuxSir.cn,穿越时空的Linuxsir!

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

独立的飞信客户端linux fetion ebuild文件

[复制链接]
发表于 2008-4-28 21:19:11 | 显示全部楼层 |阅读模式
参考自
http://www.linuxsir.cn/bbs/thread327838.html
标题: 独立的飞信客户端linux fetion
AUR PKGBUILD存放位置 http://aur.archlinux.org/packages.php?ID=16633


官方网站 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以上版本, linux_fetion名字改为linux-fetion

修改版  v0.2.0版
好像叫linux-fetion这名字不是很合适,看有没有更适合的名字改了算了
正在试着加上  ~amd64 , 不过库用的是 xxx.a 的,不知64bit下编译能通过不,已更新到gentoo-china
net-im/linux-fetion  
$ cat linux-fetion-0.2.0.ebuild

#====================Start File==================================

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

  4. inherit eutils qt4

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


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

  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~x86"
  11. IUSE=""

  12. RESTRICT="mirror"


  13. DEPEND="|| ( ( x11-libs/qt-gui
  14.         x11-libs/qt-qt3support )
  15.         >=x11-libs/qt-4.3 )
  16.         virtual/libstdc++
  17.         >=sys-devel/automake-1.5
  18.         "

  19. RDEPEND="${DEPEND}
  20.         net-misc/curl
  21.         "




  22. src_compile()
  23. {
  24.         eqmake4 ${PN}.pro || die "qmake fail"
  25.         emake || die "emake fail"
  26. }

  27. src_install()
  28. {
  29.         insinto /usr/share/libfetion
  30.         doins fetion_utf8_CN.qm image
  31.         doins -r image

  32.         insinto /usr/share/applications
  33.         doins LibFetion.desktop

  34.         insinto /usr/share/pixmaps
  35.         doins fetion.png

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

  38.         dobin ${PN}
  39. }
复制代码

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


$ cat linux-fetion-0.1.2.ebuild



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

  4. inherit eutils qt4

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

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

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

  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="~x86"
  13. IUSE=""

  14. RESTRICT="mirror"


  15. DEPEND="|| ( ( x11-libs/qt-gui
  16.         x11-libs/qt-qt3support )
  17.         >=x11-libs/qt-4.3 )
  18.         virtual/libstdc++
  19.         >=sys-devel/automake-1.5
  20.         "

  21. RDEPEND="${DEPEND}
  22.         net-misc/curl
  23.         "


  24. S=${WORKDIR}/${MY_PN}


  25. src_unpack()
  26. {
  27.         unpack ${A}
  28.         cd "${S}"
  29.         epatch "${FILESDIR}/linux-fetion-desktop.patch"
  30.         echo -e "\nTARGET=${PN}\n" >> ${MY_PN}.pro
  31. }

  32. src_compile()
  33. {
  34.         eqmake4 ${MY_PN}.pro || die "qmake fail"
  35.         emake || die "emake fail"
  36. }

  37. src_install()
  38. {
  39.         insinto /usr/share/libfetion
  40.         doins fetion_utf8_CN.qm image
  41.         doins -r image

  42.         insinto /usr/share/applications
  43.         doins LinuxFetion.desktop

  44.         insinto /usr/share/pixmaps
  45.         doins fetion.png

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

  48.         dobin ${PN}
  49. }
复制代码

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

新增:
弄个debian版那边pidgin插件的链接过来
[精]    linux 下的飞信 4月10日 增加群组聊天功能,修复一个很大的BUG(建议全部升级)  
http://www.linuxsir.cn/bbs/thread320802.html
发表于 2008-4-28 23:42:23 | 显示全部楼层
我装了一个fetion,不过是自己编译的
但是,不能登录,卡在“服务器验证”那里了

console 也是显示 “no handle ”,然后就一动不动
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-29 10:13:04 | 显示全部楼层
我家里的机子昨天用这个ebuild安装成功的,能正常发送短信,感觉比pidgin的插件方式好用些
回复 支持 反对

使用道具 举报

发表于 2008-4-29 11:11:16 | 显示全部楼层
这和pidgin插件是一个作者吗?
回复 支持 反对

使用道具 举报

发表于 2008-5-5 23:33:32 | 显示全部楼层
# ebuild linux-fetion-0.1.1.ebuild digest
Appending /usr/local to PORTDIR_OVERLAY...
!!! /usr/local/portage/fetion/linux-fetion-0.1.1.ebuild does not seem to have a valid PORTDIR structure.

什么意思
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-6 00:55:22 | 显示全部楼层
Post by newsky_;1846174
# ebuild linux-fetion-0.1.1.ebuild digest
Appending /usr/local to PORTDIR_OVERLAY...
!!! /usr/local/portage/fetion/linux-fetion-0.1.1.ebuild does not seem to have a valid PORTDIR structure.

什么意思


  1. [axlrose@mygentoo linux-fetion] $ pwd
  2. /usr/local/myportage/net-misc/linux-fetion
  3. [axlrose@mygentoo linux-fetion] $ ls -lh
  4. 总计 8.0K
  5. -rwxr-xr-x 1 root root 1.3K 04-28 21:05 linux-fetion-0.1.1.ebuild
  6. -rw-r--r-- 1 root root  410 04-28 21:06 Manifest
复制代码


目录名字不对,还有就是记得把你的/usr/locale/portage加到你的你本地overlay里
记得gentoo wiki有这如何使用第三方ebuild文章,看一下就会用了
回复 支持 反对

使用道具 举报

发表于 2008-5-7 22:37:51 | 显示全部楼层
现在是1.2的了 ebuild之后emerge linux-fetion说找不到
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-8 09:30:28 | 显示全部楼层
  1. MY_PN=${PN/-/_}
  2. MY_P=${MY_PN}-v${PV}
  3. SRC_URI="http://www.libfetion.cn/download/App/${MY_P}.tar.gz"
  4. 会根据ebuild名来取得 PV 包版本号
  5. $ mv linux-fetion-0.1.1.ebuild  linux-fetion-0.1.2.ebuild
  6. $ ebuild  linux-fetion-0.1.2.ebuild digest
  7. $ emerge  linux-fetion
复制代码
试试吧,我旁边的机子安了二个小时的Qt4没编译完,所以放弃了,等回头到家里的机子上试一下
回复 支持 反对

使用道具 举报

发表于 2008-5-8 10:58:53 | 显示全部楼层
谢谢lz不过编译还是过不去,qt4在装kde4的时候装过了

f_curl.c.text+0x7e2): undefined reference to `curl_easy_perform'
f_curl.c.text+0x831): undefined reference to `curl_easy_cleanup'
./libfetion.a(f_curl.o): In function `get_usrinfo_by_uid':
f_curl.c.text+0x8b7): undefined reference to `curl_easy_init'
f_curl.c.text+0x8d1): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x8e9): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x8fd): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x917): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x94a): undefined reference to `curl_easy_setopt'
./libfetion.a(f_curl.o):f_curl.c.text+0x962): more undefined references to `curl_easy_setopt' follow
./libfetion.a(f_curl.o): In function `get_usrinfo_by_uid':
f_curl.c.text+0x982): undefined reference to `curl_easy_perform'
f_curl.c:(.text+0x9b7): undefined reference to `curl_easy_cleanup'
collect2: ld 返回 1
make: *** [linux-fetion] 错误 1
*
* ERROR: net-misc/linux-fetion-0.1.2 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2494:  Called die
* The specific snippet of code:
*       emake || die "emake fail"
*  The die message:
*   emake fail
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-misc/linux-fetion-0.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/linux-fetion-0.1.2/temp/environment'.
* This ebuild is from an overlay: '/usr/local/portage/myportage/'
*
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-8 13:45:07 | 显示全部楼层
好像跟  net-misc/curl 有关的样子,没Qt没法测试,回家再看看,不知其他网友有没有成功的经验,你要不试一下下载到本地手工编译一下,不过我猜可能也会有同样的错误
回复 支持 反对

使用道具 举报

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

本版积分规则

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