diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-01 12:53:58 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-01 12:53:58 +0800 |
commit | 683c0a832b1494a4c6e73812b9679c33b3c7fa36 (patch) | |
tree | 2f7a68e7ea7f4b0615b3d879163a6857b1ad54a8 /www/ruby-gtkmozembed | |
parent | 0367c672a644132415becc3c32a1d7daff5a48f4 (diff) | |
download | marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.tar marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.tar.gz marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.tar.bz2 marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.tar.lz marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.tar.xz marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.tar.zst marcuscom-ports-683c0a832b1494a4c6e73812b9679c33b3c7fa36.zip |
X11BASE -> LOCALBASE, gecko ports live in LOCALBASE. Bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6916 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/ruby-gtkmozembed')
-rw-r--r-- | www/ruby-gtkmozembed/Makefile | 53 | ||||
-rw-r--r-- | www/ruby-gtkmozembed/files/patch-extconf.rb | 12 | ||||
-rw-r--r-- | www/ruby-gtkmozembed/pkg-descr | 4 | ||||
-rw-r--r-- | www/ruby-gtkmozembed/pkg-plist | 10 |
4 files changed, 79 insertions, 0 deletions
diff --git a/www/ruby-gtkmozembed/Makefile b/www/ruby-gtkmozembed/Makefile new file mode 100644 index 000000000..6e2e251ad --- /dev/null +++ b/www/ruby-gtkmozembed/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: Ruby/GtkMozEmbed +# Date created: 16 October 2005 +# Whom: Mezz <mezz@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gtkmozembed +PORTVERSION= ${RUBY_GNOME_PORTVERSION} +PORTREVISION= 1 +CATEGORIES= www 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 + +MAINTAINER= mezz@FreeBSD.org +COMMENT= Ruby binding for GtkMozEmbed a widget embedding a Gecko renderer + +RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2 + +USE_RUBY= yes +USE_GECKO= firefox mozilla xulrunner +USE_RUBY_EXTCONF= yes + +.include "${.CURDIR}/../../x11/ruby-gnome2/Makefile.common" + +WRKSRC= ${RUBY_GNOME_WRKSRC}/gtkmozembed +INSTALL_TARGET= site-install + +DOCS= COPYING.LIB ChangeLog README + +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" + +post-patch: + @${REINPLACE_CMD} -e 's|xulrunner-|${GECKO}-|g ; \ + s|%%GECKO_PATH%%|${LOCALBASE}/lib/${GECKO}|g' \ + ${WRKSRC}/extconf.rb + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${RUBY_MODEXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/ + @${MKDIR} ${RUBY_MODDOCDIR} +.for f in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ +.endfor +.endif + +.include <bsd.port.post.mk> diff --git a/www/ruby-gtkmozembed/files/patch-extconf.rb b/www/ruby-gtkmozembed/files/patch-extconf.rb new file mode 100644 index 000000000..c08018c84 --- /dev/null +++ b/www/ruby-gtkmozembed/files/patch-extconf.rb @@ -0,0 +1,12 @@ +--- extconf.rb.orig Sun Jul 2 19:15:05 2006 ++++ extconf.rb Sun Jul 2 19:19:25 2006 +@@ -23,8 +23,7 @@ + PKGConfig.have_package(PACKAGE_ID) + setup_win32(PACKAGE_NAME) + +-mozpath = PKGConfig.libs_only_L(PACKAGE_ID) +-mozpath.strip!.sub!(/^-L/, "") ++mozpath = "%%GECKO_PATH%%" + + if mozpath + # please comment the CFLAGS line if you don't want a default comp_path diff --git a/www/ruby-gtkmozembed/pkg-descr b/www/ruby-gtkmozembed/pkg-descr new file mode 100644 index 000000000..f13bc8f3d --- /dev/null +++ b/www/ruby-gtkmozembed/pkg-descr @@ -0,0 +1,4 @@ +Ruby/GtkMozEmbed is a Ruby binding of GtkMozEmbed a widget embedding a +Mozilla Gecko renderer. + +WWW: http://ruby-gnome2.sourceforge.jp/ diff --git a/www/ruby-gtkmozembed/pkg-plist b/www/ruby-gtkmozembed/pkg-plist new file mode 100644 index 000000000..b7c06062b --- /dev/null +++ b/www/ruby-gtkmozembed/pkg-plist @@ -0,0 +1,10 @@ +%%RUBY_SITEARCHLIBDIR%%/gtkmozembed.so +%%RUBY_SITELIBDIR%%/gtkmozembed.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/COPYING +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/README +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/ruby-gecko.rb +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/COPYING.LIB +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |