Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2016 00:40:59 +0000 (UTC)
From:      Brad Davis <brd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411910 - in head/devel: . rubygem-p4ruby rubygem-p4ruby/files
Message-ID:  <201603260040.u2Q0ex4D062922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brd
Date: Sat Mar 26 00:40:59 2016
New Revision: 411910
URL: https://svnweb.freebsd.org/changeset/ports/411910

Log:
  Add a new port: devel/rubygem-p4ruby
  
  Approved by:	bdrewery (mentor)

Added:
  head/devel/rubygem-p4ruby/
  head/devel/rubygem-p4ruby/Makefile   (contents, props changed)
  head/devel/rubygem-p4ruby/distinfo   (contents, props changed)
  head/devel/rubygem-p4ruby/files/
  head/devel/rubygem-p4ruby/files/patch-ext__P4__clientprogressruby.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__clientuserruby.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__extconf.rb   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4clientapi.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4error.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4mapmaker.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4mergedata.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4result.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__p4specdata.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/files/patch-ext__P4__specmgr.cpp   (contents, props changed)
  head/devel/rubygem-p4ruby/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri Mar 25 23:30:06 2016	(r411909)
+++ head/devel/Makefile	Sat Mar 26 00:40:59 2016	(r411910)
@@ -5012,6 +5012,7 @@
     SUBDIR += rubygem-open3_backport
     SUBDIR += rubygem-open4
     SUBDIR += rubygem-orm_adapter
+    SUBDIR += rubygem-p4ruby
     SUBDIR += rubygem-paint
     SUBDIR += rubygem-paperclip
     SUBDIR += rubygem-parser

Added: head/devel/rubygem-p4ruby/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/Makefile	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,22 @@
+#	$FreeBSD$
+
+PORTNAME=	p4ruby
+PORTVERSION=	2015.2.1313860
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	brd@FreeBSD.org
+COMMENT=	Ruby bindings for the Perforce API
+
+LICENSE=	BSD2CLAUSE
+
+BUILD_DEPENDS+=	${LOCALBASE}/lib/perforce/libclient.a:${PORTSDIR}/devel/p4api
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+
+USE_RUBY=	yes
+USE_RUBYGEMS=	yes
+RUBYGEM_AUTOPLIST=	yes
+
+CONFIGURE_ARGS=	--with-p4api-dir=${LOCALBASE} --with-p4api-lib=${LOCALBASE}/lib/perforce
+
+.include	<bsd.port.mk>

Added: head/devel/rubygem-p4ruby/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/distinfo	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,2 @@
+SHA256 (rubygem/p4ruby-2015.2.1313860.gem) = 15151901b7d77f6b2a1c99749ebfdad14bbd58b3bac27ec239bfdbff53d9bd9b
+SIZE (rubygem/p4ruby-2015.2.1313860.gem) = 57344

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__clientprogressruby.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__clientprogressruby.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,13 @@
+--- ./ext/P4/clientprogressruby.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/clientprogressruby.cpp	2015-02-11 21:57:19.286226444 +0000
+@@ -39,8 +39,8 @@
+ #include "gc_hack.h"
+ #include "extconf.h"
+ #include "p4utils.h"
+-#include "p4/clientapi.h"
+-#include "p4/clientprog.h"
++#include "perforce/clientapi.h"
++#include "perforce/clientprog.h"
+ #include "clientprogressruby.h"
+ 
+ extern VALUE eP4;

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__clientuserruby.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__clientuserruby.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,17 @@
+--- ./ext/P4/clientuserruby.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/clientuserruby.cpp	2015-02-11 21:57:33.343960720 +0000
+@@ -37,10 +37,10 @@
+ #include <ctype.h>
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/clientprog.h>
+-#include <p4/spec.h>
+-#include <p4/diff.h>
++#include <perforce/clientapi.h>
++#include <perforce/clientprog.h>
++#include <perforce/spec.h>
++#include <perforce/diff.h>
+ #include "p4rubyconf.h"
+ #include "gc_hack.h"
+ #include "p4result.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__extconf.rb
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__extconf.rb	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,44 @@
+--- ext/P4/extconf.rb.orig	2016-03-25 23:50:09.485520000 +0000
++++ ext/P4/extconf.rb	2016-03-25 23:52:32.288698000 +0000
+@@ -354,22 +354,8 @@
+ 
+   # When running rake compile, use this instead of other options, I'm not sure how
+   # gem/bundler options are passed through via rake
+-  if ENV.has_key?('p4api_dir')
+-    p4api_dir = ENV['p4api_dir']
+-    dir_config('p4api', "#{p4api_dir}/include", "#{p4api_dir}/lib")
+-  end
+-
+-  if !p4api_dir && !with_config('p4api-dir') && enable_config('p4api-download', true)
+-    download_api_via_ftp
+-    unzip_file
+-    p4api_dir = downloaded_p4api_dir
+-    dir_config('p4api', "#{p4api_dir}/include", "#{p4api_dir}/lib")
+-  elsif with_config('p4api_dir')
+-    p4api_dir = with_config('p4api-dir')
+-    dir_config('p4api', "#{p4api_dir}/include", "#{p4api_dir}/lib")
+-  elsif !p4api_dir
+-    raise '--with-p4api-dir option has not been specified, and --disable-p4api-download is in effect'
+-  end
++  p4api_dir = with_config('p4api-dir')
++  dir_config('supp', "#{p4api_dir}/include/perforce", "#{p4api_dir}/lib/perforce")
+ 
+   p4api_dir
+ end
+@@ -569,7 +555,8 @@
+ puts "$libs #{$libs}"
+ 
+ # Parse the Version file into a ruby structure
+-version_info = P4ApiVersion.load(p4api_dir)
++#version_info = P4ApiVersion.load(p4api_dir)
++version_info = P4ApiVersion.load("#{p4api_dir}/share/examples/p4api")
+ create_p4rubyconf_header(version_info, $libs)
+ 
+ # This will generate a standard extconf.h based on what we discover locally.
+@@ -577,4 +564,4 @@
+ # don't believe we need to rely on actually.
+ create_header
+ 
+-create_makefile('P4')
+\ No newline at end of file
++create_makefile('P4')

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,17 @@
+--- ./ext/P4/p4.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/p4.cpp	2015-02-11 21:57:38.243472610 +0000
+@@ -36,10 +36,10 @@
+  ******************************************************************************/
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/strtable.h>
+-#include <p4/spec.h>
+-#include <p4/ident.h>
++#include <perforce/clientapi.h>
++#include <perforce/strtable.h>
++#include <perforce/spec.h>
++#include <perforce/ident.h>
+ #include "p4result.h"
+ #include "specmgr.h"
+ #include "clientuserruby.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4clientapi.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4clientapi.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,23 @@
+--- ./ext/P4/p4clientapi.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/p4clientapi.cpp	2015-02-11 21:57:42.902119989 +0000
+@@ -36,13 +36,13 @@
+  ******************************************************************************/
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/i18napi.h>
+-#include <p4/enviro.h>
+-#include <p4/hostenv.h>
+-#include <p4/spec.h>
+-#include <p4/ignore.h>
+-#include <p4/debug.h>
++#include <perforce/clientapi.h>
++#include <perforce/i18napi.h>
++#include <perforce/enviro.h>
++#include <perforce/hostenv.h>
++#include <perforce/spec.h>
++#include <perforce/ignore.h>
++#include <perforce/debug.h>
+ #include "p4result.h"
+ #include "p4rubydebug.h"
+ #include "clientuserruby.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4error.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4error.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,11 @@
+--- ./ext/P4/p4error.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/p4error.cpp	2015-02-11 21:57:46.404951840 +0000
+@@ -35,7 +35,7 @@
+  ******************************************************************************/
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
++#include <perforce/clientapi.h>
+ #include "p4rubydebug.h"
+ #include "p4utils.h"
+ #include "p4error.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4mapmaker.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4mapmaker.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,15 @@
+--- ./ext/P4/p4mapmaker.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/p4mapmaker.cpp	2015-02-11 21:57:50.622092422 +0000
+@@ -35,9 +35,9 @@
+  ******************************************************************************/
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/mapapi.h>
+-#include <p4/debug.h>
++#include <perforce/clientapi.h>
++#include <perforce/mapapi.h>
++#include <perforce/debug.h>
+ #include "p4rubydebug.h"
+ #include "p4utils.h"
+ #include "p4mapmaker.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4mergedata.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4mergedata.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,17 @@
+--- ./ext/P4/p4mergedata.cpp.orig	2015-02-11 21:56:41.253726893 +0000
++++ ./ext/P4/p4mergedata.cpp	2015-02-11 21:57:54.274440052 +0000
+@@ -35,10 +35,10 @@
+  ******************************************************************************/
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/i18napi.h>
+-#include <p4/strtable.h>
+-#include <p4/spec.h>
++#include <perforce/clientapi.h>
++#include <perforce/i18napi.h>
++#include <perforce/strtable.h>
++#include <perforce/spec.h>
+ #include "p4result.h"
+ #include "p4rubydebug.h"
+ #include "clientuserruby.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4result.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4result.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,11 @@
+--- ./ext/P4/p4result.cpp.orig	2015-02-11 21:56:41.261843618 +0000
++++ ./ext/P4/p4result.cpp	2015-02-11 21:57:58.250220456 +0000
+@@ -37,7 +37,7 @@
+ 
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
++#include <perforce/clientapi.h>
+ #include "gc_hack.h"
+ #include "p4error.h"
+ #include "p4utils.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__p4specdata.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__p4specdata.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,17 @@
+--- ./ext/P4/p4specdata.cpp.orig	2015-02-11 21:56:41.261843618 +0000
++++ ./ext/P4/p4specdata.cpp	2015-02-11 21:58:02.592245739 +0000
+@@ -38,10 +38,10 @@
+ 
+ #include <ruby.h>
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/i18napi.h>
+-#include <p4/spec.h>
+-#include <p4/debug.h>
++#include <perforce/clientapi.h>
++#include <perforce/i18napi.h>
++#include <perforce/spec.h>
++#include <perforce/debug.h>
+ #include "p4rubydebug.h"
+ #include "p4utils.h"
+ #include "p4specdata.h"

