summaryrefslogtreecommitdiff
path: root/lang/ruby18/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby18/Makefile')
-rw-r--r--lang/ruby18/Makefile134
1 files changed, 134 insertions, 0 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile
new file mode 100644
index 00000000000..8d1312d050f
--- /dev/null
+++ b/lang/ruby18/Makefile
@@ -0,0 +1,134 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/27 14:11:15 taca Exp $
+#
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-${RUBY_VERSION}
+CATEGORIES= lang ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby programming language 1.8 based release
+
+CONFLICTS+= ruby-base-[1-9]*
+
+RUBY_VERSION= ${RUBY18_VERSION}
+USE_BUILDLINK3= yes
+GNU_CONFIGURE= yes
+TEST_TARGET= test
+CONFIGURE_ARGS+= --enable-shared
+CONFIGURE_ENV+= PREFIX="${PREFIX}"
+
+# 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 ${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= COPYING COPYING.ja ChangeLog README \
+ README.EXT README.EXT.ja README.ja ToDo \
+ doc/ChangeLog-1.8.0 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
+EXT_DOCS= bigdecimal/bigdecimal_en.html bigdecimal/bigdecimal_ja.html \
+ dl/doc/dl.txt enumerator/enumerator.txt \
+ etc/etc.txt etc/etc.txt.ja syslog/syslog.txt zlib/doc/zlib.rd
+
+BIGDECIMAL_EXAMPLES= linear.rb nlsolve.rb pi.rb
+DL_EXAMPLES= c++sample.C c++sample.rb drives.rb getch.rb libc.rb \
+ msgbox.rb msgbox2.rb stream.rb
+PTY_EXAMPLES= expect_sample.rb script.rb shl.rb
+
+REPLACE_RUBY= bin/erb bin/irb bin/rdoc bin/ri bin/testrb \
+ ext/bigdecimal/sample/linear.rb \
+ ext/bigdecimal/sample/nlsolve.rb \
+ ext/bigdecimal/sample/pi.rb \
+ lib/rdoc/markup/sample/rdoc2latex.rb \
+ sample/biorhythm.rb sample/cal.rb sample/exyacc.rb \
+ sample/fullpath.rb sample/less.rb sample/from.rb \
+ sample/goodfriday.rb sample/logger/shifting.rb \
+ sample/logger/app.rb sample/logger/log.rb sample/mine.rb \
+ sample/mpart.rb sample/observ.rb sample/optparse/opttest.rb \
+ sample/soap/calc/httpd.rb sample/soap/calc/server.rb \
+ sample/soap/calc/server2.rb sample/soap/icd/icd.rb \
+ sample/soap/babelfish.rb sample/soap/exchange/client.rb \
+ sample/soap/exchange/httpd.rb sample/soap/exchange/server.rb \
+ sample/soap/raa/soap4r.rb sample/soap/sampleStruct/httpd.rb \
+ sample/soap/sampleStruct/server.rb sample/pi.rb \
+ sample/wsdl/amazon/sampleClient.rb \
+ sample/wsdl/googleSearch/sampleClient.rb \
+ sample/wsdl/googleSearch/httpd.rb sample/wsdl/raa/soap4r.rb \
+ sample/test.rb sample/trojan.rb sample/time.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/iconv/MANIFEST
+ ${RM} -f ${WRKSRC}/ext/openssl/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
+ ${RM} -rf ${WRKSRC}/sample/openssl
+
+pre-build:
+ @${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} -f {} \;
+
+post-install:
+ ${STRIP} ${RUBY}
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/irb
+ ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/pty
+.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
+ ${CP} -r ${WRKSRC}/ext/pty/README.* ${RUBY_DOCDIR}/pty
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/pty
+ ${CP} -r ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/bigdecimal
+.for f in ${BIGDECIMAL_EXAMPLES}
+ ${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/$f \
+ ${RUBY_EXAMPLESDIR}/bigdecimal
+.endfor
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/dl
+.for f in ${DL_EXAMPLES}
+ ${INSTALL_DATA} ${RUBY_WRKSRC}/ext/dl/sample/$f \
+ ${RUBY_EXAMPLESDIR}/dl
+.endfor
+.for f in ${PTY_EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/ext/pty/$f ${RUBY_EXAMPLESDIR}/pty
+.endfor
+
+.include "../../lang/ruby/Makefile.common"
+.include "../../mk/bsd.pkg.mk"