gretl的ebuild
gretl是个计量经济学的软件,portage里还没有ebuild,我试着写了个,贴到Bugzilla了:http://bugs.gentoo.org/show_bug.cgi?id=39966。装了gretl-1.5.1感觉挺不错。# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils gnome2
DESCRIPTION="gretl is a cross-platform software package for econometric analysis"
HOMEPAGE="http://gretl.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="gmp gnome gtk2 gtkextra ole2 readline sourceview"
DEPEND="x11-libs/gtk+
dev-libs/libxml2
sci-visualization/gnuplot
sci-libs/lapack
media-libs/gdk-pixbuf
sourceview? (x11-libs/gtksourceview)
readline? (sys-libs/readline)
gnome? (gnome-base/gnome)
gmp? (dev-libs/gmp)
!gtk2 (
ole2? (dev-libs/libole2)
)"
RDEPEND=""
src_compile() {
local myconf
if ! use gtk2 ; then
ewarn "Running ${PN} without GTK+-2.0 reduces functionality"
myconf="${myconf} --without-gtk2"
if ! use ole2 ; then
myconf="${myconf} --without-libole2"
fi
if ! use gtkextra ; then
myconf="${myconf} --without-gtkextra"
fi
fi
if ! use gnome ; then
myconf="${myconf} --without-gnome"
fi
econf|| die "configure failed"
emake || die "emake failed"
}
src_install() {
make check
if use gnome ; then
gnome2_src_install\
gnome_prefix=${D}/usr\
langdir=${D}/usr/share/gtksourceview-1.0/language-specs
else
make prefix=${D}/usr\
bindir=${D}/usr/bin\
mandir=${D}/usr/share/man\
infodir=${D}/usr/share/info\
datadir=${D}/usr/share\
gretldir=${D}/usr/share/gretl\
localedir=${D}/usr/share/locale\
langdir=${D}/usr/share/gtksourceview-1.0/language-specs\
libdir=${D}/usr/$(get_libdir)\
sysconfdir=${D}/etc\
install || die
fi
}
装之前别忘了
# echo 'sci-mathematics/gretl ~x86' >> /etc/portage/package.keywords
# ebuild /usr/local/portage/sci-mathematics/gretl/gretl-1.5.1.ebuild digest
这儿有个贴图: 不懂是什么东东, :oops:
Hauser的贴都热情如火的顶一顶:mrgreen: 不懂是什么东东, :oops:
Hauser的贴都热情如火的顶一顶:mrgreen: 不懂是什么东东, :oops:
Hauser的贴都热情如火的顶一顶:mrgreen:
PS:楼上俩都是好色之徒 貌似统计学的软件啊! 不懂.......................统计学 :arrow: 貌似统计学的软件啊!
计量经济学可算是应用统计学的一种,主要是用regression来分析经济数据,衡量经济变量之间的关系。
页:
[1]