Added: head/devel/rubygem-p4ruby/files/patch-ext__P4__specmgr.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/files/patch-ext__P4__specmgr.cpp	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,17 @@
+--- ./ext/P4/specmgr.cpp.orig	2015-02-11 21:56:41.261843618 +0000
++++ ./ext/P4/specmgr.cpp	2015-02-11 21:58:06.073099450 +0000
+@@ -38,10 +38,10 @@
+ #include <ruby.h>
+ #include "p4utils.h"
+ #include "undefdups.h"
+-#include <p4/clientapi.h>
+-#include <p4/strops.h>
+-#include <p4/spec.h>
+-#include <p4/strtable.h>
++#include <perforce/clientapi.h>
++#include <perforce/strops.h>
++#include <perforce/spec.h>
++#include <perforce/strtable.h>
+ #include "p4rubyconf.h"
+ #include "gc_hack.h"
+ #include "p4rubydebug.h"

Added: head/devel/rubygem-p4ruby/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-p4ruby/pkg-descr	Sat Mar 26 00:40:59 2016	(r411910)
@@ -0,0 +1,4 @@
+The Ruby bindings for the Perforce Client API provide convenient classes
+within Ruby for communicating with Perforce SCM servers.
+
+WWW: http://www.perforce.com/perforce/loadsupp.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603260040.u2Q0ex4D062922>