diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-05-26 15:28:28 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-05-26 15:28:28 +0000 |
| commit | e836ab008ac38916a93472f2840e03e2e8470ef5 (patch) | |
| tree | 1485083919fd5b153bf056ea17ac895ea758a8a9 /lang/lua | |
| parent | - New port: devel/catch (diff) | |
Replace lang/lua with the new lang/lua51
lang/lua51 is working the same way lang/lua52, chase ports using lua 5.1
Make the default lua lua52
Make all lua ports using USES=lua
Approved by: portmgr (implicit)
Notes
Notes:
svn path=/head/; revision=355360
Diffstat (limited to 'lang/lua')
| -rw-r--r-- | lang/lua/Makefile | 127 | ||||
| -rw-r--r-- | lang/lua/distinfo | 2 | ||||
| -rw-r--r-- | lang/lua/files/patch-src-Makefile | 44 | ||||
| -rw-r--r-- | lang/lua/pkg-descr | 21 | ||||
| -rw-r--r-- | lang/lua/pkg-plist | 24 |
5 files changed, 0 insertions, 218 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile deleted file mode 100644 index 7adf49bdb413..000000000000 --- a/lang/lua/Makefile +++ /dev/null @@ -1,127 +0,0 @@ -# Created by: Richard Kiss -# $FreeBSD$ - -PORTNAME= lua -PORTVERSION= 5.1.5 -PORTREVISION= 6 -CATEGORIES= lang -MASTER_SITES= http://www.lua.org/ftp/ \ - ftp://ftp.ntua.gr/pub/lang/lua/ \ - ftp://ftp.gwdg.de/pub/languages/lua/ - -MAINTAINER= lua@FreeBSD.org -COMMENT= Small, compilable scripting language providing easy access to C code - -LICENSE= MIT - -PORTSCOUT= limit:^5\.1 - -PATCH_WRKSRC= ${WRKSRC}/src -USE_LUA= 5.1 -LUA_COMPS= # only define variables -ALL_TARGET= freebsd -USES= pkgconfig -USE_LDCONFIG= yes -MAKE_ENV= LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}" -# Overriding __MAKE_CONF makes sure that we don't re-parse -# /etc/make.conf during do-build, which would jeopardize the build -# if, for instance, the user set CFLAGS=mumble -# NOTE: /etc/make.conf is read BEFORE Makefile, so we already -# have its settings when we get here. -# See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt -MAKE_ARGS= __MAKE_CONF=${NONEXISTENT} -# liblua.so requires libm, so make sure it has an explicit dependency -# so that applications need not second-guess lua's dependencies. -LDFLAGS+= -lm -pthread - -MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1 -DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR} -PORTDOCS= * -LATEST_LINK= ${LUA_SUBDIR} - -LUA_BIN= lua luac -LUA_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp -LUA_ETC= Makefile README all.c lua.ico luavs.bat min.c \ - noparser.c strict.lua -LUA_TEST= README bisect.lua cf.lua echo.lua env.lua factorial.lua \ - fib.lua fibfor.lua globals.lua hello.lua life.lua luac.lua \ - printf.lua readonly.lua sieve.lua sort.lua table.lua \ - trace-calls.lua trace-globals.lua xd.lua - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" || ${ARCH} == "powerpc" -CFLAGS+= -fPIC -.endif - -post-patch: - @${REINPLACE_CMD} -Ee \ - '/^INSTALL_.*=/s/INSTALL_TOP/prefix/ ; \ - s|^(CC\|AR\|RANLIB)=|\1?=| ; \ - /^CFLAGS=/ { s/=/+=/; s/-O2//; } ; \ - s|/usr/local|${PREFIX}|' \ - ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile - @${REINPLACE_CMD} -i '' -Ee \ - 's|^(prefix=).*|\1 ${PREFIX}| ; \ - s|^(libdir=).*|\1 ${LUA_LIBDIR}| ; \ - s|^(includedir=).*|\1 ${LUA_INCDIR}| ; \ - s|^(INSTALL_BIN=).*|\1 ${LUA_BINDIR}| ; \ - s|^(INSTALL_INC=).*|\1 ${LUA_INCDIR}| ; \ - s|^(INSTALL_LIB=).*|\1 ${LUA_LIBDIR}| ; \ - s|^(INSTALL_CMOD=).*|\1 ${LUA_MODLIBDIR}| ; \ - s|^(INSTALL_LMOD=).*|\1 ${LUA_MODSHAREDIR}|' \ - ${WRKSRC}/etc/lua.pc - @${REINPLACE_CMD} -e 's,rand *(,random(,g' \ - ${WRKSRC}/src/lmathlib.c - @${REINPLACE_CMD} -e '/LUA_ROOT/s|/usr/local|${PREFIX}|' \ - ${WRKSRC}/src/luaconf.h - -post-build: - @${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac - -do-install: -# Programs. - ${MKDIR} ${STAGEDIR}${LUA_BINDIR} -.for f in ${LUA_BIN} - ${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${STAGEDIR}${LUA_BINDIR} - ${LN} -sf ${LUA_SUBDIR}/${f} ${STAGEDIR}${PREFIX}/bin/${f}-${LUA_VER} -.endfor -# Include files. - ${MKDIR} ${STAGEDIR}${LUA_INCDIR} -.for f in ${LUA_INC} - ${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${LUA_INCDIR} -.endfor -# Libraries. - ${MKDIR} ${STAGEDIR}${LUA_LIBDIR} - ${INSTALL_DATA} ${WRKSRC}/src/liblua.a ${STAGEDIR}${LUA_LIBDIR} - ${INSTALL_PROGRAM} ${WRKSRC}/src/liblua.so \ - ${STAGEDIR}${LUA_LIBDIR}/liblua-${LUA_VER}.so.${LUA_VER_SH} - @${LN} -sf liblua-${LUA_VER}.so.${LUA_VER_SH} ${STAGEDIR}${LUA_LIBDIR}/liblua.so - @${LN} -sf ${LUA_SUBDIR}/liblua-${LUA_VER}.so.${LUA_VER_SH} \ - ${STAGEDIR}${PREFIX}/lib - @${LN} -sf liblua-${LUA_VER}.so.${LUA_VER_SH} \ - ${STAGEDIR}${PREFIX}/lib/liblua-${LUA_VER}.so -# Manual pages. -.for f in ${LUA_MAN} - ${INSTALL_MAN} ${WRKSRC}/doc/${f} \ - ${STAGEDIR}${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1 -.endfor -# Documentation. - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${MKDIR} ${STAGEDIR}${DOCSDIR}/etc - ${MKDIR} ${STAGEDIR}${DOCSDIR}/test - ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${STAGEDIR}${DOCSDIR} -.for f in ${LUA_ETC} - ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${STAGEDIR}${DOCSDIR}/etc -.endfor -.for f in ${LUA_TEST} - ${INSTALL_DATA} ${WRKSRC}/test/${f} ${STAGEDIR}${DOCSDIR}/test -.endfor -# lua.pc - ${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/lua-${LUA_VER}.pc -# Module directories. - ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR} - ${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} - -.include <bsd.port.post.mk> diff --git a/lang/lua/distinfo b/lang/lua/distinfo deleted file mode 100644 index 702e643a2cfc..000000000000 --- a/lang/lua/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (lua-5.1.5.tar.gz) = 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333 -SIZE (lua-5.1.5.tar.gz) = 221213 diff --git a/lang/lua/files/patch-src-Makefile b/lang/lua/files/patch-src-Makefile deleted file mode 100644 index 87b14233f2ce..000000000000 --- a/lang/lua/files/patch-src-Makefile +++ /dev/null @@ -1,44 +0,0 @@ ---- Makefile.orig 2012-02-13 22:41:22.000000000 +0200 -+++ Makefile 2013-08-05 15:56:32.000000000 +0300 -@@ -9,10 +9,11 @@ - - CC= gcc - CFLAGS= -O2 -Wall $(MYCFLAGS) --AR= ar rcu -+ARFLAGS= rcu -+AR= ar - RANLIB= ranlib - RM= rm -f --LIBS= -lm $(MYLIBS) -+LIBS= -lm -pthread $(MYLIBS) - - MYCFLAGS= - MYLDFLAGS= -@@ -31,12 +32,13 @@ - - LUA_T= lua - LUA_O= lua.o -+LUA_SO= liblua.so - - LUAC_T= luac - LUAC_O= luac.o print.o - - ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O) --ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) -+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) - ALL_A= $(LUA_A) - - default: $(PLAT) -@@ -47,8 +49,11 @@ - - a: $(ALL_A) - -+$(LUA_SO): $(CORE_O) $(LIB_O) -+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(MYLDFLAGS) -shared -Wl,-soname=$(LUA_SONAME) $? -+ - $(LUA_A): $(CORE_O) $(LIB_O) -- $(AR) $@ $(CORE_O) $(LIB_O) # DLL needs all object files -+ $(AR) $(ARFLAGS) $@ $? - $(RANLIB) $@ - - $(LUA_T): $(LUA_O) $(LUA_A) diff --git a/lang/lua/pkg-descr b/lang/lua/pkg-descr deleted file mode 100644 index d0ed8afbd09c..000000000000 --- a/lang/lua/pkg-descr +++ /dev/null @@ -1,21 +0,0 @@ -Lua is a programming language originally designed for extending applications, -but also frequently used as a general-purpose, stand-alone language. Lua -combines simple procedural syntax (similar to Pascal) with powerful data -description constructs based on associative arrays and extensible semantics. -Lua is dynamically typed, interpreted from bytecodes, and has automatic memory -management with garbage collection, making it ideal for configuration, -scripting, and rapid prototyping. - -A fundamental concept in the design of Lua is to provide meta-mechanisms for -implementing features, instead of providing a host of features directly in -the language. For example, although Lua is not a pure object-oriented -language, it does provide meta-mechanisms for implementing classes and -inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the -language small, while allowing the semantics to be extended in unconventional -ways. Extensible semantics is a distinguishing feature of Lua. - -Lua is implemented as a small library of C functions, written in ANSI C, and -compiles unmodified in all known platforms. The implementation goals are -simplicity, efficiency, portability, and low embedding cost. - -WWW: http://www.lua.org/ diff --git a/lang/lua/pkg-plist b/lang/lua/pkg-plist deleted file mode 100644 index f893df072c05..000000000000 --- a/lang/lua/pkg-plist +++ /dev/null @@ -1,24 +0,0 @@ -bin/lua-%%LUA_VER%% -%%LUA_BINDIR%%/lua -%%LUA_BINDIR%%/luac -bin/luac-%%LUA_VER%% -%%LUA_INCDIR%%/lauxlib.h -%%LUA_INCDIR%%/lua.h -%%LUA_INCDIR%%/lua.hpp -%%LUA_INCDIR%%/luaconf.h -%%LUA_INCDIR%%/lualib.h -lib/liblua-%%LUA_VER%%.so -lib/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%% -%%LUA_LIBDIR%%/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%% -%%LUA_LIBDIR%%/liblua.a -%%LUA_LIBDIR%%/liblua.so -libdata/pkgconfig/lua-%%LUA_VER%%.pc -@dirrmtry %%DATADIR%%/%%LUA_VER%% -@dirrmtry %%DATADIR%% -@dirrm %%LUA_LIBDIR%% -@dirrmtry lib/lua/%%LUA_VER%% -@dirrmtry lib/lua -@dirrm %%LUA_INCDIR%% -@dirrm %%LUA_BINDIR%% -@exec mkdir -p %D/%%DATADIR%%/%%LUA_VER%% -@exec mkdir -p %D/lib/lua/%%LUA_VER%% |
