Add ruby-libglade, a wrapper library of libglade for Ruby.

This commit is contained in:
Akinori MUSHA 2001-02-07 20:00:57 +00:00
parent fc8e4f049f
commit 5f46ac1988
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38075
13 changed files with 155 additions and 0 deletions

View file

@ -350,6 +350,7 @@
SUBDIR += ruby-filelock
SUBDIR += ruby-gemfinder
SUBDIR += ruby-intl
SUBDIR += ruby-libglade
SUBDIR += ruby-locale
SUBDIR += ruby-optparse
SUBDIR += ruby-property

View file

@ -0,0 +1,40 @@
# New ports collection makefile for: Ruby-libglade
# Date created: 8 February 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= libglade
PORTVERSION= 1.1
CATEGORIES= devel ruby
MASTER_SITES= http://beta4.com/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= glade.4:${PORTSDIR}/devel/libglade
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk.so:${PORTSDIR}/x11-toolkits/ruby-gtk
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
WANT_GLIB= yes
WANT_GTK= yes
WRKSRC= ${WRKDIR}/ruby-${PORTNAME}
CONFIGURE_ARGS= --with-glade-include="${LOCALBASE}/include/glade" \
--with-glib-config="${GLIB_CONFIG}" \
--with-gtk-config="${GTK_CONFIG}"
INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/libglade/
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/libglade/
${MKDIR} ${RUBY_DOCDIR}/libglade
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/libglade/
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (ruby/ruby-libglade-1.1.tar.gz) = 216279927ce94e10ba4c5abcaa83e88a

View file

@ -0,0 +1,25 @@
--- extconf.rb.orig Wed Jan 24 12:29:18 2001
+++ extconf.rb Thu Feb 8 04:50:07 2001
@@ -2,6 +2,16 @@
$objs = ["rbglade.o"]
+glib_config = with_config("glib-config", "glib-config")
+$CFLAGS += " " + %x(#{glib_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{glib_config} --libs).chomp
+
+gtk_config = with_config("gtk-config", "gtk-config")
+$CFLAGS += " " + %x(#{gtk_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{gtk_config} --libs).chomp
+
+puts $CFLAGS
+
dir_config("glade")
dir_config("xml")
dir_config("z")
@@ -15,4 +25,4 @@
end
end
-create_makefile("lglade")
+create_makefile("lglade")

View file

@ -0,0 +1 @@
A wrapper library of libglade for Ruby

View file

@ -0,0 +1,4 @@
Ruby-libglade -- A wrapper library of libglade for ruby
Author: Avi Bryant <avi@beta4.com>
WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=Ruby%2FLibGlade

View file

@ -0,0 +1,6 @@
%%RUBY_SITEARCHLIBDIR%%/lglade.so
%%RUBY_EXAMPLESDIR%%/libglade/test.glade
%%RUBY_EXAMPLESDIR%%/libglade/test.rb
@dirrm %%RUBY_EXAMPLESDIR%%/libglade
%%RUBY_DOCDIR%%/libglade/README
@dirrm %%RUBY_DOCDIR%%/libglade

View file

@ -0,0 +1,40 @@
# New ports collection makefile for: Ruby-libglade
# Date created: 8 February 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= libglade
PORTVERSION= 1.1
CATEGORIES= devel ruby
MASTER_SITES= http://beta4.com/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= glade.4:${PORTSDIR}/devel/libglade
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk.so:${PORTSDIR}/x11-toolkits/ruby-gtk
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
WANT_GLIB= yes
WANT_GTK= yes
WRKSRC= ${WRKDIR}/ruby-${PORTNAME}
CONFIGURE_ARGS= --with-glade-include="${LOCALBASE}/include/glade" \
--with-glib-config="${GLIB_CONFIG}" \
--with-gtk-config="${GTK_CONFIG}"
INSTALL_TARGET= site-install
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/libglade/
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/libglade/
${MKDIR} ${RUBY_DOCDIR}/libglade
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/libglade/
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (ruby/ruby-libglade-1.1.tar.gz) = 216279927ce94e10ba4c5abcaa83e88a

View file

@ -0,0 +1,25 @@
--- extconf.rb.orig Wed Jan 24 12:29:18 2001
+++ extconf.rb Thu Feb 8 04:50:07 2001
@@ -2,6 +2,16 @@
$objs = ["rbglade.o"]
+glib_config = with_config("glib-config", "glib-config")
+$CFLAGS += " " + %x(#{glib_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{glib_config} --libs).chomp
+
+gtk_config = with_config("gtk-config", "gtk-config")
+$CFLAGS += " " + %x(#{gtk_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{gtk_config} --libs).chomp
+
+puts $CFLAGS
+
dir_config("glade")
dir_config("xml")
dir_config("z")
@@ -15,4 +25,4 @@
end
end
-create_makefile("lglade")
+create_makefile("lglade")

View file

@ -0,0 +1 @@
A wrapper library of libglade for Ruby

View file

@ -0,0 +1,4 @@
Ruby-libglade -- A wrapper library of libglade for ruby
Author: Avi Bryant <avi@beta4.com>
WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=Ruby%2FLibGlade

View file

@ -0,0 +1,6 @@
%%RUBY_SITEARCHLIBDIR%%/lglade.so
%%RUBY_EXAMPLESDIR%%/libglade/test.glade
%%RUBY_EXAMPLESDIR%%/libglade/test.rb
@dirrm %%RUBY_EXAMPLESDIR%%/libglade
%%RUBY_DOCDIR%%/libglade/README
@dirrm %%RUBY_DOCDIR%%/libglade