summaryrefslogtreecommitdiff
path: root/x11/ruby-wxruby/Makefile
diff options
context:
space:
mode:
authortaca <taca>2011-08-13 02:12:35 +0000
committertaca <taca>2011-08-13 02:12:35 +0000
commit61470d1ec791e49e18213ef07e24f6a701b7ff52 (patch)
treedc7f227626dc2334dc55d9417c0222aded190171 /x11/ruby-wxruby/Makefile
parentcf814d66aaff5dc3afb86ddc7ffab9ca543d0515 (diff)
downloadpkgsrc-61470d1ec791e49e18213ef07e24f6a701b7ff52.tar.gz
Importing x11/ruby-wxruby package version 2.0.1.
wxRuby is a cross-platform GUI library for creating desktop applications. It has a comprehensive widget set, and provides native look and feel on Windows, OS X and Linux. It's based on the mature and liberally-licensed wxWidgets framework.
Diffstat (limited to 'x11/ruby-wxruby/Makefile')
-rw-r--r--x11/ruby-wxruby/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/x11/ruby-wxruby/Makefile b/x11/ruby-wxruby/Makefile
new file mode 100644
index 00000000000..d15aafda91b
--- /dev/null
+++ b/x11/ruby-wxruby/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/08/13 02:12:35 taca Exp $
+#
+
+DISTNAME= wxruby-2.0.1
+CATEGORIES= x11
+MASTER_SITES= http://rubyforge.org/frs/download.php/63379/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://wxruby.rubyforge.org/wiki/wiki.pl
+COMMENT= Cross-platform GUI library for creating desktop applications
+LICENSE= mit
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-redcloth>=4.2.0:../../textproc/ruby-redcloth
+
+BUILD_TARGET= default html_docs
+USE_RAKE= YES
+RAKE= rake -I "./lib"
+USE_LANGUAGES= c++
+USE_TOOLS= pax
+REPLACE_RUBY_DIRS= samples
+
+MAKE_ENV+= DESTDIR=${DESTDIR:Q}
+INSTALLATION_DIRS+= ${RUBY_DOC}/wxruby ${RUBY_EG}/wxruby \
+ ${RUBY_VENDORLIB}/wx ${RUBY_VENDORARCHLIB}
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= pre-configure
+SUBST_FILES.path= rake/rakenetbsd.rb
+SUBST_SED.path= -e "s|@PREFIX@|${PREFIX}|g"
+SUBST_MESSAGE.path= Fixing include path.
+
+pre-configure:
+ cd ${WRKSRC}; ${FIND} . -type f -exec ${CHMOD} -x {} \;
+
+do-build:
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} ${BUILD_TARGET}
+
+do-install:
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} ${INSTALL_TARGET}
+
+post-install:
+ cd ${WRKSRC}/doc/html; pax -rw . ${DESTDIR}${PREFIX}/${RUBY_DOC}/wxruby
+ cd ${WRKSRC}/samples; \
+ pax -rw -pm . ${DESTDIR}${PREFIX}/${RUBY_EG}/wxruby
+
+.include "../../x11/wxGTK28-contrib/buildlink3.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"