mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
596ebf8a49
Overall changes: Use tabs instead of sequential spaces. Note Author as well as WWW in DESCR. Do not install examples when NOPORTDOCS. Make RUBY, RUBY_VER and RUBY_ARCH variables overridable. ruby-date2: share/doc/ruby/date2/examples/ -> share/examples/ruby/date2/cal.rb textproc/ruby-html-parser: databases/ruby-mysql: devel/ruby-optparse: devel/ruby-property: Install modules under lib/ruby/site_ruby/${RUBY_VER}/ instead of lib/ruby/site_ruby/ or lib/ruby/${RUBY_VER}/ textproc/ruby-rdtool: Install documents in .rd format too. Format optparse's rd file. (Since ruby-rdtool depends on optparse, it cannot be done during optparse's build process. So ruby-rdtool should take care of that when it is installed. :)
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# New ports collection makefile for: ruby-gtk
|
|
# Date created: 19 April 1999
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ruby-gtk
|
|
PORTVERSION= 0.23
|
|
CATEGORIES= x11-toolkits # ruby
|
|
MASTER_SITES= http://www.ruby-lang.org/gtk/download/
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= yasuf@bsdclub.org
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
|
|
|
|
USE_XLIB= yes
|
|
WRKSRC= ${WRKDIR}/gtk-${PORTVERSION}
|
|
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
RUBY?= ${LOCALBASE}/bin/ruby
|
|
RUBY_VER?= 1.4
|
|
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
|
|
|
.if defined(WITHOUT_IMLIB)
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
|
.else
|
|
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
|
|
GTK_CONFIG?= ${X11BASE}/bin/imlib-config
|
|
.endif
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${GTK_CONFIG}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.rb ${PREFIX}/lib/ruby/${RUBY_VER}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/gtk
|
|
${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${PREFIX}/share/examples/ruby/gtk
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/gtk/browser
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.rb ${PREFIX}/share/examples/ruby/gtk/browser
|
|
.if !defined(NO_IMLIB)
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/gtk/gdkimlib
|
|
${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${PREFIX}/share/examples/ruby/gtk/gdkimlib
|
|
.endif
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/gtk/ja
|
|
${INSTALL_DATA} ${WRKSRC}/doc/api/* ${PREFIX}/share/doc/ruby/gtk
|
|
${INSTALL_DATA} ${WRKSRC}/doc/api-ja/* ${PREFIX}/share/doc/ruby/gtk/ja
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|