From a33d2d9ef689330a0011c05adec5f5f91dd2458e Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Wed, 28 Feb 2001 17:03:40 +0000 Subject: [PATCH] Add ruby-gimp, a Ruby extension library to write GIMP plugins in Ruby (Ruby-Fu). --- graphics/Makefile | 1 + graphics/ruby-gimp/Makefile | 45 +++++++++++++++++++ graphics/ruby-gimp/distinfo | 1 + .../ruby-gimp/files/patch-gimp::extconf.rb | 12 +++++ .../ruby-gimp/files/patch-gimpui::extconf.rb | 13 ++++++ .../ruby-gimp/files/patch-plug-ins::eval.rb | 11 +++++ graphics/ruby-gimp/pkg-comment | 1 + graphics/ruby-gimp/pkg-descr | 4 ++ graphics/ruby-gimp/pkg-plist | 23 ++++++++++ 9 files changed, 111 insertions(+) create mode 100644 graphics/ruby-gimp/Makefile create mode 100644 graphics/ruby-gimp/distinfo create mode 100644 graphics/ruby-gimp/files/patch-gimp::extconf.rb create mode 100644 graphics/ruby-gimp/files/patch-gimpui::extconf.rb create mode 100644 graphics/ruby-gimp/files/patch-plug-ins::eval.rb create mode 100644 graphics/ruby-gimp/pkg-comment create mode 100644 graphics/ruby-gimp/pkg-descr create mode 100644 graphics/ruby-gimp/pkg-plist diff --git a/graphics/Makefile b/graphics/Makefile index f347b1634102..0b0ff2b83e47 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -178,6 +178,7 @@ SUBDIR += ruby-gd SUBDIR += ruby-gdk_imlib SUBDIR += ruby-gdk_pixbuf + SUBDIR += ruby-gimp SUBDIR += ruby-libpng SUBDIR += ruby-ming SUBDIR += ruby-opengl diff --git a/graphics/ruby-gimp/Makefile b/graphics/ruby-gimp/Makefile new file mode 100644 index 000000000000..680550a5b72f --- /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 +# +# $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 diff --git a/graphics/ruby-gimp/distinfo b/graphics/ruby-gimp/distinfo new file mode 100644 index 000000000000..9cbfeea842df --- /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 000000000000..cff4a5c70049 --- /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 000000000000..880c373f8a30 --- /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 000000000000..9a841276f6e2 --- /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 000000000000..35d367ba62f6 --- /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 000000000000..878340091290 --- /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 +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 000000000000..450dfb830685 --- /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