4703f4c7ea
PR: 234900 Submitted by: sirl33tname@gmail.com
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Created by: Johannes Meixner <johannes@perceivon.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gollum-lib
|
|
PORTVERSION= 4.2.10
|
|
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_adapter10>=1.0:www/rubygem-gollum-grit_adapter10 \
|
|
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 \
|
|
rubygem-twitter-text1=1.14.7:textproc/rubygem-twitter-text1
|
|
|
|
USES= gem
|
|
|
|
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
|
|
|
|
USE_RUBY= yes
|
|
|
|
NO_ARCH= 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>
|