# $OpenBSD$

COMMENT=		Ruby binding for libmaxminddb

DISTNAME=		geoip2_c-0.3.3
CATEGORIES=		geo

HOMEPAGE=		https://github.com/fluent-plugins-nursery/geoip2_c

MAINTAINER=		Eric Elena <eric@voguemerry.com>

# Apache-2.0
PERMIT_PACKAGE=		Yes

WANTLIB=		maxminddb

MODULES=		lang/ruby

# libmaxminddb headers fail with base-gcc
COMPILER=		base-clang ports-gcc
COMPILER_LANGS=		c

CONFIGURE_STYLE=	ruby gem ext

LIB_DEPENDS=		net/libmaxminddb

pre-configure:
	${SUBST_CMD} ${WRKSRC}/ext/geoip2/extconf.rb

.include <bsd.port.mk>
