Commits

Nikolaj Sjujskij committed a220ba6

Add dev-lua/lgi, not depending on GTK+

Comments (0)

Files changed (2)

dev-lua/lgi/Manifest

+DIST lgi-0.6.2.tar.gz 257541 SHA256 93b0a520f03822794d94cb86273d0744a3808792e2832b67f17ee03d7ded8773 SHA512 02b75f17f98d7f7240c335384a85cdb0bb1c1b117b4ea8baa065715c4e5ecac946618ef83f92ef476a87db3a17a29a0e21d71f4f79db3bc4e519cf795ae181f5 WHIRLPOOL 52b9165691691fc6214ee5697fd92e5aebacc39b1d5c461c67846545c026523c503ff3abc8820373756f5e2e755b85493763ac4f241f44917d578bf899bf9947
+EBUILD lgi-0.6.2.ebuild 1057 SHA256 53b2f01155504fdbb075167578878853e07cdb0f65735e6ca2d2e7fc9531ff52 SHA512 9f7c8f91523275d37c86c4da579dcc3cea8216d4014d98bdf0c1371255b39eeb8f8e13b1d3edc3c5cd3d52aa48ed3d0268e0b8687a49abcd40ac8ba0af21c1bc WHIRLPOOL 508b4c6cece216c4d7bff648c4865955f63740169a9f4d0df0b1a1bcf3b8a2c36511e53ee8f3ac08c83dd4537df2c7762392b9c743a2c56f9ef868f6308c7f5b

dev-lua/lgi/lgi-0.6.2.ebuild

+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/lgi/lgi-0.6.2.ebuild,v 1.2 2012/11/29 16:29:47 mr_bones_ Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Lua bindings using gobject-introspection"
+HOMEPAGE="http://github.com/pavouk/lgi"
+SRC_URI="http://github.com/downloads/pavouk/lgi/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1
+		dev-libs/gobject-introspection"
+DEPEND="${RDEPEND}
+		virtual/pkgconfig"
+
+src_prepare() {
+	sed -i \
+		-e "s:^LUA_LIBDIR.*$:LUA_LIBDIR = $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua):" \
+		-e "s:^LUA_SHAREDIR.*$:LUA_SHAREDIR = $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua):" \
+		"${S}"/lgi/Makefile || die "sed failed"
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" COPTFLAGS="-Wall -Wextra ${CFLAGS}" LIBFLAG="-shared ${LDFLAGS}"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	dohtml -r docs/*
+	dodoc README.md
+}