Skip to content

Commit

Permalink
www/rubygem-gollum-lib: Clean up
Browse files Browse the repository at this point in the history
Remove the options since gitlab uses textproc/rubygem-gitlab-markup directly now.
  • Loading branch information
sunpoet committed Jan 11, 2022
1 parent 93877b4 commit 56467e8
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions www/rubygem-gollum-lib/Makefile
Expand Up @@ -12,6 +12,7 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= rubygem-gemojione>=3.2<4:graphics/rubygem-gemojione \
rubygem-github-markup>=1.6:textproc/rubygem-github-markup \
rubygem-gollum-grit_adapter10>=1.0<2:www/rubygem-gollum-grit_adapter10 \
rubygem-nokogiri>=1.6.1<2.0:textproc/rubygem-nokogiri \
rubygem-rouge2>=2.1<3:textproc/rubygem-rouge2 \
Expand All @@ -20,24 +21,8 @@ RUN_DEPENDS= rubygem-gemojione>=3.2<4:graphics/rubygem-gemojione \
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>

0 comments on commit 56467e8

Please sign in to comment.