PORTNAME=	rbnacl-libsodium
PORTVERSION=	1.0.16
PORTREVISION=	2
CATEGORIES=	security rubygems
MASTER_SITES=	RG

MAINTAINER=	mfechner@FreeBSD.org
COMMENT=	Port rbnacl with bundled libsodium
WWW=		https://github.com/cryptosphere/rbnacl-libsodium

LICENSE=	MIT

RUN_DEPENDS=	rubygem-rbnacl>=3.0.1:security/rubygem-rbnacl

USES=		gem libtool
USE_LDCONFIG=	yes

post-install:
	( cd ${WRKSRC} && \
	${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION} )
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/vendor/libsodium/src/libsodium/.libs/libsodium.so.23.1.0
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/vendor/libsodium/dist/lib/libsodium.so.23.1.0

.include <bsd.port.mk>
