gretl是个计量经济学的软件,portage里还没有ebuild,我试着写了个,贴到Bugzilla了:http://bugs.gentoo.org/show_bug.cgi?id=39966。装了gretl-1.5.1感觉挺不错。
[code:1]# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
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
}[/code:1]
装之前别忘了
[code:1]# echo 'sci-mathematics/gretl ~x86' >> /etc/portage/package.keywords
# ebuild /usr/local/portage/sci-mathematics/gretl/gretl-1.5.1.ebuild digest[/code:1]
这儿有个贴图: