summaryrefslogtreecommitdiffstats
path: root/graphics/ruby-gimp
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-02-28 17:03:40 +0000
committerknu <knu@FreeBSD.org>2001-02-28 17:03:40 +0000
commit92e78acdd88f1419bab646ca2df07cd8e6231108 (patch)
tree04e8a371d64d85910e6cf3c312021b7cbb6070b4 /graphics/ruby-gimp
parent58e2688f8d808feb2136e36407e95b61d1c58872 (diff)
downloadFreeBSD-ports-92e78acdd88f1419bab646ca2df07cd8e6231108.zip
FreeBSD-ports-92e78acdd88f1419bab646ca2df07cd8e6231108.tar.gz
Add ruby-gimp, a Ruby extension library to write GIMP plugins in Ruby
(Ruby-Fu).
Diffstat (limited to 'graphics/ruby-gimp')
-rw-r--r--graphics/ruby-gimp/Makefile45
-rw-r--r--graphics/ruby-gimp/distinfo1
-rw-r--r--graphics/ruby-gimp/files/patch-gimp::extconf.rb12
-rw-r--r--graphics/ruby-gimp/files/patch-gimpui::extconf.rb13
-rw-r--r--graphics/ruby-gimp/files/patch-plug-ins::eval.rb11
-rw-r--r--graphics/ruby-gimp/pkg-comment1
-rw-r--r--graphics/ruby-gimp/pkg-descr4
-rw-r--r--graphics/ruby-gimp/pkg-plist23
8 files changed, 110 insertions, 0 deletions
diff --git a/graphics/ruby-gimp/Makefile b/graphics/ruby-gimp/Makefile
new file mode 100644
index 0000000..680550a
--- /dev/null
+++ b/graphics/ruby-gimp/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: ruby-gimp
+# Date created: 28 February 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gimp
+PORTVERSION= 20000227
+CATEGORIES= graphics ruby
+MASTER_SITES= http://homepage1.nifty.com/susho/software/gimp/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-snapshot-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= gimp.1:${.CURDIR}/../gimp1
+RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk.so:${PORTSDIR}/x11-toolkits/ruby-gtk
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/ruby-${PORTNAME}
+INSTALL_TARGET= site-install
+PLIST_SUB= X11BASE="${X11BASE}"
+
+DOCS_EN= ENVIRONMENT \
+ README \
+ TODO
+DOCS_JA= MEMO.ja
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/plug-ins/*.rb ${X11BASE}/libexec/gimp/1.2/plug-ins/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/ruby-gimp/distinfo b/graphics/ruby-gimp/distinfo
new file mode 100644
index 0000000..9cbfeea
--- /dev/null
+++ b/graphics/ruby-gimp/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-gimp-snapshot-20000227.tar.gz) = a0a6f1d1a746f886bcab3cc9ea3e6a66
diff --git a/graphics/ruby-gimp/files/patch-gimp::extconf.rb b/graphics/ruby-gimp/files/patch-gimp::extconf.rb
new file mode 100644
index 0000000..cff4a5c
--- /dev/null
+++ b/graphics/ruby-gimp/files/patch-gimp::extconf.rb
@@ -0,0 +1,12 @@
+--- gimp/extconf.rb.orig Fri Feb 23 04:53:23 2001
++++ gimp/extconf.rb Wed Feb 28 22:43:04 2001
+@@ -2,8 +2,8 @@
+ require '../mkmf_gimp.rb'
+
+ $CFLAGS += ' ' + GimpConfig::CFLAGS
++$LDFLAGS += ' ' + GimpConfig::LDFLAGS
+
+ if have_gimp_library("gimp", "gimp_main") and have_header("libgimp/gimp.h")
+-# $LDFLAGS += ' ' + GimpConfig::LDFLAGS
+ create_makefile("gimp")
+ end
diff --git a/graphics/ruby-gimp/files/patch-gimpui::extconf.rb b/graphics/ruby-gimp/files/patch-gimpui::extconf.rb
new file mode 100644
index 0000000..880c373f
--- /dev/null
+++ b/graphics/ruby-gimp/files/patch-gimpui::extconf.rb
@@ -0,0 +1,13 @@
+--- gimpui/extconf.rb.orig Fri Feb 23 04:55:36 2001
++++ gimpui/extconf.rb Wed Feb 28 22:42:45 2001
+@@ -2,9 +2,8 @@
+ require '../mkmf_gimp.rb'
+
+ $CFLAGS += ' ' + GimpConfig::CFLAGS
+-$LDFLAGS += ' -lgimp'
++$LDFLAGS += ' ' + GimpConfig::LDFLAGS
+
+ if have_gimp_library("gimpui", "gimp_ui_init") and have_header("libgimp/gimpui.h")
+-# $LDFLAGS += ' ' + GimpConfig::LDFLAGS
+ create_makefile("gimpui")
+ end
diff --git a/graphics/ruby-gimp/files/patch-plug-ins::eval.rb b/graphics/ruby-gimp/files/patch-plug-ins::eval.rb
new file mode 100644
index 0000000..9a84127
--- /dev/null
+++ b/graphics/ruby-gimp/files/patch-plug-ins::eval.rb
@@ -0,0 +1,11 @@
+--- plug-ins/eval.rb.orig Tue Feb 27 20:08:13 2001
++++ plug-ins/eval.rb Thu Mar 1 01:29:43 2001
+@@ -13,7 +13,7 @@
+ "",
+ [
+ [RF_STRING, "code", "Code to eval", "", true],
+- ],
++ ]
+ ) { |text|
+ eval(text)
+ }
diff --git a/graphics/ruby-gimp/pkg-comment b/graphics/ruby-gimp/pkg-comment
new file mode 100644
index 0000000..35d367b
--- /dev/null
+++ b/graphics/ruby-gimp/pkg-comment
@@ -0,0 +1 @@
+Ruby extension library to write GIMP plugins in Ruby (Ruby-Fu)
diff --git a/graphics/ruby-gimp/pkg-descr b/graphics/ruby-gimp/pkg-descr
new file mode 100644
index 0000000..87834009
--- /dev/null
+++ b/graphics/ruby-gimp/pkg-descr
@@ -0,0 +1,4 @@
+This is a Ruby extension library to write GIMP plugins in Ruby. (Ruby-Fu)
+
+Author: Masahiro Sakai <zvm01052@nifty.ne.jp>
+WWW: http://homepage1.nifty.com/susho/software/index.en.html#Gimp-Ruby
diff --git a/graphics/ruby-gimp/pkg-plist b/graphics/ruby-gimp/pkg-plist
new file mode 100644
index 0000000..450dfb8
--- /dev/null
+++ b/graphics/ruby-gimp/pkg-plist
@@ -0,0 +1,23 @@
+%%RUBY_SITEARCHLIBDIR%%/gimp.so
+%%RUBY_SITEARCHLIBDIR%%/gimpui.so
+%%RUBY_SITELIBDIR%%/gimp.rb
+%%RUBY_SITELIBDIR%%/gimpenums.rb
+%%RUBY_SITELIBDIR%%/gimpfu.rb
+%%RUBY_SITELIBDIR%%/gimpshelf.rb
+%%RUBY_SITELIBDIR%%/gimpui.rb
+%%PORTDOCS%%%%RUBY_DOCDIR%%/gimp/TODO
+%%PORTDOCS%%%%RUBY_DOCDIR%%/gimp/README
+%%PORTDOCS%%%%RUBY_DOCDIR%%/gimp/ENVIRONMENT
+%%PORTDOCS%%%%RUBY_DOCDIR%%/gimp/ja/MEMO.ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/gimp/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/gimp
+@cwd %%X11BASE%%
+libexec/gimp/1.2/plug-ins/clothify.rb
+libexec/gimp/1.2/plug-ins/coolmetal-logo.rb
+libexec/gimp/1.2/plug-ins/erase-rows.rb
+libexec/gimp/1.2/plug-ins/eval.rb
+libexec/gimp/1.2/plug-ins/list_images.rb
+libexec/gimp/1.2/plug-ins/raindrop.rb
+libexec/gimp/1.2/plug-ins/rendermap.rb
+libexec/gimp/1.2/plug-ins/sphere.rb
+libexec/gimp/1.2/plug-ins/textured-logo.rb
OpenPOWER on IntegriCloud