luacompat can go now, okay jolan@

This commit is contained in:
pedro 2006-07-30 04:54:51 +00:00
parent c0485370be
commit cb045297fb
8 changed files with 1 additions and 86 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.394 2006/07/20 09:23:48 espie Exp $
# $OpenBSD: Makefile,v 1.395 2006/07/30 04:54:51 pedro Exp $
# $FreeBSD: Makefile,v 1.85 1997/11/20 05:22:14 asami Exp $
SUBDIR += ElectricFence
@ -141,7 +141,6 @@
SUBDIR += libzvt
SUBDIR += lincvs
SUBDIR += luaalarm
SUBDIR += luacompat
SUBDIR += luacopas
SUBDIR += luafs
SUBDIR += luaposix

View File

@ -1,44 +0,0 @@
# $OpenBSD: Makefile,v 1.6 2006/03/26 04:47:43 pedro Exp $
COMMENT= "compatibility module for lua 5.1"
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
DISTNAME= compat-5.1r4
PKGNAME= luacompat-5.1r4
SHARED_LIBS= luacompat 5.1
DIST_SUBDIR= luacompat-5.1r4
CATEGORIES= devel
MASTER_SITES= http://luaforge.net/frs/download.php/952/
HOMEPAGE= http://www.keplerproject.org/compat/
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
BUILD_DEPENDS= ::lang/lua
RUN_DEPENDS= ${BUILD_DEPENDS}
post-extract:
@sed -e "s:@compatpath@:${PREFIX}/lua/luacompat/?.lua:g" \
${FILESDIR}/init.lua > ${WRKSRC}/init.lua
do-build:
cd ${WRKSRC};\
${CC} -o libluacompat.so.${LIBluacompat_VERSION} \
-I${LOCALBASE}/include -shared -fPIC compat-5.1.c
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lua/luacompat
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/lua/luacompat
${INSTALL_DATA} ${WRKSRC}/compat-5.1.lua ${PREFIX}/lua/luacompat
${INSTALL_DATA} ${WRKSRC}/compat-5.1.h ${PREFIX}/include/luacompat.h
${INSTALL_DATA} ${WRKSRC}/libluacompat.so.${LIBluacompat_VERSION} \
${PREFIX}/lib
.include <bsd.port.mk>

View File

@ -1,4 +0,0 @@
MD5 (luacompat-5.1r4/compat-5.1r4.tar.gz) = 7cfd21ed28b02ef78b6f9034406a8322
RMD160 (luacompat-5.1r4/compat-5.1r4.tar.gz) = 07a97a8eeebcb7348f02f81eb884ef3dbbf7f1dc
SHA1 (luacompat-5.1r4/compat-5.1r4.tar.gz) = 00d20857482f4dc7b49478c644aa3869cf122e42
SIZE (luacompat-5.1r4/compat-5.1r4.tar.gz) = 2790

View File

@ -1,4 +0,0 @@
-- $OpenBSD: init.lua,v 1.1.1.1 2005/04/19 14:48:09 pedro Exp $
-- luacompat's initialization steps
lua_addpath("@compatpath@")
require("compat-5.1")

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-compat-5_1_lua,v 1.4 2006/03/26 04:47:43 pedro Exp $
--- compat-5.1.lua.orig Sat Sep 3 10:15:56 2005
+++ compat-5.1.lua Sat Sep 3 10:17:12 2005
@@ -26,11 +26,11 @@ package.path = LUA_PATH or os.getenv("LU
"/usr/local/share/lua/5.0/?/?.lua;" ..
"/usr/local/share/lua/5.0/?/init.lua" )
-package.cpath = os.getenv("LUA_CPATH") or
- "./?.so;" ..
+package.cpath = LUA_CPATH or os.getenv("LUA_CPATH") or
+ ("./?.so;" ..
"./l?.so;" ..
"/usr/local/lib/lua/5.0/?.so;" ..
- "/usr/local/lib/lua/5.0/l?.so"
+ "/usr/local/lib/lua/5.0/l?.so")
--
-- make sure require works with standard libraries

View File

@ -1,3 +0,0 @@
luacompat-5.1 is a set of files which provides an implementation of the new
package model of Lua 5.1 to be used in Lua 5.0. The set of files consists of a
Lua file and a pair of a C source and header files.

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PFRAG.shared,v 1.2 2006/01/07 15:10:53 bernd Exp $
@lib lib/libluacompat.so.${LIBluacompat_VERSION}

View File

@ -1,9 +0,0 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/04/19 14:48:09 pedro Exp $
@unexec lua ${SYSCONFDIR}/lua/luapkg.lua del luacompat
%%SHARED%%
include/luacompat.h
lua/
lua/luacompat/
lua/luacompat/compat-5.1.lua
lua/luacompat/init.lua
@exec lua ${SYSCONFDIR}/lua/luapkg.lua add luacompat ${PREFIX}/lua/luacompat/init.lua