freebsd-ports/www/rubygem-gollum-lib/Makefile
Sunpoet Po-Chuan Hsieh 5a3a4414c0 Fix gemspec for rubygem-github-markup 2.0.0 update
- Bump PORTREVISION for package change
2018-01-31 15:52:57 +00:00

42 lines
1.3 KiB
Makefile

# Created by: Johannes Meixner <johannes@perceivon.net>
# $FreeBSD$
PORTNAME= gollum-lib
PORTVERSION= 4.2.7
PORTREVISION= 2
CATEGORIES= www rubygems
MASTER_SITES= RG
MAINTAINER= ruby@FreeBSD.org
COMMENT= Simple, Git-powered wiki with a sweet API and local frontend
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= rubygem-gemojione>=3.2:graphics/rubygem-gemojione \
rubygem-gollum-grit_adapter>=1.0:www/rubygem-gollum-grit_adapter \
rubygem-nokogiri>=1.6.1:textproc/rubygem-nokogiri \
rubygem-rouge2>=2.1:textproc/rubygem-rouge2 \
rubygem-sanitize>=2.1:textproc/rubygem-sanitize \
rubygem-stringex>=2.6:devel/rubygem-stringex
OPTIONS_RADIO= MARKUP
OPTIONS_RADIO_MARKUP= GITHUB GITLAB
OPTIONS_DEFAULT?= GITHUB
MARKUP_DESC= Markup Selection
GITHUB_DESC= Use rubygem-github-markup (default)
GITLAB_DESC= Use rubygem-gitlab-markup instead
GITHUB_RUN_DEPENDS= rubygem-github-markup>=1.6:textproc/rubygem-github-markup
GITLAB_RUN_DEPENDS= rubygem-gitlab-markup>=1.5:textproc/rubygem-gitlab-markup
NO_ARCH= yes
USES= gem
USE_RUBY= yes
post-patch-GITLAB-on:
# change runtime dependency from "github-markup >= 1.6" to "gitlab-markup ~> 1.5"
@${REINPLACE_CMD} -e '/s.add_runtime_dependency/ s|github-markup\(.*\)1.6|gitlab-markup\11.5|' ${WRKSRC}/${GEMSPEC}
.include <bsd.port.mk>