Add ruby-libglade, a wrapper library of libglade for Ruby.
This commit is contained in:
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
|
@ -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
|
||||
|
|
40
devel/ruby-libglade/Makefile
Normal file
40
devel/ruby-libglade/Makefile
Normal 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>
|
1
devel/ruby-libglade/distinfo
Normal file
1
devel/ruby-libglade/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (ruby/ruby-libglade-1.1.tar.gz) = 216279927ce94e10ba4c5abcaa83e88a
|
25
devel/ruby-libglade/files/patch-extconf.rb
Normal file
25
devel/ruby-libglade/files/patch-extconf.rb
Normal 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")
|
1
devel/ruby-libglade/pkg-comment
Normal file
1
devel/ruby-libglade/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
A wrapper library of libglade for Ruby
|
4
devel/ruby-libglade/pkg-descr
Normal file
4
devel/ruby-libglade/pkg-descr
Normal 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
|
6
devel/ruby-libglade/pkg-plist
Normal file
6
devel/ruby-libglade/pkg-plist
Normal 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
|
40
devel/ruby-libglade2/Makefile
Normal file
40
devel/ruby-libglade2/Makefile
Normal 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>
|
1
devel/ruby-libglade2/distinfo
Normal file
1
devel/ruby-libglade2/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (ruby/ruby-libglade-1.1.tar.gz) = 216279927ce94e10ba4c5abcaa83e88a
|
25
devel/ruby-libglade2/files/patch-extconf.rb
Normal file
25
devel/ruby-libglade2/files/patch-extconf.rb
Normal 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")
|
1
devel/ruby-libglade2/pkg-comment
Normal file
1
devel/ruby-libglade2/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
A wrapper library of libglade for Ruby
|
4
devel/ruby-libglade2/pkg-descr
Normal file
4
devel/ruby-libglade2/pkg-descr
Normal 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
|
6
devel/ruby-libglade2/pkg-plist
Normal file
6
devel/ruby-libglade2/pkg-plist
Normal 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
|
Loading…
Reference in a new issue