ports/159378: [NEW PORT] lang/php-plua: PLua is a PHP extension which with the Lua interpreter embed in
Jin-Sih Lin
linpct at gmail.com
Tue Aug 2 10:40:13 UTC 2011
>Number: 159378
>Category: ports
>Synopsis: [NEW PORT] lang/php-plua: PLua is a PHP extension which with the Lua interpreter embed in
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 02 10:40:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jin-Sih Lin
>Release: FreeBSD 8.2-STABLE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD deep.tw 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Feb 25 14:49:48 CST 2011
>Description:
PLua is a PHP extension which with the Lua interpreter embed in.
WWW: http://code.google.com/p/plua/
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- php-plua-1.0.1.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# php-plua
# php-plua/Makefile
# php-plua/distinfo
# php-plua/pkg-descr
# php-plua/files
# php-plua/files/patch-config.m4
# php-plua/pkg-plist
#
echo c - php-plua
mkdir -p php-plua > /dev/null 2>&1
echo x - php-plua/Makefile
sed 's/^X//' >php-plua/Makefile << '6d75e9d273517d8bd3136b41c03bee4f'
X# New ports collection makefile for: php-plua
X# Date created: 2011-08-02
X# Whom: Jin-Sih Lin <linpct at gmail.com>
X#
X# $FreeBSD:$
X#
X
XPORTNAME= plua
XPORTVERSION= 1.0.1
XCATEGORIES= lang
XMASTER_SITES= GOOGLE_CODE
XPKGNAMEPREFIX= php-
X
XMAINTAINER= linpct at gmail.com
XCOMMENT= PLua is a PHP extension which with the Lua interpreter embed in
X
XCFLAGS+= -I${LOCALBASE}/include
XCONFIGURE_ARGS= --with-plua=${LUA_INCDIR} --with-lua-lib=${LUA_LIBDIR}
X
XUSE_LUA= 5.1
XWANT_LUA_VER= 5.1
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
XUSE_PHP= yes
XIGNORE_WITH_PHP=4
XUSE_PHPIZE= yes
XPHP_MODNAME= ${PORTNAME}
X
Xpre-install:
X @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
X @${INSTALL_DATA} ${WRKSRC}/modules/${PHP_MODNAME}.so \
X ${PREFIX}/lib/php/${PHP_EXT_DIR}
X. for header in . ${PHP_HEADER_DIRS}
X @${MKDIR} ${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
X @${INSTALL_DATA} ${WRKSRC}/${header}/*.h \
X ${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
X. endfor
X @${RM} -f ${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
X @${GREP} "#define \(COMPILE\|HAVE\|USE\)_" ${WRKSRC}/config.h \
X > ${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
X @${ECHO_CMD} \#include \"ext/${PHP_MODNAME}/config.h\" \
X >> ${PREFIX}/include/php/ext/php_config.h
X @${MKDIR} ${PREFIX}/etc/php
X @${ECHO_CMD} extension=${PHP_MODNAME}.so \
X >> ${PREFIX}/etc/php/extensions.ini
X
X.include <bsd.port.mk>
6d75e9d273517d8bd3136b41c03bee4f
echo x - php-plua/distinfo
sed 's/^X//' >php-plua/distinfo << '997610261807ca24f95d886f59746ad8'
XSHA256 (plua-1.0.1.tar.gz) = a158bac9871f69090b850577b4b21200a2554bd4c15dba48b2ad6fabf58237d0
XSIZE (plua-1.0.1.tar.gz) = 7191
XSHA256 (/usr/ports/lang/php-plua/files/patch-config.m4) = 8491441bc822c42eeeae960decc42344899e33e73cc6ac8ef761588709db5d8c
XSIZE (/usr/ports/lang/php-plua/files/patch-config.m4) = 1323
997610261807ca24f95d886f59746ad8
echo x - php-plua/pkg-descr
sed 's/^X//' >php-plua/pkg-descr << '0b36ff0b3ac4ce1d457b61f32c8a0a22'
XPLua is a PHP extension which with the Lua interpreter embed in.
X
XWWW: http://code.google.com/p/plua/
0b36ff0b3ac4ce1d457b61f32c8a0a22
echo c - php-plua/files
mkdir -p php-plua/files > /dev/null 2>&1
echo x - php-plua/files/patch-config.m4
sed 's/^X//' >php-plua/files/patch-config.m4 << '360fa08d6b7bfa556352081f159f5a8f'
X--- config.m4.orig 2011-08-02 15:25:42.000000000 +0800
X+++ config.m4 2011-08-02 15:27:37.000000000 +0800
X@@ -1,9 +1,9 @@
X dnl $Id: config.m4 2 2011-06-18 12:51:46Z laruence at gmail.com $
X-PHP_ARG_WITH(plua, for lua support,
X-[ --with-plua=[DIR] Include php lua support])
X+PHP_ARG_WITH(plua, for lua support, [ --with-plua=[DIR] Include php lua support])
X+PHP_ARG_WITH(lua_lib, for lua lib support, [ --with-lua_lib=[DIR] Include php lua lib support])
X
X if test "$PHP_PLUA" != "no"; then
X- if test -r $PHP_PLUA/include/lua.h; then
X+ if test -r $PHP_PLUA/lua.h; then
X LUA_DIR=$PHP_PLUA
X else
X AC_MSG_CHECKING(for lua in default path)
X@@ -23,8 +23,8 @@
X
X LUA_LIB_NAME=lua
X
X- if test -r $PHP_PLUA/$PHP_LIBDIR/lib${LUA_LIB_NAME}.a; then
X- LUA_LIB_DIR=$PHP_PLUA/$PHP_LIBDIR
X+ if test -r $PHP_LUA_LIB/lib${LUA_LIB_NAME}.a; then
X+ LUA_LIB_DIR=$PHP_LUA_LIB
X else
X AC_MSG_CHECKING(for lua library in default path)
X for i in /usr/lib /usr/lib64; do
X@@ -41,7 +41,7 @@
X AC_MSG_ERROR(Please reinstall the lua distribution - lua library should be in <lua-dir>/lib/)
X fi
X
X- PHP_ADD_INCLUDE($LUA_DIR/include)
X+ PHP_ADD_INCLUDE($LUA_DIR)
X PHP_ADD_LIBRARY_WITH_PATH(lua, $LUA_LIB_DIR, PLUA_SHARED_LIBADD)
X PHP_SUBST(PLUA_SHARED_LIBADD)
X PHP_NEW_EXTENSION(plua, plua.c, $ext_shared)
360fa08d6b7bfa556352081f159f5a8f
echo x - php-plua/pkg-plist
sed 's/^X//' >php-plua/pkg-plist << 'f9353e63c4e09bc634fd12bdd3d62339'
Xinclude/php/ext/plua/config.h
Xinclude/php/ext/plua/php_plua.h
Xlib/php/%%PHP_EXT_DIR%%/plua.so
X at dirrmtry lib/php/%%PHP_EXT_DIR%%
X at dirrmtry include/php/ext/plua
f9353e63c4e09bc634fd12bdd3d62339
exit
--- php-plua-1.0.1.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list