diff options
author | knu <knu@FreeBSD.org> | 2003-08-16 02:40:47 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2003-08-16 02:40:47 +0800 |
commit | ab23820a944c0c3d984061ee40d655e528d2424c (patch) | |
tree | 8a8851e979b5afd73f5ec5d24ca7170b098c5d97 /devel/ruby-p4 | |
parent | 69cb054b3e2766f47c5dce370dbb88f96bf12d5e (diff) | |
download | freebsd-ports-gnome-ab23820a944c0c3d984061ee40d655e528d2424c.tar.gz freebsd-ports-gnome-ab23820a944c0c3d984061ee40d655e528d2424c.tar.zst freebsd-ports-gnome-ab23820a944c0c3d984061ee40d655e528d2424c.zip |
Add ruby-p4 (P4Ruby), Ruby interface to the Perforce API.
Diffstat (limited to 'devel/ruby-p4')
-rw-r--r-- | devel/ruby-p4/Makefile | 52 | ||||
-rw-r--r-- | devel/ruby-p4/distinfo | 1 | ||||
-rw-r--r-- | devel/ruby-p4/pkg-descr | 19 | ||||
-rw-r--r-- | devel/ruby-p4/pkg-plist | 13 |
4 files changed, 85 insertions, 0 deletions
diff --git a/devel/ruby-p4/Makefile b/devel/ruby-p4/Makefile new file mode 100644 index 000000000000..1dd2f9b41330 --- /dev/null +++ b/devel/ruby-p4/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: P4Ruby +# Date created: 16 August 2003 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= p4 +PORTVERSION= 1.3578 +CATEGORIES= devel ruby +MASTER_SITES= http://public.perforce.com/guest/tony_smith/perforce/API/Ruby/release/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:U}Ruby-${PORTVERSION} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org +COMMENT= Ruby interface to the Perforce API + +EXTRACT_DEPENDS= ${LOCALBASE}/lib/perforce/libclient.a:${PORTSDIR}/devel/p4api + +USE_RUBY= yes + +P4APIVER= 2003.01 +P4APIDIR= ${WRKDIR}/p4api +INSTALL_TARGET= site-install + +EXAMPLES= example.rb + +DOCS= Changes \ + doc/* + +post-extract: + ${MKDIR} ${P4APIDIR} + ${LN} -s ${LOCALBASE}/include/perforce/*.h ${P4APIDIR}/ + ${LN} -s ${LOCALBASE}/lib/perforce/*.a ${P4APIDIR}/ + +do-configure: + cd ${WRKSRC}; ${RUBY} p4conf.rb --apidir="${P4APIDIR}" --apiver="${P4APIVER}" + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_MODEXAMPLESDIR} +.for f in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/ +.endfor + ${MKDIR} ${RUBY_MODDOCDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ +.endfor +.endif + +.include <bsd.port.mk> diff --git a/devel/ruby-p4/distinfo b/devel/ruby-p4/distinfo new file mode 100644 index 000000000000..4a48f40d0b9a --- /dev/null +++ b/devel/ruby-p4/distinfo @@ -0,0 +1 @@ +MD5 (ruby/P4Ruby-1.3578.tar.gz) = 175d7a8a2faca653ae28da33969dfb2a diff --git a/devel/ruby-p4/pkg-descr b/devel/ruby-p4/pkg-descr new file mode 100644 index 000000000000..42bb5734f6ba --- /dev/null +++ b/devel/ruby-p4/pkg-descr @@ -0,0 +1,19 @@ +P4Ruby: Ruby interface to the Perforce API + +P4Ruby allows you to write beautiful Ruby code that interacts with a +Perforce server. The main features are: + + * Get Perforce data and forms in hashes and arrays + * Edit Perforce forms by modifying hashes + * Exception based error handling + * Ignore warnings (like "File(s) up-to-date." on a sync) + * Run as many commands on a connection as you want to + +Writing Ruby code is a joy for all programmers, and P4Ruby makes that +experience available to Perforce users. Enjoy it! + +Note: P4Ruby is not supported by Perforce Software, but the author +below personally. + +Author: Tony Smith <tony@smee.org> +WWW: http://public.perforce.com/guest/tony_smith/perforce/API/Ruby/index.html diff --git a/devel/ruby-p4/pkg-plist b/devel/ruby-p4/pkg-plist new file mode 100644 index 000000000000..e5732b23c125 --- /dev/null +++ b/devel/ruby-p4/pkg-plist @@ -0,0 +1,13 @@ +%%RUBY_SITEARCHLIBDIR%%/P4.so +%%RUBY_SITELIBDIR%%/P4.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/example.rb +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/Changes +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/P4.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/P4DepotFile.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/P4Exception.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/P4Integration.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/P4Revision.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/dot.gif +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/index.html +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |