File:  [cvs.NetBSD.org] / pkgsrc / net / lua-copas / Makefile
Revision 1.5: download - view: text, annotated - select for diffs
Sat Sep 16 19:53:51 2017 UTC (7 years, 2 months ago) by alnsn
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, HEAD
Drop maintainership.

# $NetBSD: Makefile,v 1.5 2017/09/16 19:53:51 alnsn Exp $

DISTNAME=	copas-2.0.2
PKGNAME=	${DISTNAME:S/copas/${LUA_PKGPREFIX}-copas/}
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=keplerproject/}
GITHUB_TAG=	v${PKGVERSION:S/./_/g}
GITHUB_PROJECT=	${DISTNAME:S/-${PKGVERSION_NOREV}//}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://keplerproject.github.io/copas
COMMENT=	Dispatcher based on coroutines that can be used by TCP_IP servers
LICENSE=	mit

DEPENDS+=	${LUA_PKGPREFIX}-coxpcall>=1.16.0:../../devel/lua-coxpcall
DEPENDS+=	${LUA_PKGPREFIX}-socket>=2.0:../../net/lua-socket
DEPENDS+=	${LUA_PKGPREFIX}-sec>=0.6:../../security/lua-sec

MAKE_ENV+=	LUA_LDIR=${LUA_LDIR:Q}
MAKE_ENV+=	LUA_INTERPRETER=${LUA_INTERPRETER:Q}

NO_BUILD=	yes
TEST_TARGET=	test

INSTALLATION_DIRS+=	${LUA_LDIR}/copas

INSTALL_COPAS_FILES=	${WRKSRC}/src/copas/ftp.lua
INSTALL_COPAS_FILES+=	${WRKSRC}/src/copas/smtp.lua
INSTALL_COPAS_FILES+=	${WRKSRC}/src/copas/http.lua
INSTALL_COPAS_FILES+=	${WRKSRC}/src/copas/limit.lua

do-install:
	${INSTALL_DATA} ${WRKSRC}/src/copas.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
	for f in ${INSTALL_COPAS_FILES}; do \
		${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/${LUA_LDIR}/copas/ ; \
	done

.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>