2000-08-12 22:09:41 +02:00
|
|
|
# New ports collection makefile for: ruby-gtk
|
|
|
|
# Date created: 19 April 1999
|
|
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
1999-08-26 23:22:50 +02:00
|
|
|
#
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
1999-08-26 23:22:50 +02:00
|
|
|
#
|
|
|
|
|
2000-09-07 09:29:07 +02:00
|
|
|
PORTNAME= gtk
|
2001-02-28 13:56:14 +01:00
|
|
|
PORTVERSION= ${RUBY_GNOME_PORTVERSION}
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 4
|
2000-08-16 14:21:24 +02:00
|
|
|
CATEGORIES= x11-toolkits ruby
|
2001-02-28 13:56:14 +01:00
|
|
|
MASTER_SITES= ${RUBY_GNOME_MASTER_SITES}
|
2000-09-07 09:29:07 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2001-02-28 13:56:14 +01:00
|
|
|
DISTNAME= ${RUBY_GNOME_DISTNAME}
|
2000-08-08 18:08:31 +02:00
|
|
|
DIST_SUBDIR= ruby
|
1999-08-26 23:22:50 +02:00
|
|
|
|
2009-06-16 17:53:25 +02:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2003-02-18 06:42:05 +01:00
|
|
|
COMMENT= Ruby binding for GTK+
|
1999-08-26 23:22:50 +02:00
|
|
|
|
2000-09-07 09:29:07 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2008-03-25 23:44:48 +01:00
|
|
|
USE_XORG= x11
|
2002-09-02 05:58:24 +02:00
|
|
|
USE_GNOME= gtk12
|
1999-08-26 23:22:50 +02:00
|
|
|
|
2005-11-05 12:07:59 +01:00
|
|
|
RUBY_GNOME_VERSION= 0.34
|
|
|
|
#RUBY_GNOME_SNAPSHOTDATE= 20010224
|
|
|
|
.if defined(RUBY_GNOME_SNAPSHOTDATE)
|
|
|
|
RUBY_GNOME_PORTVERSION= ${RUBY_GNOME_VERSION}.${RUBY_GNOME_SNAPSHOTDATE}
|
|
|
|
.else
|
|
|
|
RUBY_GNOME_PORTVERSION= ${RUBY_GNOME_VERSION}
|
|
|
|
.endif
|
2009-08-22 02:39:37 +02:00
|
|
|
RUBY_GNOME_MASTER_SITES= SF/ruby-gnome/ruby-gnome/${PORTVERSION}
|
2005-11-05 12:07:59 +01:00
|
|
|
RUBY_GNOME_DISTNAME= ruby-gnome-all-${RUBY_GNOME_VERSION}
|
|
|
|
|
|
|
|
.if defined(RUBY_GNOME_SNAPSHOTDATE)
|
|
|
|
RUBY_GNOME_WRKSRC= ${WRKDIR}/ruby-gnome-snapshot-${RUBY_GNOME_SNAPSHOTDATE}
|
|
|
|
.else
|
|
|
|
RUBY_GNOME_WRKSRC= ${WRKDIR}/${RUBY_GNOME_DISTNAME}
|
|
|
|
.endif
|
2001-02-28 13:56:14 +01:00
|
|
|
|
|
|
|
WRKSRC= ${RUBY_GNOME_WRKSRC}/${PORTNAME}
|
2002-03-20 14:24:30 +01:00
|
|
|
CONFIGURE_ARGS= --with-gtk-config=${GTK_CONFIG}
|
2000-09-07 09:29:07 +02:00
|
|
|
INSTALL_TARGET= site-install
|
1999-08-26 23:22:50 +02:00
|
|
|
|
2001-02-28 13:56:14 +01:00
|
|
|
DOCS_EN= BUGS \
|
|
|
|
ChangeLog \
|
2001-11-20 17:35:43 +01:00
|
|
|
NEWS \
|
2001-02-28 13:56:14 +01:00
|
|
|
README \
|
|
|
|
README.EXT \
|
|
|
|
ToDo
|
2001-11-20 17:35:43 +01:00
|
|
|
DOCS_JA= README.EXT.ja
|
2000-10-05 08:57:56 +02:00
|
|
|
|
2001-02-28 13:56:14 +01:00
|
|
|
post-extract:
|
2005-11-05 12:07:59 +01:00
|
|
|
${FIND} ${WRKSRC} -name CVS -type d -print0 | ${XARGS} -0 ${RM} -rf
|
2001-02-28 13:56:14 +01:00
|
|
|
${MKDIR} ${WRKSRC}/sample/browser
|
2001-11-20 17:35:43 +01:00
|
|
|
${MV} ${WRKSRC}/doc/*.rb ${WRKSRC}/sample/browser/
|
1999-08-26 23:22:50 +02:00
|
|
|
|
|
|
|
post-install:
|
2001-11-20 17:35:43 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/gtkcompat.rb ${RUBY_SITELIBDIR}/
|
2000-08-12 22:09:41 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:38:34 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2001-02-28 13:56:14 +01:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-02-28 13:56:14 +01:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2001-02-28 13:56:14 +01:00
|
|
|
.endfor
|
2000-02-23 01:27:25 +01:00
|
|
|
.endif
|
1999-08-26 23:22:50 +02:00
|
|
|
|
2001-02-28 13:56:14 +01:00
|
|
|
.include <bsd.port.mk>
|