diff options
-rw-r--r-- | devel/lua-lrexlib-onig/DESCR | 1 | ||||
-rw-r--r-- | devel/lua-lrexlib-onig/Makefile | 18 | ||||
-rw-r--r-- | devel/lua-lrexlib-onig/Makefile.common | 41 | ||||
-rw-r--r-- | devel/lua-lrexlib-onig/PLIST | 2 |
4 files changed, 62 insertions, 0 deletions
diff --git a/devel/lua-lrexlib-onig/DESCR b/devel/lua-lrexlib-onig/DESCR new file mode 100644 index 00000000000..398b56891fa --- /dev/null +++ b/devel/lua-lrexlib-onig/DESCR @@ -0,0 +1 @@ +This package provides Lua module for Oniguruma regular expressions diff --git a/devel/lua-lrexlib-onig/Makefile b/devel/lua-lrexlib-onig/Makefile new file mode 100644 index 00000000000..49c70f93374 --- /dev/null +++ b/devel/lua-lrexlib-onig/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/07/24 08:50:40 cheusov Exp $ +# + +ENGINE= onig +ENGINE_DIR= oniguruma + +.include "../../devel/lua-lrexlib/Makefile.common" + +COMMENT= Oniguruma regexp library for Lua (lrexlib project) +MAINTAINER= cheusov@tut.by + +DESCR_SRC+= ${.CURDIR}/DESCR + +LDFLAGS+= -lonig + +.include "../../lang/lua/module.mk" +.include "../../textproc/oniguruma/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/lua-lrexlib-onig/Makefile.common b/devel/lua-lrexlib-onig/Makefile.common new file mode 100644 index 00000000000..3fd24400223 --- /dev/null +++ b/devel/lua-lrexlib-onig/Makefile.common @@ -0,0 +1,41 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2011/07/24 08:50:40 cheusov Exp $ +# used by devel/lua-lrexlib-posix/Makefile +# used by devel/lua-lrexlib-pcre/Makefile +# used by devel/lua-lrexlib-oniguruma/Makefile +# +.include "../../devel/lua-lrexlib/Makefile.version" + +DISTNAME= lrexlib-${VERSION} +PKGNAME= ${LUA_PKGPREFIX}-lrexlib-${ENGINE}-${VERSION} +CATEGORIES= devel +MASTER_SITES= http://luaforge.net/frs/download.php/3599/ +EXTRACT_SUFX= .zip + +HOMEPAGE= http://luaforge.net/projects/lrexlib + +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= gmake +USE_LIBTOOL= yes + +BUILD_TARGET= build_${ENGINE} +TEST_TARGET= test_${ENGINE} + +#MAKE_FILE= makefile + +# +PATCHDIR= ${.CURDIR}/../../devel/lua-lrexlib/patches +DISTINFO_FILE= ${.CURDIR}/../../devel/lua-lrexlib/distinfo +DESCR_SRC= ${.CURDIR}/../../devel/lua-lrexlib/DESCR + +MAKE_FLAGS+= LIBS=${LIBS:Q} +MAKE_FLAGS+= LIBTOOL=${LIBTOOL:Q} +MAKE_FLAGS+= MODULES_DIR=${PREFIX}/${LUA_CDIR} + +INSTALLATION_DIRS+= ${LUA_CDIR} + +do-install: + ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \ + ${WRKSRC}/src/${ENGINE_DIR}/rex_${ENGINE}.la ${DESTDIR}${PREFIX}/${LUA_CDIR} diff --git a/devel/lua-lrexlib-onig/PLIST b/devel/lua-lrexlib-onig/PLIST new file mode 100644 index 00000000000..bfc2d9fbdd2 --- /dev/null +++ b/devel/lua-lrexlib-onig/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/07/24 08:50:40 cheusov Exp $ +${LUA_CDIR}/rex_onig.la |