改写了一个xmind的ebuild

发布: 2010-04-13 09:51

XMind是一款开源且跨平台的思维导图软件,相比其他同类软件功能更强更专业。不过它的高级版要收费,在些提供的是基础版,不过一般情况也够用了。

提供一个ebuild,希望能为使用Gentoo Linux的人员提供方便。
xmind-3.1.1.ebuild
[code type="bash"]
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="This is a sample skeleton ebuild file"
HOMEPAGE="http://ubuntu-tweak.com/"
# SRC_URI="ftp://foo.bar.com/${P}.tar.bz2"
RELDATE=200912022330
SRC_URI="http://dl.xmind.org/xmind-portable-${PV}.${RELDATE}.zip"

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

DEPEND=""
RDEPEND="${DEPEND}"

src_install(){
XMIND_HOME=/opt/xmind/
insinto ${XMIND_HOME}
# cd ${S}
cd .

doins -r *
# fperms 755 /usr/local/xmind/xmind
fperms 755 ${XMIND_HOME}/XMind_Linux_64bit/xmind-bin
fperms 755 ${XMIND_HOME}/XMind_Linux_64bit/xmind
fperms 755 ${XMIND_HOME}/XMind_Linux/xmind-bin

# Create openproj wrapper /usr/bin/filename exec file name exec dir libpat
h
make_wrapper xmind "${XMIND_HOME}/XMind_Linux_64bit/xmind-bin -data \${HOME}/.xmind" \${HOME} ${XMIND
_HOME}/lib:${XMIND_HOME}
// newicon "${FILESDIR}"/openproj.png ${PN}.png
make_desktop_entry XMind "xmind" ${PN} "Develop"
}
[/code]

一张效果图:



原文: http://qtchina.tk/?q=node/422

Powered by zexport