summaryrefslogtreecommitdiff
path: root/devel/ruby-libglade2
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-06-25 22:56:26 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-06-25 22:56:26 +0000
commitcd8af45713b1c61d5d28bc997c933612e3947d5d (patch)
treecc39b9a2e8f9aea6f30bd90578140a0b5ddd3d6d /devel/ruby-libglade2
parentUpdate to 1.0.2. (diff)
Update to 1.2.
Diffstat (limited to 'devel/ruby-libglade2')
-rw-r--r--devel/ruby-libglade2/Makefile13
-rw-r--r--devel/ruby-libglade2/distinfo2
-rw-r--r--devel/ruby-libglade2/files/patch-extconf.rb23
3 files changed, 17 insertions, 21 deletions
diff --git a/devel/ruby-libglade2/Makefile b/devel/ruby-libglade2/Makefile
index f14693afafde..a9e17effd706 100644
--- a/devel/ruby-libglade2/Makefile
+++ b/devel/ruby-libglade2/Makefile
@@ -6,12 +6,11 @@
#
PORTNAME= libglade
-PORTVERSION= 1.1
-PORTREVISION= 1
+PORTVERSION= 1.2
CATEGORIES= devel ruby gnome
MASTER_SITES= http://beta4.com/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
-DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION:S/./-/g}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
@@ -30,10 +29,10 @@ 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/
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/
.endif
.include <bsd.port.mk>
diff --git a/devel/ruby-libglade2/distinfo b/devel/ruby-libglade2/distinfo
index 47a41b8f773b..7587325328ed 100644
--- a/devel/ruby-libglade2/distinfo
+++ b/devel/ruby-libglade2/distinfo
@@ -1 +1 @@
-MD5 (ruby/ruby-libglade-1.1.tar.gz) = 216279927ce94e10ba4c5abcaa83e88a
+MD5 (ruby/ruby-libglade-1-2.tar.gz) = a0d3f1d42c163f8c407a946115eaca98
diff --git a/devel/ruby-libglade2/files/patch-extconf.rb b/devel/ruby-libglade2/files/patch-extconf.rb
index de691728f32d..834c84d47b5c 100644
--- a/devel/ruby-libglade2/files/patch-extconf.rb
+++ b/devel/ruby-libglade2/files/patch-extconf.rb
@@ -1,8 +1,7 @@
---- 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"]
+--- extconf.rb.orig Mon Jun 25 07:08:39 2001
++++ extconf.rb Tue Jun 26 06:06:49 2001
+@@ -1,5 +1,13 @@
+ require 'mkmf'
+glib_config = with_config("glib-config", "glib-config")
+$CFLAGS += " " + %x(#{glib_config} --cflags).chomp
@@ -12,14 +11,12 @@
+$CFLAGS += " " + %x(#{gtk_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{gtk_config} --libs).chomp
+
-+puts $CFLAGS
-+
+ $objs = ["rbglade.o"]
+
dir_config("glade")
- dir_config("xml")
- dir_config("z")
-@@ -15,4 +25,4 @@
- end
+@@ -16,5 +24,3 @@
end
--create_makefile("lglade")
-+create_makefile("lglade")
+ create_makefile("lglade")
+-system('echo LDFLAGS+=`gtk-config --libs` >> Makefile')
+-system('echo CFLAGS+=`gtk-config --cflags` >> Makefile')