diff options
Diffstat (limited to 'lang/ruby-tcltklib')
-rw-r--r-- | lang/ruby-tcltklib/Makefile | 69 | ||||
-rw-r--r-- | lang/ruby-tcltklib/pkg-descr | 2 | ||||
-rw-r--r-- | lang/ruby-tcltklib/pkg-plist | 54 |
3 files changed, 42 insertions, 83 deletions
diff --git a/lang/ruby-tcltklib/Makefile b/lang/ruby-tcltklib/Makefile index 69aaf6ed7a94..d6384fdbf988 100644 --- a/lang/ruby-tcltklib/Makefile +++ b/lang/ruby-tcltklib/Makefile @@ -1,47 +1,40 @@ -# New ports collection makefile for: rubytk +# New ports collection makefile for: ruby-tcltklib # Date created: 15 March 1999 # Whom: Yasuhiro Fukuma <yasuf@big.or.jp> # # $FreeBSD$ # -PORTNAME= rubytk -PORTVERSION= 1.4.6 -CATEGORIES+= x11-toolkits ruby +PORTNAME= tcltklib +PORTVERSION= ${RUBY_VERSION}.p3 +CATEGORIES+= lang x11-toolkits ruby tcl${TCL_VERSION} tk${TK_VERSION} MASTER_SITES= ${MASTER_SITE_RUBY} -MASTER_SITE_SUBDIR= 1.4 -DISTNAME= ruby-${PORTVERSION} +#MASTER_SITE_SUBDIR= ${RUBY_VER} +DISTNAME= ruby-${PORTVERSION:S/.p/-preview/} DIST_SUBDIR= ruby MAINTAINER?= yasuf@bsdclub.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby LIB_DEPENDS= ${TCL_LIB}.1:${PORTSDIR}/${TCL_CATEGORY}/tcl${TCL_VERSION} \ ${TK_LIB}.1:${PORTSDIR}/${TK_CATEGORY}/tk${TK_VERSION} +USE_RUBY= yes +USE_RUBY_EXTCONF= yes USE_XLIB= yes -WRKSRC= ${WRKDIR}/${DISTNAME}/ext +WRKSRC= ${WRKDIR}/ruby-${PORTVERSION:R}/ext/tcltklib 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}" -PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - -DOCDIR= ${PREFIX}/share/doc/ruby -EXAMPLESDIR= ${PREFIX}/share/examples/ruby # 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?= 82 TK_VERSION?= 82 -.if defined(WITH_TCL_JP) +.if defined(WITH_TCLTK_JP) TCL_CATEGORY= japanese TK_CATEGORY= japanese TCL_JP= jp @@ -56,35 +49,23 @@ 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/'` -RUBY?= ${LOCALBASE}/bin/ruby -EXTS= tcltklib tk - -do-configure: -.for dir in ${EXTS} - @${ECHO_MSG} "Configuring in ${dir}..." - @cd ${WRKSRC}/${dir}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS} -.endfor - -do-build: -.for dir in ${EXTS} - @${ECHO_MSG} "Building in ${dir}..." - @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE} ${ALL_TARGET} -.endfor +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" -do-install: -.for dir in ${EXTS} - @${ECHO_MSG} "Installing in ${dir}..." - @cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET} -.if !defined(NOPORTDOCS) - ${MKDIR} ${EXAMPLESDIR}/${dir} - ${INSTALL_DATA} ${WRKSRC}/${dir}/sample/* ${EXAMPLESDIR}/${dir} +.if defined(PKGNAMEPREFIX) +PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX} +.else +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} .endif -.endfor + +post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${EXAMPLESDIR}/tcltklib/demo - ${INSTALL_DATA} ${WRKSRC}/tcltklib/demo/* ${EXAMPLESDIR}/tcltklib/demo - ${MKDIR} ${DOCDIR}/tcltklib - ${INSTALL_DATA} ${WRKSRC}/tcltklib/*.euc ${DOCDIR}/tcltklib + ${MKDIR} ${RUBY_EXAMPLESDIR}/tcltklib + ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tcltklib/ + ${MKDIR} ${RUBY_EXAMPLESDIR}/tcltklib/demo + ${INSTALL_DATA} ${WRKSRC}/demo/* ${RUBY_EXAMPLESDIR}/tcltklib/demo/ + ${MKDIR} ${RUBY_DOCDIR}/tcltklib/ja + ${INSTALL_DATA} ${WRKSRC}/*.euc ${RUBY_DOCDIR}/tcltklib/ja/ .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/lang/ruby-tcltklib/pkg-descr b/lang/ruby-tcltklib/pkg-descr index 5338175ce86d..6929ce977cd7 100644 --- a/lang/ruby-tcltklib/pkg-descr +++ b/lang/ruby-tcltklib/pkg-descr @@ -1,4 +1,4 @@ -This is Ruby/Tk, a Ruby interface to Tcl/Tk libraries. +This is Ruby/TclTkLib, a Ruby interface to Tcl/Tk libraries. It's a part of the official Ruby distribution. - Yasuhiro Fukuma diff --git a/lang/ruby-tcltklib/pkg-plist b/lang/ruby-tcltklib/pkg-plist index 8f13229dd143..ef274c185f5f 100644 --- a/lang/ruby-tcltklib/pkg-plist +++ b/lang/ruby-tcltklib/pkg-plist @@ -1,38 +1,16 @@ -lib/ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/tcltklib.so -lib/ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/tkutil.so -lib/ruby/%%RUBY_VER%%/tcltk.rb -lib/ruby/%%RUBY_VER%%/tk.rb -lib/ruby/%%RUBY_VER%%/tkafter.rb -lib/ruby/%%RUBY_VER%%/tkbgerror.rb -lib/ruby/%%RUBY_VER%%/tkcanvas.rb -lib/ruby/%%RUBY_VER%%/tkclass.rb -lib/ruby/%%RUBY_VER%%/tkdialog.rb -lib/ruby/%%RUBY_VER%%/tkentry.rb -lib/ruby/%%RUBY_VER%%/tkfont.rb -lib/ruby/%%RUBY_VER%%/tkmenubar.rb -lib/ruby/%%RUBY_VER%%/tkmngfocus.rb -lib/ruby/%%RUBY_VER%%/tkpalette.rb -lib/ruby/%%RUBY_VER%%/tkscrollbox.rb -lib/ruby/%%RUBY_VER%%/tktext.rb -lib/ruby/%%RUBY_VER%%/tkvirtevent.rb -share/doc/ruby/tcltklib/MANUAL.euc -share/doc/ruby/tcltklib/README.euc -@dirrm share/doc/ruby/tcltklib -share/examples/ruby/tcltklib/batsu.gif -share/examples/ruby/tcltklib/maru.gif -share/examples/ruby/tcltklib/sample0.rb -share/examples/ruby/tcltklib/sample1.rb -share/examples/ruby/tcltklib/sample2.rb -share/examples/ruby/tcltklib/demo/lines0.tcl -share/examples/ruby/tcltklib/demo/lines1.rb -share/examples/ruby/tcltklib/demo/lines2.rb -@dirrm share/examples/ruby/tcltklib/demo -@dirrm share/examples/ruby/tcltklib -share/examples/ruby/tk/tkbiff.rb -share/examples/ruby/tk/tkbrowse.rb -share/examples/ruby/tk/tkdialog.rb -share/examples/ruby/tk/tkfrom.rb -share/examples/ruby/tk/tkhello.rb -share/examples/ruby/tk/tkline.rb -share/examples/ruby/tk/tktimer.rb -@dirrm share/examples/ruby/tk +%%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 |