diff options
author | swills <swills@FreeBSD.org> | 2014-03-14 02:30:16 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2014-03-14 02:30:16 +0800 |
commit | a42434d531f5bf2ddd44056fcdc20102fe3754ea (patch) | |
tree | 183109b273d1a5214d226ecc0939d55452b3a90c /sysutils | |
parent | b7e1e2679e2028d252a2a0e08686c6c228a87f37 (diff) | |
download | freebsd-ports-gnome-a42434d531f5bf2ddd44056fcdc20102fe3754ea.tar.gz freebsd-ports-gnome-a42434d531f5bf2ddd44056fcdc20102fe3754ea.tar.zst freebsd-ports-gnome-a42434d531f5bf2ddd44056fcdc20102fe3754ea.zip |
Hammer is a generic clamp-based CLI framework. Hammer-cli provides just
the core functionality. The core is extensible using plugins that contain
application-specific commands.
WWW: https://github.com/theforeman/hammer-cli
PR: ports/187483
Submitted by: Michael Moll <kvedulv@kvedulv.de>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/rubygem-hammer_cli/Makefile | 29 | ||||
-rw-r--r-- | sysutils/rubygem-hammer_cli/distinfo | 2 | ||||
-rw-r--r-- | sysutils/rubygem-hammer_cli/files/patch-bin__hammer | 11 | ||||
-rw-r--r-- | sysutils/rubygem-hammer_cli/pkg-descr | 5 |
5 files changed, 48 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index bc3ae194dd36..0e6c69754864 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -805,6 +805,7 @@ SUBDIR += rubygem-guard-livereload SUBDIR += rubygem-guard-minitest SUBDIR += rubygem-guard-rspec + SUBDIR += rubygem-hammer_cli SUBDIR += rubygem-hiera SUBDIR += rubygem-hiera-json SUBDIR += rubygem-hiera-puppet diff --git a/sysutils/rubygem-hammer_cli/Makefile b/sysutils/rubygem-hammer_cli/Makefile new file mode 100644 index 000000000000..43b09b0d1134 --- /dev/null +++ b/sysutils/rubygem-hammer_cli/Makefile @@ -0,0 +1,29 @@ +# Created by: Michael Moll <kvedulv@kvedulv.de> +# $FreeBSD$ + +PORTNAME= hammer_cli +PORTVERSION= 0.0.18 +CATEGORIES= sysutils ruby +MASTER_SITES= RG + +MAINTAINER= ruby@FreeBSD.org +COMMENT= Provides CLI interfaces for Ruby apps + +LICENSE= GPLv3 + +RUN_DEPENDS= rubygem-awesome_print>=1.1.0:${PORTSDIR}/devel/rubygem-awesome_print \ + rubygem-clamp>=0.6.3:${PORTSDIR}/devel/rubygem-clamp \ + rubygem-fastercsv>=1.5.5:${PORTSDIR}/devel/rubygem-fastercsv \ + rubygem-highline>=1.6.20:${PORTSDIR}/devel/rubygem-highline \ + rubygem-logging>=1.8.1:${PORTSDIR}/devel/rubygem-logging \ + rubygem-mime-types>=1.0:${PORTSDIR}/misc/rubygem-mime-types \ + rubygem-rest-client>=1.6.7:${PORTSDIR}/www/rubygem-rest-client \ + rubygem-table_print>=1.5.1:${PORTSDIR}/devel/rubygem-table_print + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +PLIST_FILES= bin/hammer + +.include <bsd.port.mk> diff --git a/sysutils/rubygem-hammer_cli/distinfo b/sysutils/rubygem-hammer_cli/distinfo new file mode 100644 index 000000000000..9e0004b52744 --- /dev/null +++ b/sysutils/rubygem-hammer_cli/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/hammer_cli-0.0.18.gem) = 6cbda00ba509029e8fc96edda0d1076d285d1f97eeb0b8590f4b939106ec023c +SIZE (rubygem/hammer_cli-0.0.18.gem) = 80896 diff --git a/sysutils/rubygem-hammer_cli/files/patch-bin__hammer b/sysutils/rubygem-hammer_cli/files/patch-bin__hammer new file mode 100644 index 000000000000..39b95c734056 --- /dev/null +++ b/sysutils/rubygem-hammer_cli/files/patch-bin__hammer @@ -0,0 +1,11 @@ +--- bin/hammer.orig 2014-03-12 11:07:16.000000000 +0100 ++++ bin/hammer 2014-03-12 11:07:33.000000000 +0100 +@@ -20,7 +20,7 @@ + # load user's settings + require 'hammer_cli/settings' + +-CFG_PATH = ['./config/cli_config.yml', '~/.foreman/cli_config.yml', '/etc/foreman/cli_config.yml'] ++CFG_PATH = ['./config/cli_config.yml', '~/.foreman/cli_config.yml', '/etc/foreman/cli_config.yml', "#{::RbConfig::CONFIG['sysconfdir']}/foreman/cli_config.yml"].uniq + + if preparser.config + CFG_PATH.unshift preparser.config diff --git a/sysutils/rubygem-hammer_cli/pkg-descr b/sysutils/rubygem-hammer_cli/pkg-descr new file mode 100644 index 000000000000..bc808414fcbc --- /dev/null +++ b/sysutils/rubygem-hammer_cli/pkg-descr @@ -0,0 +1,5 @@ +Hammer is a generic clamp-based CLI framework. Hammer-cli provides just +the core functionality. The core is extensible using plugins that contain +application-specific commands. + +WWW: https://github.com/theforeman/hammer-cli |