设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Gentoo Linux
›
[ebuild]amule-svn-10254, 支持粘贴ed2k中文链接,优化 ...
返回列表
查看:
851
|
回复:
1
[ebuild]amule-svn-10254, 支持粘贴ed2k中文链接,优化了KAD搜索,优化了界面,等等。
[复制链接]
firefoxmmx
firefoxmmx
当前离线
积分
1877
IP卡
狗仔卡
发表于 2010-7-28 09:09:30
|
显示全部楼层
|
阅读模式
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils flag-o-matic wxwidgets
# bleeding-edge development
MY_P="aMule-SVN-r${PV}"
# 2_2_X branch, currently unavailable
# MY_P="aMule-SVN-r${PV}-RELEASE-2_2_X"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="aMule, the all-platform eMule p2p client"
HOMEPAGE="http://www.amule.org/"
SRC_URI="http://amule.sourceforge.net/tarballs/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="daemon debug geoip gtk nls remote stats unicode upnp xchat"
RESTRICT="nomirror"
DEPEND="=x11-libs/wxGTK-2.8*
>=dev-libs/crypto++-5.5.2
>=sys-libs/zlib-1.2.1
stats? ( >=media-libs/gd-2.0.26[jpeg] )
geoip? ( dev-libs/geoip )
upnp? ( >=net-libs/libupnp-1.6.6 )
remote? ( >=media-libs/libpng-1.2.0
unicode? ( >=media-libs/gd-2.0.26 ) )"
RDEPEND="$DEPEND
xchat? ( net-irc/xchat[perl] )"
pkg_setup() {
if ! use gtk && ! use remote && ! use daemon; then
eerror ""
eerror "You have to specify at least one of gtk, remote or daemon"
eerror "USE flag to build amule."
eerror ""
die "Invalid USE flag set"
fi
if use stats && ! use gtk; then
einfo "Note: You would need both the gtk and stats USE flags"
einfo "to compile aMule Statistics GUI."
einfo "I will now compile console versions only."
fi
}
pkg_preinst() {
if use daemon || use remote; then
enewgroup p2p
enewuser p2p -1 -1 /home/p2p p2p
fi
}
src_configure() {
local myconf
WX_GTK_VER="2.8"
if use gtk; then
einfo "wxGTK with gtk support will be used"
need-wxwidgets unicode
else
einfo "wxGTK without X support will be used"
need-wxwidgets base
fi
if use gtk ; then
use stats && myconf="${myconf}
--enable-wxcas
--enable-alc"
use remote && myconf="${myconf}
--enable-amule-gui"
else
myconf="
--disable-monolithic
--disable-amule-gui
--disable-wxcas
--disable-alc"
fi
econf \
--with-wx-config=${WX_CONFIG} \
--with-wxbase-config=${WX_CONFIG} \
--enable-amulecmd \
$(use_enable debug) \
$(use_enable !debug optimize) \
$(use_enable daemon amule-daemon) \
$(use_enable geoip) \
$(use_enable nls) \
$(use_enable remote webserver) \
$(use_enable stats cas) \
$(use_enable stats alcc) \
$(use_enable xchat xas) \
${myconf} || die
}
src_install() {
emake DESTDIR="${D}" install || die
if use daemon; then
newconfd "${FILESDIR}"/amuled.confd amuled
newinitd "${FILESDIR}"/amuled.initd amuled
fi
if use remote; then
newconfd "${FILESDIR}"/amuleweb.confd amuleweb
newinitd "${FILESDIR}"/amuleweb.initd amuleweb
fi
}
复制代码
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
pdfan
pdfan
当前离线
积分
166
IP卡
狗仔卡
发表于 2010-7-28 17:03:47
|
显示全部楼层
安装成功:
1。把文件命名为amule-10254.ebuild,放到 portage 目录,
2。ebuild amule-10254.ebuild manifest
3。emerge amule
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
服务器架设、应用、维护
开源软件专题讨论
Linux 输入开发与研究
Redhat/Fedora/CentOS Linux
Slackware Linux
LFS(LinuxfromScratch)
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表