From 596ebf8a494ccec324a561d381d1c60d5f35cf02 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sat, 12 Aug 2000 20:09:41 +0000 Subject: Do The Right Thing. (R) 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. :) --- x11-toolkits/ruby14-tk/Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'x11-toolkits/ruby14-tk') diff --git a/x11-toolkits/ruby14-tk/Makefile b/x11-toolkits/ruby14-tk/Makefile index f446dcb28322..f54523d19575 100644 --- a/x11-toolkits/ruby14-tk/Makefile +++ b/x11-toolkits/ruby14-tk/Makefile @@ -1,6 +1,6 @@ -# New ports collection makefile for: rubytk -# Date created: 15 March 1999 -# Whom: Yasuhiro Fukuma +# New ports collection makefile for: rubytk +# Date created: 15 March 1999 +# Whom: Yasuhiro Fukuma # # $FreeBSD$ # @@ -36,8 +36,8 @@ PLIST_SUB+= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" BRANCH_NAME= 1.4 -RUBY_VER= 1.4 -RUBY_ARCH= ${ARCH}-freebsd${OSREL} +RUBY_VER?= 1.4 +RUBY_ARCH?= ${ARCH}-freebsd${OSREL} DOCDIR= ${PREFIX}/share/doc/ruby EXAMPLESDIR= ${PREFIX}/share/examples/ruby @@ -62,7 +62,7 @@ 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 +RUBY?= ${LOCALBASE}/bin/ruby EXTS= tcltklib tk do-configure: @@ -81,14 +81,14 @@ 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} +.endif .endfor - -post-install: +.if !defined(NOPORTDOCS) ${MKDIR} ${EXAMPLESDIR}/tcltklib/demo ${INSTALL_DATA} ${WRKSRC}/tcltklib/demo/* ${EXAMPLESDIR}/tcltklib/demo -.if !defined(NOPORTDOCS) ${MKDIR} ${DOCDIR}/tcltklib ${INSTALL_DATA} ${WRKSRC}/tcltklib/*.euc ${DOCDIR}/tcltklib .endif -- cgit v1.2.3