QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1153|回复: 6

gretl的ebuild

[复制链接]
发表于 2006-4-17 15:02:38 | 显示全部楼层 |阅读模式
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: $

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
}[/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]
这儿有个贴图:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2006-4-17 16:18:47 | 显示全部楼层
不懂是什么东东,
Hauser的贴都热情如火的顶一顶  
回复

使用道具 举报

发表于 2006-4-17 20:14:03 | 显示全部楼层
[quote:20a093f376="道"]不懂是什么东东,
Hauser的贴都热情如火的顶一顶  [/quote]
回复

使用道具 举报

发表于 2006-4-17 22:07:44 | 显示全部楼层
[quote:7e8d67d673="limit"][quote:7e8d67d673="道"]不懂是什么东东,
Hauser的贴都热情如火的顶一顶  [/quote][/quote]

PS:楼上俩都是好色之徒
回复

使用道具 举报

发表于 2006-4-18 14:02:12 | 显示全部楼层
貌似统计学的软件啊!
回复

使用道具 举报

发表于 2006-4-18 20:52:32 | 显示全部楼层
不懂.......................统计学
回复

使用道具 举报

 楼主| 发表于 2006-4-18 22:20:45 | 显示全部楼层
[quote:310e40892a="muraji"]貌似统计学的软件啊![/quote]
计量经济学可算是应用统计学的一种,主要是用regression来分析经济数据,衡量经济变量之间的关系。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-10-2 00:54 , Processed in 0.048141 second(s), 17 queries .

© 2021 Powered by Discuz! X3.5.

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