diff options
author | tz <tz@FreeBSD.org> | 2017-02-24 17:37:16 +0800 |
---|---|---|
committer | tz <tz@FreeBSD.org> | 2017-02-24 17:37:16 +0800 |
commit | 61c60d32a5ed8663f80b7e8088b7da1f6bc93dc1 (patch) | |
tree | 733ab26ef6e618415ba227ab51cf6ce8132ff435 /www | |
parent | 133138dbca64d7bf32a5da5c5bcd4f750b1b2c0d (diff) | |
download | freebsd-ports-gnome-61c60d32a5ed8663f80b7e8088b7da1f6bc93dc1.tar.gz freebsd-ports-gnome-61c60d32a5ed8663f80b7e8088b7da1f6bc93dc1.tar.zst freebsd-ports-gnome-61c60d32a5ed8663f80b7e8088b7da1f6bc93dc1.zip |
www/rubygem-gollum-lib: Add options for GITHUB and GITLAB dependency
The new www/gitlab version requires rubygem-gitlab-markup, which
is a fork of rubygem-github-markup. It is more a clone than a fork
since it installs a file named "github-markup" causing conflicts
whenever rubygem-github-markup should be installed too.
Therefore the options introduced allows to choose the wanted dependency
Diffstat (limited to 'www')
-rw-r--r-- | www/rubygem-gollum-lib/Makefile | 17 | ||||
-rw-r--r-- | www/rubygem-gollum-lib/files/extra-patch-github-gemspec (renamed from www/rubygem-gollum-lib/files/patch-gemspec) | 0 | ||||
-rw-r--r-- | www/rubygem-gollum-lib/files/extra-patch-gitlab-gemspec | 21 |
3 files changed, 36 insertions, 2 deletions
diff --git a/www/rubygem-gollum-lib/Makefile b/www/rubygem-gollum-lib/Makefile index d18f458f9986..bde15a51684c 100644 --- a/www/rubygem-gollum-lib/Makefile +++ b/www/rubygem-gollum-lib/Makefile @@ -3,7 +3,7 @@ PORTNAME= gollum-lib PORTVERSION= 4.2.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www rubygems MASTER_SITES= RG @@ -14,13 +14,26 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= rubygem-gemojione>=2.2:graphics/rubygem-gemojione \ - rubygem-github-markup>=1.4:textproc/rubygem-github-markup \ rubygem-gollum-grit_adapter>=1.0:www/rubygem-gollum-grit_adapter \ rubygem-nokogiri>=1.6.4:textproc/rubygem-nokogiri \ rubygem-rouge>=2.0:textproc/rubygem-rouge \ 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.4:textproc/rubygem-github-markup +GITLAB_RUN_DEPENDS= rubygem-gitlab-markup>=1.5:textproc/rubygem-gitlab-markup + +GITHUB_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-github-gemspec +GITLAB_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-gitlab-gemspec + NO_ARCH= yes USE_RUBY= yes USES= gem diff --git a/www/rubygem-gollum-lib/files/patch-gemspec b/www/rubygem-gollum-lib/files/extra-patch-github-gemspec index 30eba8c67b1e..30eba8c67b1e 100644 --- a/www/rubygem-gollum-lib/files/patch-gemspec +++ b/www/rubygem-gollum-lib/files/extra-patch-github-gemspec diff --git a/www/rubygem-gollum-lib/files/extra-patch-gitlab-gemspec b/www/rubygem-gollum-lib/files/extra-patch-gitlab-gemspec new file mode 100644 index 000000000000..e0ecf06bf92a --- /dev/null +++ b/www/rubygem-gollum-lib/files/extra-patch-gitlab-gemspec @@ -0,0 +1,21 @@ +--- gollum-lib.gemspec.orig 2017-02-02 12:04:29 UTC ++++ gollum-lib.gemspec +@@ -25,13 +25,13 @@ Gem::Specification.new do |s| + s.specification_version = 2 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then +- s.add_runtime_dependency(%q<gollum-grit_adapter>.freeze, ["~> 1.0"]) ++ s.add_runtime_dependency(%q<gollum-grit_adapter>.freeze, [">= 1.0"]) + s.add_runtime_dependency(%q<rouge>.freeze, ["~> 2.0"]) +- s.add_runtime_dependency(%q<nokogiri>.freeze, ["~> 1.6.4"]) ++ s.add_runtime_dependency(%q<nokogiri>.freeze, ["~> 1.6"]) + s.add_runtime_dependency(%q<stringex>.freeze, ["~> 2.6"]) +- s.add_runtime_dependency(%q<sanitize>.freeze, ["~> 2.1"]) +- s.add_runtime_dependency(%q<github-markup>.freeze, ["~> 1.4"]) +- s.add_runtime_dependency(%q<gemojione>.freeze, ["~> 2.2"]) ++ s.add_runtime_dependency(%q<sanitize>.freeze, [">= 2.1"]) ++ s.add_runtime_dependency(%q<gitlab-markup>.freeze, ["~> 1.5"]) ++ s.add_runtime_dependency(%q<gemojione>.freeze, [">= 2.2"]) + s.add_development_dependency(%q<org-ruby>.freeze, ["~> 0.9.9"]) + s.add_development_dependency(%q<kramdown>.freeze, ["~> 1.6.0"]) + s.add_development_dependency(%q<RedCloth>.freeze, ["~> 4.2.9"]) |