diff options
author | taca <taca@pkgsrc.org> | 2004-11-27 14:14:05 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-11-27 14:14:05 +0000 |
commit | 5e6f3833ce8668891e4683fc10fb8c7e711bf833 (patch) | |
tree | 2da64e428b9df23cef2d1263531b2bee217dc9bc /lang/ruby16/Makefile | |
parent | 191686122d084a51b5404084982d3b9f9b712ce7 (diff) | |
download | pkgsrc-5e6f3833ce8668891e4683fc10fb8c7e711bf833.tar.gz |
Importing ruby16 package; Ruby 1.6.8 based release.
(This is basically re-import of old ruby-base package.)
These extention libraries are provided as separated packages.
databases/ruby-dbm: DBM module
databases/ruby-gdbm: GDBM module
devel/ruby16-curses: Curses module
security/ruby-digest: message digest module
devel/ruby-readline: readline module
x11/ruby16-tcltklib: Tcl/Tk libraries
x11/ruby16-tk: Tk modules
Diffstat (limited to 'lang/ruby16/Makefile')
-rw-r--r-- | lang/ruby16/Makefile | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile new file mode 100644 index 00000000000..1306e952cf7 --- /dev/null +++ b/lang/ruby16/Makefile @@ -0,0 +1,107 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/11/27 14:14:05 taca Exp $ +# + +DISTNAME= ${RUBY_DISTNAME} +PKGNAME= ${RUBY_PKGPREFIX}-${RUBY_VERSION} +CATEGORIES= lang ruby +MASTER_SITES= ${MASTER_SITE_RUBY} + +MAINTAINER= taca@NetBSD.org +HOMEPAGE= http://www.ruby-lang.org/en/ +COMMENT= Ruby programming language 1.6 based release + +CONFLICTS+= ruby-base-[1-9]* + +RUBY_VERSION= ${RUBY16_VERSION} +USE_BUILDLINK3= yes +GNU_CONFIGURE= yes +TEST_TARGET= test +CONFIGURE_ARGS+= --enable-shared +CONFIGURE_ENV+= PREFIX="${PREFIX}" +BUILD_DEFS+= USE_INET6 + +# Ruby build process depends on config.status's content +CONFIG_STATUS_OVERRIDE= # empty + +.include "../../lang/ruby/rubyversion.mk" + +.if !empty(RUBY_SUFFIX) +CONFIGURE_ARGS+= --program-suffix="${RUBY_SUFFIX}" +.endif +.if defined(USE_INET6) && ${USE_INET6} == YES +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 + +REPLACE_RUBY= bin/irb \ + lib/matrix.rb sample/biorhythm.rb sample/cal.rb \ + sample/exyacc.rb sample/from.rb sample/fullpath.rb \ + sample/goodfriday.rb sample/less.rb \ + sample/mine.rb sample/mpart.rb sample/observ.rb \ + sample/pi.rb sample/rcs.rb sample/test.rb \ + sample/time.rb sample/trojan.rb sample/uumerge.rb + +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)\///} +.endfor + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/bin/irb ${PREFIX}/bin/irb16 + ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR} + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/pty + ${INSTALL_DATA} ${WRKSRC}/ext/pty/expect_sample.rb \ + ${WRKSRC}/ext/pty/script.rb ${WRKSRC}/ext/pty/shl.rb \ + ${RUBY_EXAMPLESDIR}/pty + +.include "../../lang/ruby/Makefile.common" +.include "../../mk/bsd.pkg.mk" |