diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-03-20 12:58:51 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-03-20 12:58:51 +0000 |
commit | e023b986940969dd2c6abd342268342f6ce434ae (patch) | |
tree | 336012b4a49c6985d8111e169165520624df173c | |
parent | This file isn't needed anymore. (diff) |
Add ruby-panel-applet 0.27, a Ruby binding for GNOME panel-applet
library.
Notes
Notes:
svn path=/head/; revision=56384
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/ruby-panel-applet/Makefile | 41 | ||||
-rw-r--r-- | x11/ruby-panel-applet/files/patch-extconf.rb | 35 | ||||
-rw-r--r-- | x11/ruby-panel-applet/pkg-comment | 1 | ||||
-rw-r--r-- | x11/ruby-panel-applet/pkg-descr | 4 | ||||
-rw-r--r-- | x11/ruby-panel-applet/pkg-plist | 7 |
6 files changed, 89 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile index 6c456041b0bf..475ed1240148 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 000000000000..3e0242cb8b58 --- /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 000000000000..6044f8c24ab8 --- /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 000000000000..17c4d1e5cc56 --- /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 000000000000..59eda5dbab5b --- /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 000000000000..2d81e7d032e6 --- /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 |