summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnustep-libs/rigs')
-rw-r--r--gnustep-libs/rigs/ChangeLog11
-rw-r--r--gnustep-libs/rigs/Manifest5
-rw-r--r--gnustep-libs/rigs/files/digest-rigs-0.2.2.200507141
-rw-r--r--gnustep-libs/rigs/files/rigs-0.2.2.20050714-install-rb.patch56
-rw-r--r--gnustep-libs/rigs/metadata.xml44
-rw-r--r--gnustep-libs/rigs/rigs-0.2.2.20050714.ebuild82
6 files changed, 199 insertions, 0 deletions
diff --git a/gnustep-libs/rigs/ChangeLog b/gnustep-libs/rigs/ChangeLog
new file mode 100644
index 000000000000..3c83eead871d
--- /dev/null
+++ b/gnustep-libs/rigs/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for gnustep-libs/rigs
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/rigs/ChangeLog,v 1.1 2005/07/15 15:25:46 fafhrd Exp $
+
+*rigs-0.2.2.20050714 (15 Jul 2005)
+
+ 15 Jul 2005; Armando Di Cianno <fafhrd@gentoo.org>
+ +files/rigs-0.2.2.20050714-install-rb.patch, +metadata.xml,
+ +rigs-0.2.2.20050714.ebuild:
+ Original package import
+
diff --git a/gnustep-libs/rigs/Manifest b/gnustep-libs/rigs/Manifest
new file mode 100644
index 000000000000..e329e6e2618b
--- /dev/null
+++ b/gnustep-libs/rigs/Manifest
@@ -0,0 +1,5 @@
+MD5 1fa025cbbfd5bc448118281cd1f6c317 rigs-0.2.2.20050714.ebuild 2312
+MD5 86b9c826110f208afd9236d91266341e ChangeLog 416
+MD5 446667e22535869be688b1b491ee9e90 metadata.xml 1729
+MD5 cd7135583edca0a15c1f02ce0bcbe561 files/digest-rigs-0.2.2.20050714 71
+MD5 85697d2d3e2cd4268eb9e23647690b07 files/rigs-0.2.2.20050714-install-rb.patch 1994
diff --git a/gnustep-libs/rigs/files/digest-rigs-0.2.2.20050714 b/gnustep-libs/rigs/files/digest-rigs-0.2.2.20050714
new file mode 100644
index 000000000000..7902f1e0b65d
--- /dev/null
+++ b/gnustep-libs/rigs/files/digest-rigs-0.2.2.20050714
@@ -0,0 +1 @@
+MD5 489159b29f8a72ebda13959b76863efe rigs-0.2.2.20050714.tar.bz2 69672
diff --git a/gnustep-libs/rigs/files/rigs-0.2.2.20050714-install-rb.patch b/gnustep-libs/rigs/files/rigs-0.2.2.20050714-install-rb.patch
new file mode 100644
index 000000000000..abe95fc3d586
--- /dev/null
+++ b/gnustep-libs/rigs/files/rigs-0.2.2.20050714-install-rb.patch
@@ -0,0 +1,56 @@
+diff -ur rigs-0.2.2.20050714/Ruby/GNUmakefile rigs-0.2.2.20050714-test/Ruby/GNUmakefile
+--- rigs-0.2.2.20050714/Ruby/GNUmakefile 2005-06-19 18:21:43.000000000 -0400
++++ rigs-0.2.2.20050714-test/Ruby/GNUmakefile 2005-07-14 20:45:37.000000000 -0400
+@@ -28,13 +28,13 @@
+
+ # Dynamically determine where the things must be installed
+ # in Ruby
+-RUBY_SITE_LIB_DIR := $(shell ruby -rrbconfig -e 'print Config::CONFIG["sitelibdir"]')
++#RUBY_SITE_LIB_DIR := $(shell ruby -rrbconfig -e 'print Config::CONFIG["sitelibdir"]')
+
+
+-after-install::
+- @cp -f rigs.rb Foundation.rb AppKit.rb $(RUBY_SITE_LIB_DIR)
+- @rm -rf $(RUBY_SITE_LIB_DIR)/rigs/*
+- @cp -rf rigs $(RUBY_SITE_LIB_DIR)
++#after-install::
++# @cp -f rigs.rb Foundation.rb AppKit.rb $(RUBY_SITE_LIB_DIR)
++# @rm -rf $(RUBY_SITE_LIB_DIR)/rigs/*
++# @cp -rf rigs $(RUBY_SITE_LIB_DIR)
+
+ # Is there something more appropriate than tool.make here ?
+-include $(GNUSTEP_MAKEFILES)/tool.make
+\ No newline at end of file
++include $(GNUSTEP_MAKEFILES)/tool.make
+diff -ur rigs-0.2.2.20050714/Source/GNUmakefile.postamble rigs-0.2.2.20050714-test/Source/GNUmakefile.postamble
+--- rigs-0.2.2.20050714/Source/GNUmakefile.postamble 2005-06-19 18:21:43.000000000 -0400
++++ rigs-0.2.2.20050714-test/Source/GNUmakefile.postamble 2005-07-14 21:02:06.000000000 -0400
+@@ -41,17 +41,17 @@
+ # Things to do after installing
+ # install the librigs.so in Ruby dir. Name it librigs.so even if it is
+ # a debug version (omit the _d suffix)
+-ifeq ($(debug),)
+-
+-after-install::
+- @cp -f $(GNUSTEP_OBJ_DIR)/$(LIBRARY_NAME).so $(RUBY_SITE_ARCH_DIR)
+-
+-else
+-
+-after-install::
+- @cp -f $(GNUSTEP_OBJ_DIR)/$(LIBRARY_NAME)_d.so $(RUBY_SITE_ARCH_DIR)/$(LIBRARY_NAME).so
+-
+-endif
++#ifeq ($(debug),)
++#
++#after-install::
++# @cp -f $(GNUSTEP_OBJ_DIR)/$(LIBRARY_NAME).so $(RUBY_SITE_ARCH_DIR)
++#
++#else
++#
++#after-install::
++# @cp -f $(GNUSTEP_OBJ_DIR)/$(LIBRARY_NAME)_d.so $(RUBY_SITE_ARCH_DIR)/$(LIBRARY_NAME).so
++#
++#endif
+
+ # Things to do before uninstalling
+ #before-uninstall::
diff --git a/gnustep-libs/rigs/metadata.xml b/gnustep-libs/rigs/metadata.xml
new file mode 100644
index 000000000000..6134e64740b9
--- /dev/null
+++ b/gnustep-libs/rigs/metadata.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnustep</herd>
+<maintainer>
+ <email>fafhrd@gentoo.org</email>
+</maintainer>
+<longdescription>
+What is RIGS ?
+==============
+
+RIGS stands for Ruby Interface for GNUstep. It is a package allowing
+integration between Ruby and Objective-C/GNUstep. The main purpose of
+RIGS is to allow the use the GNUstep development environment from
+Ruby.
+
+One of the most interesting feature of RIGS is that it is 100%
+dynamic. It means that RIGS maps Ruby object/methods to GNUstep and
+vice/versa entirely on the fly when running the Ruby script. As a
+consequence there is no need to generate any kind of wrapping code to
+use either existing GNUstep classes or even new ones that you have
+developped by yourself. Simply compile your new classes in a shared
+library and then do a simple:
+
+require('MyNewClass') # load your extra ObjC shared library
+Rigs.import("MyNewClass") # dynamically import the class in Ruby
+
+and you are in business! Cool, hey.
+
+RIGS allows you to write optimized classes and components in
+Objective-C, and make them available to Ruby developers. Ruby is a
+great OO programming language and it is real fun to write GNUstep
+applications directly from Ruby.
+
+By the way GNUstep users who don't known Ruby can learn more at
+http://www.ruby-lang.org. And Ruby users that don't know about
+GNUstep can go to http://www.gnustep.org. In both cases, it's
+definitely worth a visit.
+
+RIGS is free software and part of the GNU/GNUstep project, freely
+available from the Free Software Foundation under the GNU LGPL
+license. (Some sample Ruby scripts are under GPL)
+</longdescription>
+</pkgmetadata>
diff --git a/gnustep-libs/rigs/rigs-0.2.2.20050714.ebuild b/gnustep-libs/rigs/rigs-0.2.2.20050714.ebuild
new file mode 100644
index 000000000000..09901856a36d
--- /dev/null
+++ b/gnustep-libs/rigs/rigs-0.2.2.20050714.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnustep-libs/rigs/rigs-0.2.2.20050714.ebuild,v 1.1 2005/07/15 15:25:46 fafhrd Exp $
+
+inherit gnustep
+
+S=${WORKDIR}/${PN}-${PV}
+
+DESCRIPTION="Ruby Interface for GNUstep."
+HOMEPAGE="http://www.gnustep.org/experience/RIGS.html"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+KEYWORDS="~x86 ~ppc"
+LICENSE="LGPL-2.1 GPL-2"
+SLOT="0"
+
+IUSE="${IUSE} doc"
+DEPEND="${GS_DEPEND}
+ dev-lang/ruby"
+RDEPEND="${GS_RDEPEND}
+ dev-lang/ruby"
+
+egnustep_install_domain "Local"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-install-rb.patch
+}
+
+src_install() {
+ gnustep_src_install
+
+ # install shared library
+ RUBY_SITE_ARCH_DIR=$(ruby -rrbconfig -e 'print Config::CONFIG["sitearchdir"]')
+ dodir ${RUBY_SITE_ARCH_DIR}
+ cd ${S}/Source/obj
+ if use debug; then
+ #dolib librigs_d.so
+ if [ "${GNUSTEP_FLATTENED}" ]; then
+ dosym \
+ ${GNUSTEP_LOCAL_ROOT}/Library/Libraries/librigs_d.so \
+ ${RUBY_SITE_ARCH_DIR}/librigs.so
+ else
+ dosym \
+ ${GNUSTEP_LOCAL_ROOT}/Library/Libraries/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/${LIBRARY_COMBO}/librigs_d.so \
+ ${RUBY_SITE_ARCH_DIR}/librigs.so
+ fi
+ else
+ #dolib librigs.so
+ if [ "${GNUSTEP_FLATTENED}" ]; then
+ dosym \
+ ${GNUSTEP_LOCAL_ROOT}/Library/Libraries/librigs.so \
+ ${RUBY_SITE_ARCH_DIR}/librigs.so
+ else
+ dosym \
+ ${GNUSTEP_LOCAL_ROOT}/Library/Libraries/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/${LIBRARY_COMBO}/librigs.so \
+ ${RUBY_SITE_ARCH_DIR}/librigs.so
+ fi
+ fi
+
+ # Install .rb files
+ RUBY_SITE_LIB_DIR=$(ruby -rrbconfig -e 'print Config::CONFIG["sitelibdir"]')
+ dodir ${RUBY_SITE_LIB_DIR}/rigs
+ cd ${S}/Ruby
+ cp -f rigs.rb Foundation.rb AppKit.rb ${D}/${RUBY_SITE_LIB_DIR}
+ cd ${S}/Ruby/rigs
+ RB_FILES=$(ls *.rb -1 --color=never)
+ cp -f ${RB_FILES} ${D}/${RUBY_SITE_LIB_DIR}/rigs
+
+ # install examples
+ if use doc; then
+ cd ${S}
+ dodir ${GNUSTEP_LOCAL_ROOT}/Library/Documentation/RIGS
+ cp -a Examples ${D}/${GNUSTEP_LOCAL_ROOT}/Library/Documentation/RIGS
+ rm -Rf \
+ ${D}/${GNUSTEP_LOCAL_ROOT}/Library/Documentation/RIGS/Examples/CVS \
+ ${D}/${GNUSTEP_LOCAL_ROOT}/Library/Documentation/RIGS/Examples/Base/CVS \
+ ${D}/${GNUSTEP_LOCAL_ROOT}/Library/Documentation/RIGS/Examples/Gui/CVS
+ fi
+}
+