diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-05 21:09:17 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-05 21:09:17 +0000 |
commit | 82a93d3d84d60b9b70c6a8a54db2408de774b812 (patch) | |
tree | a99f79035f0e965ad1e09437618360e800a039c6 /dev-lua/luvit | |
parent | adding in a bunch of new versions of this as they are needed for different ve... (diff) | |
download | gentoo-2-82a93d3d84d60b9b70c6a8a54db2408de774b812.tar.gz gentoo-2-82a93d3d84d60b9b70c6a8a54db2408de774b812.tar.bz2 gentoo-2-82a93d3d84d60b9b70c6a8a54db2408de774b812.zip |
version bump, update live ebuild
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'dev-lua/luvit')
-rw-r--r-- | dev-lua/luvit/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lua/luvit/luvit-0.6.1.ebuild | 82 | ||||
-rw-r--r-- | dev-lua/luvit/luvit-9999.ebuild | 4 |
3 files changed, 91 insertions, 3 deletions
diff --git a/dev-lua/luvit/ChangeLog b/dev-lua/luvit/ChangeLog index a72e2f61a412..3afbbb49cac9 100644 --- a/dev-lua/luvit/ChangeLog +++ b/dev-lua/luvit/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lua/luvit # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luvit/ChangeLog,v 1.1 2013/01/01 16:36:54 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luvit/ChangeLog,v 1.2 2013/03/05 21:09:17 hasufell Exp $ + +*luvit-0.6.1 (05 Mar 2013) + + 05 Mar 2013; Julian Ospald <hasufell@gentoo.org> +luvit-0.6.1.ebuild, + luvit-9999.ebuild: + version bump, update live ebuild *luvit-9999 (01 Jan 2013) *luvit-0.6_p20121221 (01 Jan 2013) diff --git a/dev-lua/luvit/luvit-0.6.1.ebuild b/dev-lua/luvit/luvit-0.6.1.ebuild new file mode 100644 index 000000000000..684171f62ea5 --- /dev/null +++ b/dev-lua/luvit/luvit-0.6.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luvit/luvit-0.6.1.ebuild,v 1.1 2013/03/05 21:09:17 hasufell Exp $ + +EAPI=5 + +inherit toolchain-funcs multilib + +# TODO: FHS https://github.com/luvit/luvit/issues/379 + +DESCRIPTION="Takes node.js' architecture and dependencies and fits it in the Lua language" +HOMEPAGE="http://luvit.io/" +SRC_URI="http://luvit.io/dist/latest/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="examples +system-libs" +# luvit Apache-2.0 +# luajit MIT +# yajl BSD +LICENSE="Apache-2.0 MIT !system-libs? ( BSD )" + +# fails in portage environment +# succeeds if run manually +RESTRICT="test" + +RDEPEND=" + dev-libs/openssl:0 + sys-libs/zlib + system-libs? ( + >=dev-libs/yajl-2.0.4 + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + if use system-libs ; then + MY_YAJL_VERSION=$(pkg-config --modversion yajl) + sed -i \ + -e "s:^YAJL_VERSION=.*:YAJL_VERSION=${MY_YAJL_VERSION}:" \ + Makefile || die "setting yajl version failed" + fi + + sed -i \ + -e "s/-Werror//" \ + -e "s/-O3//" \ + deps/http-parser/Makefile || die "fixing flags failed!" +} + +src_configure() { + # skip retarded gyp build system + : +} + +src_compile() { + tc-export CC AR + + myemakeargs=( + DEBUG=0 + WERROR=0 + USE_SYSTEM_SSL=1 + # bundled luajit is compiled with special flags + USE_SYSTEM_LUAJIT=0 + USE_SYSTEM_ZLIB=1 + USE_SYSTEM_YAJL=$(usex system-libs "1" "0") + PREFIX=/usr + LIBDIR="${D}"/usr/$(get_libdir)/${PN} + DESTDIR="${D}" + ) + + emake "${myemakeargs[@]}" all +} + +src_install() { + emake "${myemakeargs[@]}" install + dodoc TODO ChangeLog README.markdown errors.markdown + + if use examples ; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} diff --git a/dev-lua/luvit/luvit-9999.ebuild b/dev-lua/luvit/luvit-9999.ebuild index fb985f6e0aa9..bdf17b4099fc 100644 --- a/dev-lua/luvit/luvit-9999.ebuild +++ b/dev-lua/luvit/luvit-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luvit/luvit-9999.ebuild,v 1.1 2013/01/01 16:36:54 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luvit/luvit-9999.ebuild,v 1.2 2013/03/05 21:09:17 hasufell Exp $ EAPI=5 @@ -28,7 +28,7 @@ RDEPEND=" dev-libs/openssl:0 sys-libs/zlib system-libs? ( - >=dev-libs/yajl-2.0.2 + >=dev-libs/yajl-2.0.4 )" DEPEND="${RDEPEND} virtual/pkgconfig" |