PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		easyjour 0.0.4 gem {} rubygems
revision		1

maintainers		{kimuraw @kimuraw} openmaintainer

platforms		any
description		Super simple access to service announcing and discovery \
				using Bonjour aka DNSSD.
long_description	Super simple access to service announcing and discovery \
				using Bonjour aka DNSSD.
homepage		https://github.com/jqr/easyjour
depends_lib		port:rb-dnssd
license			MIT
supported_archs	noarch

# patch-lib-easyjour.rb.diff: fix error of Easyjour.serve() with rb-dnssd 1.3.x
post-destroot {
	system "cd ${destroot}${ruby.gemdir}/gems/${ruby.module}-${version} && /usr/bin/patch -p0 < ${filespath}/patch-lib-easyjour.rb.diff"
}
checksums		md5 8964adaa435c11d4ddd770530145899d \
				rmd160 be7fb3834e7a8bf1e4b4c8dbc1e92c7fcc36aac8 \
				sha1 2134c1ebac5dabb6128e66804b7553b48ab88148
