diff --git a/lua/lua-random/lua-random-make-install.patch b/lua/lua-random/lua-random-make-install.patch new file mode 100644 index 000000000..b77797fb3 --- /dev/null +++ b/lua/lua-random/lua-random-make-install.patch @@ -0,0 +1,54 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../lua-random/lua-random-make-install.patch +# Copyright (C) 2010 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Description: Add an 'install' make target and set reasonable default directories + +--- random/Makefile.orig 2010-10-21 14:22:30.558695115 +0200 ++++ random/Makefile 2010-10-21 14:22:33.778695814 +0200 +@@ -1,16 +1,12 @@ + # makefile for random library for Lua + +-# change these to reflect your Lua installation +-LUA= /tmp/lhf/lua-5.1.4 +-LUAINC= $(LUA)/src +-LUALIB= $(LUA)/src +-LUABIN= $(LUA)/src +- + # these will probably work if Lua has been installed globally +-#LUA= /usr/local +-#LUAINC= $(LUA)/include +-#LUALIB= $(LUA)/lib +-#LUABIN= $(LUA)/bin ++LUA= /usr/local ++LUAINC= $(LUA)/include ++LUALIB= $(LUA)/lib ++LUABIN= $(LUA)/bin ++ ++LUACMOD= $(LUALIB)/lua/5.1 + + # probably no need to change anything below here + CC= gcc +@@ -47,6 +43,10 @@ doc: + @echo "$(MYNAME) library:" + @fgrep '/**' $(MYLIB).c | cut -f2 -d/ | tr -d '*' | sort | column + ++install: all ++ mkdir -p $(LUACMOD) ++ cp -v $T $(LUACMOD) ++ + # distribution + + FTP= www:www/ftp/lua/5.1 diff --git a/lua/lua-random/lua-random-make-no-test.patch b/lua/lua-random/lua-random-make-no-test.patch new file mode 100644 index 000000000..572bc9cae --- /dev/null +++ b/lua/lua-random/lua-random-make-no-test.patch @@ -0,0 +1,32 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../lua-random/lua-random-make-no-test.patch +# Copyright (C) 2010 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Description: Do not run 'test' make target by default + +--- random/Makefile.install 2010-10-21 14:24:49.438696310 +0200 ++++ random/Makefile 2010-10-21 14:25:19.606696291 +0200 +@@ -22,9 +22,9 @@ T= $(MYNAME).so + OBJS= $(MYLIB).o + TEST= test.lua + +-all: test ++all: $T + +-test: $T ++test: all + $(LUABIN)/lua $(TEST) + + o: $(MYLIB).o diff --git a/lua/lua-random/lua-random.conf b/lua/lua-random/lua-random.conf new file mode 100644 index 000000000..32d2aeb58 --- /dev/null +++ b/lua/lua-random/lua-random.conf @@ -0,0 +1,16 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../lua-random/lua-random.conf +# Copyright (C) 2010 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +var_append makeopt ' ' "LUA=$( pkgprefix -r lua )" +var_insert makeinstopt ' ' "LUA=$( pkgprefix -r lua )" diff --git a/lua/lua-random/lua-random.desc b/lua/lua-random/lua-random.desc new file mode 100644 index 000000000..15e1fa801 --- /dev/null +++ b/lua/lua-random/lua-random.desc @@ -0,0 +1,34 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../lua-random/lua-random.desc +[COPY] Copyright (C) 2010 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A library for generating pseudo random numbers for Lua 5.1 + +[T] lua-random is a library for generating random numbers based on the Mersenne +[T] Twister (MT), an algorithm for generating pseudo random numbers developed +[T] by Makoto Matsumoto and Takuji Nishimura. + +[U] http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lrandom + +[A] Luiz Henrique de Figueiredo +[M] The OpenSDE Community + +[C] extra/development +[F] LUA + +[L] PublicDomain +[S] Stable +[V] 5.1-20100317 +[P] X -----5---9 800.000 + +[D] 2204844284 lua-random-5.1-20100317.tar.gz !http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/lrandom.tar.gz