summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-03-20 12:58:51 +0000
committerknu <knu@FreeBSD.org>2002-03-20 12:58:51 +0000
commitc8588383549542a81d7d499d3f7b03c35e970fde (patch)
tree62754c6ed119c05d85ed40999195d9ab6ee5c55e /x11
parent0f199271837d58d7ba66b9a3fe8f3f50dd553647 (diff)
downloadFreeBSD-ports-c8588383549542a81d7d499d3f7b03c35e970fde.zip
FreeBSD-ports-c8588383549542a81d7d499d3f7b03c35e970fde.tar.gz
Add ruby-panel-applet 0.27, a Ruby binding for GNOME panel-applet
library.
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/ruby-panel-applet/Makefile41
-rw-r--r--x11/ruby-panel-applet/files/patch-extconf.rb35
-rw-r--r--x11/ruby-panel-applet/pkg-comment1
-rw-r--r--x11/ruby-panel-applet/pkg-descr4
-rw-r--r--x11/ruby-panel-applet/pkg-plist7
6 files changed, 89 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 6c45604..475ed12 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -75,6 +75,7 @@
SUBDIR += ruby-X11
SUBDIR += ruby-gnome
SUBDIR += ruby-kde
+ SUBDIR += ruby-panel-applet
SUBDIR += rxvt
SUBDIR += rxvt-devel
SUBDIR += stockticker_applet
diff --git a/x11/ruby-panel-applet/Makefile b/x11/ruby-panel-applet/Makefile
new file mode 100644
index 0000000..3e0242c
--- /dev/null
+++ b/x11/ruby-panel-applet/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: Ruby-panel-applet
+# Date created: 20 March 2002
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= panel-applet
+PORTVERSION= ${RUBY_GNOME_PORTVERSION}
+CATEGORIES= x11 ruby gnome
+MASTER_SITES= ${RUBY_GNOME_MASTER_SITES}
+MASTER_SITE_SUBDIR= ${RUBY_GNOME_MASTER_SITE_SUBDIR}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${RUBY_GNOME_DISTNAME}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk.so:${PORTSDIR}/x11-toolkits/ruby-gtk \
+ ${RUBY_SITEARCHLIBDIR}/gnome.so:${PORTSDIR}/x11/ruby-gnome
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+USE_GNOME= yes
+
+.include "${.CURDIR}/../../x11/ruby-gnome/Makefile.common"
+
+WRKSRC= ${RUBY_GNOME_WRKSRC}/${PORTNAME}
+INSTALL_TARGET= site-install
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+.for f in ChangeLog README
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11/ruby-panel-applet/files/patch-extconf.rb b/x11/ruby-panel-applet/files/patch-extconf.rb
new file mode 100644
index 0000000..6044f8c
--- /dev/null
+++ b/x11/ruby-panel-applet/files/patch-extconf.rb
@@ -0,0 +1,35 @@
+--- extconf.rb.orig Tue Oct 9 02:49:22 2001
++++ extconf.rb Wed Mar 20 21:53:56 2002
+@@ -1,5 +1,11 @@
+ require 'mkmf'
+
++gnome_config = with_config('gnome-config', 'gnome-config')
++
++while /^--/ =~ ARGV[0]
++ ARGV.shift
++end
++
+ rbgtk_dir = "../gtk"
+ rbgtk_dir = ARGV[0] if ARGV[0]
+ unless FileTest.exist?(rbgtk_dir)
+@@ -12,15 +18,14 @@
+ raise "directry #{rbgnome_dir} not found. Please specify Ruby-GNOME source dir."
+ end
+
+-$CFLAGS = "-I#{rbgtk_dir}/src -I#{rbgnome_dir}/src " + `gnome-config --cflags applets`.chomp
+-$LDFLAGS = `gnome-config --libs applets`.chomp
++$CFLAGS += " -I#{rbgtk_dir}/src -I#{rbgnome_dir}/src " + `gnome-config --cflags applets`.chomp
++$LDFLAGS += ' ' + `#{gnome_config} --libs applets`.chomp
+
+ have_library("X11", "XOpenDisplay") &&
+ have_library("Xi", "XOpenDevice") &&
+ have_library("Xext", "XextFindDisplay") &&
+ have_library("Xmu", "XmuInternAtom") &&
+-have_library("glib", "g_print") &&
+-have_library("gtk", "gtk_init") &&
+-have_library("panel_applet", "applet_widget_init") &&
+-
++have_func("g_print") &&
++have_func("gtk_init") &&
++have_func("applet_widget_init") &&
+ create_makefile('panel_applet')
diff --git a/x11/ruby-panel-applet/pkg-comment b/x11/ruby-panel-applet/pkg-comment
new file mode 100644
index 0000000..17c4d1e
--- /dev/null
+++ b/x11/ruby-panel-applet/pkg-comment
@@ -0,0 +1 @@
+A Ruby binding for GNOME panel-applet library
diff --git a/x11/ruby-panel-applet/pkg-descr b/x11/ruby-panel-applet/pkg-descr
new file mode 100644
index 0000000..59eda5d
--- /dev/null
+++ b/x11/ruby-panel-applet/pkg-descr
@@ -0,0 +1,4 @@
+Ruby-panel-applet - a Ruby binding for GNOME panel-applet library.
+
+Author: Neil Conway <neilconway@rogers.com>
+WWW: http://ruby-gnome.sf.net/
diff --git a/x11/ruby-panel-applet/pkg-plist b/x11/ruby-panel-applet/pkg-plist
new file mode 100644
index 0000000..2d81e7d
--- /dev/null
+++ b/x11/ruby-panel-applet/pkg-plist
@@ -0,0 +1,7 @@
+%%RUBY_SITEARCHLIBDIR%%/panel_applet.so
+%%RUBY_SITELIBDIR%%/panel-applet.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panel-applet/clock-applet.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/panel-applet
+%%PORTDOCS%%%%RUBY_DOCDIR%%/panel-applet/ChangeLog
+%%PORTDOCS%%%%RUBY_DOCDIR%%/panel-applet/README
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/panel-applet
OpenPOWER on IntegriCloud