diff options
author | 2008-08-21 19:20:26 +0300 | |
---|---|---|
committer | 2008-08-21 19:20:26 +0300 | |
commit | 5f8b5e5ad0387865a263cc03c542161ed03b54ff (patch) | |
tree | b3f48ef89a872fe10edf4c7967f1cb9db9e82073 | |
parent | Add LICENSE, correct HOMEPAGE (diff) | |
download | hawking-5f8b5e5ad0387865a263cc03c542161ed03b54ff.tar.gz hawking-5f8b5e5ad0387865a263cc03c542161ed03b54ff.tar.bz2 hawking-5f8b5e5ad0387865a263cc03c542161ed03b54ff.zip |
Added dev-lua/lrexlib
-rw-r--r-- | dev-lua/lrexlib/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lua/lrexlib/Manifest | 3 | ||||
-rw-r--r-- | dev-lua/lrexlib/lrexlib-2.4.0.ebuild | 67 |
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-lua/lrexlib/ChangeLog b/dev-lua/lrexlib/ChangeLog new file mode 100644 index 0000000..67bff85 --- /dev/null +++ b/dev-lua/lrexlib/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-lua/lrexlib +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*lrexlib-2.4.0 (21 Aug 2008) + + 21 Aug 2008; Ali Polatel <hawking@gentoo.org> +lrexlib-2.4.0.ebuild: + Initial ebuild + diff --git a/dev-lua/lrexlib/Manifest b/dev-lua/lrexlib/Manifest new file mode 100644 index 0000000..e595d3d --- /dev/null +++ b/dev-lua/lrexlib/Manifest @@ -0,0 +1,3 @@ +DIST lrexlib-2.4.0.zip 62655 RMD160 6494022558dde0657dc3eb4aa819f9f0aec1f307 SHA1 efcf3de1cfba875e3f6d384d616f1591b1dc1519 SHA256 d8c1b0f4e1ff48c94dd6086bf58702731421d7ab5fac406e30623ace82f91082 +EBUILD lrexlib-2.4.0.ebuild 1410 RMD160 5d06f537932be5862f6151e95a076f996606c49c SHA1 26399fbfcf54cfad099fcc24620ff45109eb0293 SHA256 4e716f56546c2298b0fb96f3c5f82db90fa603ec35bfdf84f6c08e762afcc861 +MISC ChangeLog 235 RMD160 dfef3e9b646543b9e76e74f531ecdaaab689c302 SHA1 bf32f3c5c9de05b726f8f2e4f020ea11201c1b47 SHA256 b75cf7fca47365885f0345c2bcebacb5439b94cf20f15c7f631bc7e0351b6421 diff --git a/dev-lua/lrexlib/lrexlib-2.4.0.ebuild b/dev-lua/lrexlib/lrexlib-2.4.0.ebuild new file mode 100644 index 0000000..2f886af --- /dev/null +++ b/dev-lua/lrexlib/lrexlib-2.4.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="Binding of three regular expression libraries (POSIX, PCRE and Oniguruma) to Lua" +HOMEPAGE="http://luaforge.net/projects/lrexlib/" +SRC_URI="http://luaforge.net/frs/download.php/3599/${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc oniguruma pcre" + +RDEPEND=">=dev-lang/lua-5.1 + oniguruma? ( dev-libs/oniguruma ) + pcre? ( dev-libs/pcre )" +RDEPEND="${DEPEND} + app-arch/unzip" + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i \ + -e "s:\(MYCFLAGS =\):\1 -fPIC ${CFLAGS}:" \ + src/defaults.mak || die "sed failed" + + sed -i \ + -e "s/\(all:.*\)test/\1/" \ + Makefile || die "sed failed" + + if ! use pcre; then + sed -i \ + -e "s/build_pcre//g" \ + -e "s/test_pcre//g" \ + Makefile || die "sed failed" + fi + + if ! use oniguruma; then + sed -i \ + -e "s/build_onig//g" \ + -e "s/test_onig//g" \ + Makefile || die "sed failed" + fi +} + +src_install() { + if use doc; then + dohtml -r doc/* || die "dodoc failed" + fi + + local luaver= + luaver="$(lua -v 2>&1| cut -d' ' -f2)" + luaver="${luaver%.*}" + + insinto /usr/$(get_libdir)/lua/${luaver} + doins src/posix/rex_posix.so* || die "doins failed" + if use pcre; then + doins src/pcre/rex_pcre.so* || die "doins failed" + fi + if use oniguruma; then + doins src/oniguruma/rex_onig.so* || die "doins failed" + fi +} + |