diff options
author | pav <pav@FreeBSD.org> | 2005-02-11 07:53:43 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-02-11 07:53:43 +0800 |
commit | 70588a3b8de768c48a66258963b1eee1c00271e5 (patch) | |
tree | a233eef03fcbd06347f8ad86f5af3f1bf48ee8df /x11-toolkits/ruby-wx | |
parent | 1df17d9bd6a40bcde5d78b94960cf5e48c1c3e57 (diff) | |
download | freebsd-ports-gnome-70588a3b8de768c48a66258963b1eee1c00271e5.tar.gz freebsd-ports-gnome-70588a3b8de768c48a66258963b1eee1c00271e5.tar.zst freebsd-ports-gnome-70588a3b8de768c48a66258963b1eee1c00271e5.zip |
wxRuby is a library to allow Ruby programs to use wxWindows (also
known as wxWidgets), which is a mature, cross-platform, GUI toolkit
that uses native widgets where possible.
PR: ports/77283
Submitted by: Ulrich Spoerlein <q@uni.de>
Diffstat (limited to 'x11-toolkits/ruby-wx')
-rw-r--r-- | x11-toolkits/ruby-wx/Makefile | 53 | ||||
-rw-r--r-- | x11-toolkits/ruby-wx/distinfo | 2 | ||||
-rw-r--r-- | x11-toolkits/ruby-wx/files/patch-extconf.rb | 20 | ||||
-rw-r--r-- | x11-toolkits/ruby-wx/pkg-descr | 5 | ||||
-rw-r--r-- | x11-toolkits/ruby-wx/pkg-plist | 161 |
5 files changed, 241 insertions, 0 deletions
diff --git a/x11-toolkits/ruby-wx/Makefile b/x11-toolkits/ruby-wx/Makefile new file mode 100644 index 000000000000..4ea1f79aa2f8 --- /dev/null +++ b/x11-toolkits/ruby-wx/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: x11-toolkits/ruby-wx +# Date created: 03.01.2004 +# Whom: Ulrich Spoerlein <q@uni.de> +# +# $FreeBSD$ +# + +PORTNAME= wx +PORTVERSION= 0.6.0 +CATEGORIES= x11-toolkits ruby +MASTER_SITES= http://rubyforge.org/frs/download.php/1983/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= wxruby-${PORTVERSION:S/.0$//}-src +DIST_SUBDIR= ruby + +MAINTAINER= q@uni.de +COMMENT= Ruby bindings for wxWindows (aka wxWidgets) + +LIB_DEPENDS= wx_gtk2-2.4:${PORTSDIR}/x11-toolkits/wxgtk2 \ + wx_gtk2_xrc-2.4:${PORTSDIR}/x11-toolkits/wxgtk2-contrib + +USE_ICONV= yes +USE_RUBY= yes +USE_RUBY_EXTCONF= yes +USE_REINPLACE= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500035 +BROKEN= "Cannot link: undefined versioned symbol name" +.endif + +WRKSRC= ${WRKDIR}/${DISTNAME}/src +DOCS= README README.linux ChangeLog + +post-patch: + @${FIND} ${WRKSRC} -name *.t | ${XARGS} ${REINPLACE_CMD} -e 's|
||' + @${REINPLACE_CMD} -E 's/ html(processor|window).o//' ${WRKSRC}/depend + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${RUBY_MODDOCDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/../${f} ${RUBY_MODDOCDIR}/ +.endfor + ${MKDIR} ${RUBY_MODEXAMPLESDIR} + cd ${RUBY_MODEXAMPLESDIR} && ${MKDIR} `cd ${WRKSRC}/../samples && ${FIND} * -type d` + for f in `cd ${WRKSRC}/../samples && ${FIND} * -type f`; do \ + ${INSTALL_DATA} ${WRKSRC}/../samples/$$f ${RUBY_MODEXAMPLESDIR}/$$f; \ + done +.endif + +.include <bsd.port.post.mk> diff --git a/x11-toolkits/ruby-wx/distinfo b/x11-toolkits/ruby-wx/distinfo new file mode 100644 index 000000000000..fe529958ed72 --- /dev/null +++ b/x11-toolkits/ruby-wx/distinfo @@ -0,0 +1,2 @@ +MD5 (ruby/wxruby-0.6-src.tar.gz) = 8368a090cb05e784f191767e1e78f27f +SIZE (ruby/wxruby-0.6-src.tar.gz) = 340815 diff --git a/x11-toolkits/ruby-wx/files/patch-extconf.rb b/x11-toolkits/ruby-wx/files/patch-extconf.rb new file mode 100644 index 000000000000..b018405af9f1 --- /dev/null +++ b/x11-toolkits/ruby-wx/files/patch-extconf.rb @@ -0,0 +1,20 @@ +--- extconf.rb.orig Wed Nov 17 15:56:22 2004 ++++ extconf.rb Fri Feb 11 00:42:43 2005 +@@ -32,13 +32,16 @@ + end + + +-if /linux/ =~ RUBY_PLATFORM or /i386-freebsd/ =~ RUBY_PLATFORM ++if /linux/ =~ RUBY_PLATFORM or /freebsd/ =~ RUBY_PLATFORM + CONFIG['CC'] = `wx-config --cxx` + CONFIG['LDSHARED'].gsub!("gcc",`wx-config --cxx`.strip) + $CFLAGS += " `wx-config --cxxflags`" + $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script " + ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| + $objs.delete(str) ++ end ++ if ($use_xrc) ++ $LDFLAGS += " -lwx_gtk2_xrc-2.4 " + end + + elsif /mingw32/ =~ RUBY_PLATFORM diff --git a/x11-toolkits/ruby-wx/pkg-descr b/x11-toolkits/ruby-wx/pkg-descr new file mode 100644 index 000000000000..428f20332eb8 --- /dev/null +++ b/x11-toolkits/ruby-wx/pkg-descr @@ -0,0 +1,5 @@ +wxRuby is a library to allow Ruby programs to use wxWindows (also +known as wxWidgets), which is a mature, cross-platform, GUI toolkit +that uses native widgets where possible. + +WWW: http://rubyforge.org/projects/wxruby/ diff --git a/x11-toolkits/ruby-wx/pkg-plist b/x11-toolkits/ruby-wx/pkg-plist new file mode 100644 index 000000000000..b214a0d78d1a --- /dev/null +++ b/x11-toolkits/ruby-wx/pkg-plist @@ -0,0 +1,161 @@ +%%RUBY_SITEARCHLIBDIR%%/wxruby.so +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.linux +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/artprov.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/error.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/info.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/mondrian.ico +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/null.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/question.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/artprov/warning.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/calendar/calendar.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/caret/caret.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/caret/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/checklst/checklst.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/config/conftest.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/controls.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/get_item_sample.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/choice.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/choice.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/combo.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/combo.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/gauge.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/gauge.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/list.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/list.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/radio.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/radio.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/stattext.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/text.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/icons/text.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/mondrian.ico +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/controls/test2.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dialogs/dialogs.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dialogs/tips.txt +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/b1.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/big-xrc-test.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/big-xrc-test.xrc +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/books.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/dndfile.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/dndtext.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/dragdrop.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/events.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/font.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/minimal.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/mondrian.ico +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test10.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test11.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test12.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test13.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test14.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test15.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test16.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test17.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test18.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test19.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test2.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test20.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test21.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test3.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test4.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test5.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test6.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test7.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test8.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/etc/test9.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/grid/grid.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/about/about.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/about/data/about.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/about/data/logo.png +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/printing/printing.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/printing/test.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/8859_2.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/cp1250.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/f.html +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/fft.html +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/i18n.gif +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/imagemap.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/imagemap.png +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/pic.png +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/pic2.bmp +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/regres.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/tables.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/test.htm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/html/test/test.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/images/images.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/images/paperclip.png +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/layout/layout.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/small1.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/toolbrai.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/toolchar.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/toolchec.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/tooldata.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/toolgame.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/toolnote.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/tooltime.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/tooltodo.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps/toolword.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/listtest.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/listctrl/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/mdi/mdi.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/minimal/minimal.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/minimal/mondrian.ico +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/minimal/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/minimal/nothing.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sockets/client.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sockets/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sockets/server.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/splitter/splitter.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/copy.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/cut.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/help.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/new.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/open.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/preview.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/print.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps/save.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/toolbar/toolbar.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/icon1.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/icon2.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/icon3.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/icon4.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/icon5.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/mondrian.xpm +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/treectrl/treetest.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/xrc/samples.xrc +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/xrc/xrc_sample.rb +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/xrc +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/treectrl +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/toolbar/bitmaps +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/toolbar +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/splitter +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/sockets +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/minimal +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/mdi +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/listctrl/bitmaps +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/listctrl +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/layout +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/images +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/html/test +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/html/printing +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/html/about/data +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/html/about +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/html +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/grid +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/etc +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/dialogs +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/controls/icons +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/controls +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/config +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/checklst +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/caret +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/calendar +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/artprov +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% |