Summary: | net-analyzer/rrdtool: add support for LuaJIT | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vadim A. Misbakh-Soloviov (mva) <mva> |
Component: | Current packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andreis.vinogradovs |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
rrdtool-1.4.7-r3.ebuild
new ebuild (based on rrdtool-1.4.8-r1) Patch to =net-analyzer/rrdtool-1.4.8-r1 |
Description
Vadim A. Misbakh-Soloviov (mva)
2013-03-08 18:59:46 UTC
Created attachment 341332 [details]
rrdtool-1.4.7-r3.ebuild
Comment on attachment 341332 [details]
rrdtool-1.4.7-r3.ebuild
--- rrdtool-1.4.7-r2.ebuild 2013-03-06 17:28:54.000000000 +0100
+++ - 2013-03-09 18:15:16.313770880 +0100
@@ -1,11 +1,12 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/rrdtool-1.4.7-r2.ebuild,v 1.3 2013/03/06 16:28:54 jer Exp $
+# $Header: $
EAPI="5"
GENTOO_DEPEND_ON_PERL="no"
PYTHON_COMPAT=( python2_7 )
+
inherit eutils distutils-r1 flag-o-matic multilib perl-module autotools
DESCRIPTION="A system to store and display time-series data"
@@ -15,7 +16,7 @@
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos ~x86-solaris"
-IUSE="dbi doc +graph lua perl python ruby rrdcgi static-libs tcl tcpd"
+IUSE="dbi doc +graph lua luajit perl python ruby rrdcgi static-libs tcl tcpd"
RDEPEND="
>=dev-libs/glib-2.28.7[static-libs=]
@@ -24,9 +25,10 @@
graph? (
>=media-libs/libpng-1.5.10[static-libs=]
>=x11-libs/cairo-1.10.2[svg,static-libs=]
- >=x11-libs/pango-1.28
+ >=x11-libs/pango-1.28
)
- lua? ( dev-lang/lua[deprecated] )
+ lua? ( || ( virtual/lua >=dev-lang/lua-5[deprecated] dev-lang/luajit:2 ) )
+ luajit? ( dev-lang/luajit:2 )
perl? ( dev-lang/perl )
python? ( ${PYTHON_DEPS} )
ruby? ( >=dev-lang/ruby-1.8.6_p287-r13 )
@@ -103,7 +105,9 @@
}
src_compile() {
- default
+ local lua=lua;
+ use luajit && lua=luajit;
+ emake LUA_INSTALL_CMOD="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD ${lua})" LUA_INSTALL_LMOD="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})" || die "make install failed"
use python && distutils-r1_src_compile
}
Created attachment 378462 [details]
new ebuild (based on rrdtool-1.4.8-r1)
Created attachment 378464 [details, diff]
Patch to =net-analyzer/rrdtool-1.4.8-r1
Alternatively, here is a patch for current in-tree ebuild
ping? (In reply to Vadim A. Misbakh-Soloviov (mva) from comment #5) > ping? Just go for it (with the new eclasses, I guess). luajit is in current version 1.7.2 and it's stable, so closing here. |