diff options
Diffstat (limited to 'lang/ruby16/Makefile')
-rw-r--r-- | lang/ruby16/Makefile | 50 |
1 files changed, 16 insertions, 34 deletions
diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile index bd6dbf2a33f..a9251f3129f 100644 --- a/lang/ruby16/Makefile +++ b/lang/ruby16/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2005/01/21 16:36:41 tv Exp $ +# $NetBSD: Makefile,v 1.3 2005/02/21 15:27:35 taca Exp $ # DISTNAME= ${RUBY_DISTNAME} PKGNAME= ${RUBY_PKGPREFIX}-${RUBY_VERSION} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= lang ruby MASTER_SITES= ${MASTER_SITE_RUBY} @@ -12,6 +12,7 @@ HOMEPAGE= http://www.ruby-lang.org/en/ COMMENT= Ruby programming language 1.6 based release CONFLICTS+= ruby-base-[1-9]* +CONFLICTS+= ruby${RUBY_VER}-dbm-* ruby${RUBY_VER}-digest-* RUBY_VERSION= ${RUBY16_VERSION} USE_BUILDLINK3= yes @@ -33,33 +34,15 @@ CONFIGURE_ARGS+= --program-suffix="${RUBY_SUFFIX}" CONFIGURE_ARGS+= --enable-ipv6 .endif -.if ${OPSYS} == "NetBSD" -.if empty(OS_VERSION:M1.[0-9].*) -PTHREAD_OPTS+= native -.include "../../mk/pthread.buildlink3.mk" -.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none" -CONFIGURE_ARGS+= --disable-pthread -.else -CONFIGURE_ARGS+= --enable-pthread -.endif -.endif -.endif - -.if ${OPSYS} == "IRIX" -# X11BASE, *not* X11PREFIX: X11PREFIX == PREFIX, but we need to point -# to the ABI-specific libraries -CONFIGURE_ENV+= X11BASE="${X11BASE}" -.endif - DOCS= ChangeLog README README.EXT README.EXT.ja README.ja ToDo \ doc/NEWS doc/forwardable.rd doc/forwardable.rd.ja \ doc/shell.rd doc/shell.rd.ja doc/irb/irb-tools.rd.ja \ doc/irb/irb.rd doc/irb/irb.rd.ja doc/net/http.rd.ja \ doc/net/pop.rd.ja doc/net/smtp.rd.ja doc/shell.rd \ doc/shell.rd.ja -EXT_DOCS= ext/etc/etc.txt ext/etc/etc.txt.ja ext/pty/README \ - ext/pty/README.expect ext/pty/README.expect.ja \ - ext/pty/README.ja ext/syslog/syslog.txt +EXT_DOCS= digest/digest.txt digest/digest.txt.ja \ + etc/etc.txt etc/etc.txt.ja syslog/syslog.txt +PTY_ROCS= README README.expect README.expect.ja README.ja REPLACE_RUBY= bin/irb \ lib/matrix.rb sample/biorhythm.rb sample/cal.rb \ @@ -71,30 +54,27 @@ REPLACE_RUBY= bin/irb \ pre-configure: ${RM} -f ${WRKSRC}/ext/curses/MANIFEST - ${RM} -f ${WRKSRC}/ext/dbm/MANIFEST ${RM} -f ${WRKSRC}/ext/gdbm/MANIFEST - ${RM} -f ${WRKSRC}/ext/digest/MANIFEST - ${RM} -f ${WRKSRC}/ext/digest/md5/MANIFEST - ${RM} -f ${WRKSRC}/ext/digest/rmd160/MANIFEST - ${RM} -f ${WRKSRC}/ext/digest/sha1/MANIFEST - ${RM} -f ${WRKSRC}/ext/digest/sha2/MANIFEST ${RM} -f ${WRKSRC}/ext/readline/MANIFEST ${RM} -f ${WRKSRC}/ext/tcltklib/MANIFEST ${RM} -f ${WRKSRC}/ext/tk/MANIFEST - ${RM} -f ${WRKSRC}/sample/dbmtest.rb pre-build: @${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} -f {} \; post-install: ${STRIP} ${RUBY} - ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/etc ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/irb ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/net ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/pty - ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/syslog -.for f in ${DOCS} ${EXT_DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${f:C/^(doc|ext)\///} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${f:C/^doc\///} +.endfor +.for f in ${EXT_DOCS} + ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${RUBY_DOCDIR} +.endfor +.for f in ${PTY_ROCS} + ${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${RUBY_DOCDIR}/pty/${f} .endfor ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/bin/irb ${PREFIX}/bin/irb16 @@ -104,5 +84,7 @@ post-install: ${WRKSRC}/ext/pty/script.rb ${WRKSRC}/ext/pty/shl.rb \ ${RUBY_EXAMPLESDIR}/pty +.include "../../mk/bdb.buildlink3.mk" .include "../../lang/ruby/Makefile.common" +.include "../../security/openssl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |