diff options
author | taca <taca> | 2001-06-30 08:19:52 +0000 |
---|---|---|
committer | taca <taca> | 2001-06-30 08:19:52 +0000 |
commit | cf198a016a9a894cace68c98eab9f20cf3814eb4 (patch) | |
tree | dd0952a4df23b5bbd3d13f67721fc38521fe8401 /x11/ruby-tcltklib | |
parent | ae4dc87de3bf62d6151064af469e22e63f8fab79 (diff) | |
download | pkgsrc-cf198a016a9a894cace68c98eab9f20cf3814eb4.tar.gz |
Importing Ruby interface to Tcl/Tk libraries.
This will be part of ruby meta-package.
Diffstat (limited to 'x11/ruby-tcltklib')
-rw-r--r-- | x11/ruby-tcltklib/Makefile | 59 | ||||
-rw-r--r-- | x11/ruby-tcltklib/pkg/DESCR | 2 | ||||
-rw-r--r-- | x11/ruby-tcltklib/pkg/PLIST | 17 |
3 files changed, 78 insertions, 0 deletions
diff --git a/x11/ruby-tcltklib/Makefile b/x11/ruby-tcltklib/Makefile new file mode 100644 index 00000000000..3c8b667b182 --- /dev/null +++ b/x11/ruby-tcltklib/Makefile @@ -0,0 +1,59 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/30 08:19:52 taca Exp $ +# FreeBSD: ports/lang/ruby-tcltklib/Makefile,v 1.21 2000/10/20 19:56:04 knu Exp + +DISTNAME= ${RUBY_DISTNAME} +PKGNAME= ${RUBY_PKGNAMEPREFIX}tcltklib-${RUBY_VERSION} +CATEGORIES= x11 +MASTER_SITES= ${MASTER_SITE_RUBY} + +MAINTAINER= taca@netbsd.org +HOMEPAGE= http://www.ruby-lang.org/en/ +COMMENT= Ruby interface to Tcl/Tk libraries + +DEPENDS+= tcl>=8.3:../../lang/tcl +DEPENDS+= tk>=8.3:../../x11/tk + +DIST_SUBDIR= ruby +DISTINFO_FILE= ${RUBY_DISTINFO} +WRKSRC= ${RUBY_WRKSRC}/ext/tcltklib + +EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/tcltklib +USE_RUBY_EXTCONF= yes + +CONFIGURE_ARGS= --with-tcllib="${TCL_LIB}" --with-tklib="${TK_LIB}" \ + --with-tcl-lib="${LOCALBASE}/lib/${TCL_DIR}" \ + --with-tk-lib="${LOCALBASE}/lib/${TK_DIR}" \ + --with-tcl-include="${LOCALBASE}/include/${TCL_DIR}" \ + --with-tk-include="${LOCALBASE}/include/${TK_DIR}" \ + --with-X11-dir="${X11BASE}" + +# Set these vars as the version numbers (without decimal points) of Tcl/Tk +# you want to use with Ruby/Tk. +# e.g.: make TCL_VERSION=42 TK_VERSION=76 WITH_TCL_JP=yes build +TCL_VERSION?= 83 +TK_VERSION?= 83 +#.if defined(WITH_TCLTK_JP) +#TCL_CATEGORY= japanese +#TK_CATEGORY= japanese +#TCL_JP= jp +#.else +#TCL_CATEGORY= lang +#TK_CATEGORY= x11 +TCL_JP= # empty +#.endif + +TCL_LIB= tcl${TCL_VERSION}${TCL_JP} +TK_LIB= tk${TK_VERSION}${TCL_JP} +TCL_DIR= `echo "${TCL_LIB}" | ${SED} 's/\([0-9]\)\([0-9]\)/\1.\2/'` +TK_DIR= `echo "${TK_LIB}" | ${SED} 's/\([0-9]\)\([0-9]\)/\1.\2/'` + +post-install: + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/tcltklib + ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tcltklib + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/tcltklib/demo + ${INSTALL_DATA} ${WRKSRC}/demo/* ${RUBY_EXAMPLESDIR}/tcltklib/demo + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/tcltklib/ja + ${INSTALL_DATA} ${WRKSRC}/*.euc ${RUBY_DOCDIR}/tcltklib/ja + +.include "../../lang/ruby-base/Makefile.common" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/ruby-tcltklib/pkg/DESCR b/x11/ruby-tcltklib/pkg/DESCR new file mode 100644 index 00000000000..d678df691d5 --- /dev/null +++ b/x11/ruby-tcltklib/pkg/DESCR @@ -0,0 +1,2 @@ +This is Ruby/TclTkLib, a Ruby interface to Tcl/Tk libraries. +It's a part of the official Ruby distribution. diff --git a/x11/ruby-tcltklib/pkg/PLIST b/x11/ruby-tcltklib/pkg/PLIST new file mode 100644 index 00000000000..6ad2f5a2f65 --- /dev/null +++ b/x11/ruby-tcltklib/pkg/PLIST @@ -0,0 +1,17 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/30 08:19:52 taca Exp $ +${RUBY_ARCHLIBDIR}/tcltklib.so +${RUBY_LIBDIR}/tcltk.rb +${RUBY_DOCDIR}/tcltklib/ja/MANUAL.euc +${RUBY_DOCDIR}/tcltklib/ja/README.euc +@dirrm ${RUBY_DOCDIR}/tcltklib/ja +@dirrm ${RUBY_DOCDIR}/tcltklib +${RUBY_EXAMPLESDIR}/tcltklib/batsu.gif +${RUBY_EXAMPLESDIR}/tcltklib/maru.gif +${RUBY_EXAMPLESDIR}/tcltklib/sample0.rb +${RUBY_EXAMPLESDIR}/tcltklib/sample1.rb +${RUBY_EXAMPLESDIR}/tcltklib/sample2.rb +${RUBY_EXAMPLESDIR}/tcltklib/demo/lines0.tcl +${RUBY_EXAMPLESDIR}/tcltklib/demo/lines1.rb +${RUBY_EXAMPLESDIR}/tcltklib/demo/lines2.rb +@dirrm ${RUBY_EXAMPLESDIR}/tcltklib/demo +@dirrm ${RUBY_EXAMPLESDIR}/tcltklib |