# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD: head/security/rubygem-gpgme/Makefile 458065 2018-01-04 20:11:27Z sunpoet $

PORTNAME=	gpgme
PORTVERSION=	2.0.16
CATEGORIES=	security rubygems
MASTER_SITES=	RG

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Ruby interface to GnuPG Made Easy (GPGME)

LICENSE=	LGPL21+

BUILD_DEPENDS=	gpgme-config:security/gpgme
LIB_DEPENDS=	libassuan.so:security/libassuan \
		libgpg-error.so:security/libgpg-error
RUN_DEPENDS=	gpgme-config:security/gpgme

CONFIGURE_ARGS=	--use-system-libraries
USE_RUBY=	yes
USES=		gem

post-patch:
	@${REINPLACE_CMD} -e '/mini_portile2/d' ${WRKSRC}/gpgme.gemspec ${WRKSRC}/ext/gpgme/extconf.rb

.include <bsd.port.mk>
