# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_0_0/dns/rubygem-public_suffix/Makefile 480580 2018-09-24 11:12:46Z sunpoet $

PORTNAME=	public_suffix
PORTVERSION=	3.0.3
PORTREVISION=	1
CATEGORIES=	dns rubygems
MASTER_SITES=	RG

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Ruby domain name parser based on the Public Suffix List

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

PATCH_DEPENDS=	public_suffix_list>=0:dns/public_suffix_list

USES=		gem
USE_RUBY=	yes

NO_ARCH=	yes

post-patch:
	@${CP} ${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat ${WRKSRC}/data/definitions.txt

.include <bsd.port.mk>
