SortedSet implements a Set whose elements are sorted in ascending
order (according to the return values of their <=> methods) when iterating over them. Every element in SortedSet must be mutually comparable to every other: comparison with <=> must not return nil for any pair of elements. Otherwise ArgumentError will be raised. ruby-sorted_set is functionality spun out from the Set included with Ruby in 3.x feedback and ok jeremy@
This commit is contained in:
parent
9273818eb1
commit
88a4c6ac47
21
devel/ruby-sorted_set/Makefile
Normal file
21
devel/ruby-sorted_set/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
COMMENT = a set whose elements are sorted in ascending order
|
||||
|
||||
DISTNAME = sorted_set-1.0.3
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = https://github.com/knu/sorted_set
|
||||
|
||||
MAINTAINER = Kurt Mosiejczuk <kmos@openbsd.org>
|
||||
|
||||
# BSD 2 clause
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
MODULES = lang/ruby
|
||||
|
||||
BUILD_DEPENDS = ${RUN_DEPENDS}
|
||||
RUN_DEPENDS = devel/ruby-rbtree,${MODRUBY_FLAVOR}
|
||||
|
||||
CONFIGURE_STYLE = ruby gem
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/ruby-sorted_set/distinfo
Normal file
2
devel/ruby-sorted_set/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (sorted_set-1.0.3.gem) = TyuL7m6MWcvSliKMDx+BZ5NXF3qLaFncwqmehszmNy8=
|
||||
SIZE (sorted_set-1.0.3.gem) = 8192
|
26
devel/ruby-sorted_set/patches/patch-_metadata
Normal file
26
devel/ruby-sorted_set/patches/patch-_metadata
Normal file
@ -0,0 +1,26 @@
|
||||
set is a default gem in ruby 3.x still, so don't depend on the set gem
|
||||
|
||||
Index: .metadata
|
||||
--- .metadata.orig
|
||||
+++ .metadata
|
||||
@@ -11,20 +11,6 @@ cert_chain: []
|
||||
date: 2021-02-13 00:00:00.000000000 Z
|
||||
dependencies:
|
||||
- !ruby/object:Gem::Dependency
|
||||
- name: set
|
||||
- requirement: !ruby/object:Gem::Requirement
|
||||
- requirements:
|
||||
- - - "~>"
|
||||
- - !ruby/object:Gem::Version
|
||||
- version: '1.0'
|
||||
- type: :runtime
|
||||
- prerelease: false
|
||||
- version_requirements: !ruby/object:Gem::Requirement
|
||||
- requirements:
|
||||
- - - "~>"
|
||||
- - !ruby/object:Gem::Version
|
||||
- version: '1.0'
|
||||
-- !ruby/object:Gem::Dependency
|
||||
name: rbtree
|
||||
requirement: !ruby/object:Gem::Requirement
|
||||
requirements:
|
10
devel/ruby-sorted_set/pkg/DESCR
Normal file
10
devel/ruby-sorted_set/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
SortedSet implements a Set whose elements are sorted in ascending
|
||||
order (according to the return values of their <=> methods) when
|
||||
iterating over them.
|
||||
|
||||
Every element in SortedSet must be mutually comparable to every
|
||||
other: comparison with <=> must not return nil for any pair of
|
||||
elements. Otherwise ArgumentError will be raised.
|
||||
|
||||
Currently this library does nothing for JRuby, as it has its own
|
||||
version of Set and SortedSet.
|
18
devel/ruby-sorted_set/pkg/PLIST
Normal file
18
devel/ruby-sorted_set/pkg/PLIST
Normal file
@ -0,0 +1,18 @@
|
||||
${GEM_LIB}/cache/${DISTNAME}.gem
|
||||
${GEM_LIB}/gems/${DISTNAME}/
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/.github/
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/.github/workflows/
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/.github/workflows/test.yml
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/.gitignore
|
||||
${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.md
|
||||
${GEM_LIB}/gems/${DISTNAME}/Gemfile
|
||||
${GEM_LIB}/gems/${DISTNAME}/LICENSE.txt
|
||||
${GEM_LIB}/gems/${DISTNAME}/README.md
|
||||
${GEM_LIB}/gems/${DISTNAME}/Rakefile
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/bin/
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/bin/console
|
||||
@comment ${GEM_LIB}/gems/${DISTNAME}/bin/setup
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/sorted_set.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/sorted_set.gemspec
|
||||
${GEM_LIB}/specifications/${DISTNAME}.gemspec
|
Loading…
x
Reference in New Issue
Block a user