diff options
author | linimon <linimon@FreeBSD.org> | 2006-09-15 16:17:11 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2006-09-15 16:17:11 +0800 |
commit | f2d8437c35c46dc1131c982c1f25abcd7d641fb3 (patch) | |
tree | 61136cc420c647223541df746f011f5307a7b184 /lang/ruby-lua4 | |
parent | 6c16383d95de00351d4ecaf674a95f310d209a6b (diff) | |
download | freebsd-ports-graphics-f2d8437c35c46dc1131c982c1f25abcd7d641fb3.tar.gz freebsd-ports-graphics-f2d8437c35c46dc1131c982c1f25abcd7d641fb3.tar.zst freebsd-ports-graphics-f2d8437c35c46dc1131c982c1f25abcd7d641fb3.zip |
Modify these files to reflect bsd.lua.mk as tested on the cluster.
PR: ports/101612
Submitted by: alepulver
Hat: portmgr
Diffstat (limited to 'lang/ruby-lua4')
-rw-r--r-- | lang/ruby-lua4/Makefile | 15 | ||||
-rw-r--r-- | lang/ruby-lua4/pkg-plist | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/lang/ruby-lua4/Makefile b/lang/ruby-lua4/Makefile index a123e4cd649..cadd68d71d4 100644 --- a/lang/ruby-lua4/Makefile +++ b/lang/ruby-lua4/Makefile @@ -11,28 +11,33 @@ CATEGORIES= lang ruby MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= knu PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} -PKGNAMESUFFIX= 4 DISTNAME= ruby${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= ports@FreeBSD.org COMMENT= A Ruby extension to make Lua script language as a class -LIB_DEPENDS= lua.4:${PORTSDIR}/lang/lua4 - -CONFLICTS= ${RUBY_PKGNAMEPREFIX}lua5-[0-9]* - +USE_LUA= 4.0 USE_ZIP= yes USE_RUBY= yes USE_RUBY_EXTCONF= yes RUBY_EXTCONF= luaconf.rb +RUBY_MODNAME= ${PORTNAME}-${LUA_VER} NO_WRKSUBDIR= yes INSTALL_TARGET= site-install EXAMPLES= html_ssi_lua.rb test_* +post-patch: + @${REINPLACE_CMD} -Ee 's/[[:<:]](lua(lib)?)[[:>:]]/\1-${LUA_VER}/' \ + ${WRKSRC}/${RUBY_EXTCONF} + +post-configure: + @${REINPLACE_CMD} -Ee 's|^(CPPFLAGS =.*)|\1 -I${LUA_INCDIR}|' \ + ${WRKSRC}/${MAKEFILE} + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR} diff --git a/lang/ruby-lua4/pkg-plist b/lang/ruby-lua4/pkg-plist index dff815fb1d9..ca609f492d6 100644 --- a/lang/ruby-lua4/pkg-plist +++ b/lang/ruby-lua4/pkg-plist @@ -1,4 +1,4 @@ -%%RUBY_SITEARCHLIBDIR%%/lua.so +%%RUBY_SITEARCHLIBDIR%%/lua-%%LUA_VER%%.so %%PORTDOCS%%%%RUBY_MODDOCDIR%%/rubylua.txt %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% %%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html_ssi_lua.rb |