# $Id: Portfile 89853 2012-02-13 10:56:30Z and.damore@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup keplerproject rings 1.2.3 github.tarball_from downloads name lua-rings version 1.2.2 license MIT categories devel maintainers and.damore openmaintainer platforms darwin description Multiple Lua States long_description Rings is a library which provides a way to create new Lua states from \ within Lua. It also offers a simple way to communicate between the \ creator (master) and the created (slave) states. depends_lib port:lua checksums md5 cba2e8a961fa4f76ebf4972c6044e824 \ sha1 788234fb446ee2415fd4be894eb4ad65ef9b2662 \ rmd160 3ff0989ec77c39f3711e97af2886e548254f6af1 # package configure script is not from autotools and only searches for lua binary prefix # we patch it and force it to ${prefix} patchfiles patch-config.diff post-patch { reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/config reinplace "s|%COMPILER%|${configure.compiler}|" ${worksrcpath}/config } # it is needed to manually set flags env variable as well build.env-append CFLAGS="${configure.cflags}" \ LDFLAGS="${configure.ldflags} -llua -lm"