aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ruby-gio2/Makefile45
-rw-r--r--devel/ruby-gio2/pkg-descr3
-rw-r--r--devel/ruby-gio2/pkg-plist3
4 files changed, 52 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 9e9f54640422..60edd995c5ab 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3390,6 +3390,7 @@
SUBDIR += ruby-gemfinder
SUBDIR += ruby-gems
SUBDIR += ruby-gettext
+ SUBDIR += ruby-gio2
SUBDIR += ruby-glib2
SUBDIR += ruby-gnomevfs
SUBDIR += ruby-gnustep
diff --git a/devel/ruby-gio2/Makefile b/devel/ruby-gio2/Makefile
new file mode 100644
index 000000000000..d348ee9a423b
--- /dev/null
+++ b/devel/ruby-gio2/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: ruby-gio2
+# Date created: 2011-08-17
+# Whom: TAKATSU Tomonari <tota@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gio2
+PORTVERSION= ${RUBY_GNOME_PORTVERSION}
+CATEGORIES= devel gnome ruby
+MASTER_SITES= ${RUBY_GNOME_MASTER_SITES}
+MASTER_SITE_SUBDIR= ${RUBY_GNOME_MASTER_SITE_SUBDIR}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ${RUBY_GNOME_DISTNAME}
+DIST_SUBDIR= ${RUBY_GNOME_DIST_SUBDIR}
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= Ruby binding of GIO
+
+BUILD_DEPENDS+= ${RUBY_SITEARCHLIBDIR:S/${PREFIX}/${LOCALBASE}/}/glib2.so:${PORTSDIR}/devel/ruby-glib2
+RUN_DEPENDS+= ${BUILD_DEPENDS}
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+USE_GNOME= glib20
+
+CONFIGURE_ARGS= --with-pkg-config-dir=${LOCALBASE}/libdata/pkgconfig
+
+.include "${.CURDIR}/../../x11/ruby-gnome2/Makefile.common"
+
+WRKSRC= ${RUBY_GNOME_WRKSRC}/${PORTNAME}
+INSTALL_TARGET= site-install install
+
+PORTDOCS= ChangeLog README
+DOCSDIR= ${RUBY_MODDOCDIR}
+
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${RUBY_MODDOCDIR}
+.for f in ${PORTDOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/ruby-gio2/pkg-descr b/devel/ruby-gio2/pkg-descr
new file mode 100644
index 000000000000..095b03d33e6f
--- /dev/null
+++ b/devel/ruby-gio2/pkg-descr
@@ -0,0 +1,3 @@
+Ruby/GIO2 is a Ruby binding of gio-2.0.x.
+
+WWW: http://ruby-gnome2.sourceforge.jp/
diff --git a/devel/ruby-gio2/pkg-plist b/devel/ruby-gio2/pkg-plist
new file mode 100644
index 000000000000..28ddc7ef6d24
--- /dev/null
+++ b/devel/ruby-gio2/pkg-plist
@@ -0,0 +1,3 @@
+libdata/pkgconfig/ruby-gio2.pc
+%%RUBY_SITELIBDIR%%/gio2.rb
+%%RUBY_SITEARCHLIBDIR%%/gio2.so