| @@ -1,113 +1,113 @@ | | | @@ -1,113 +1,113 @@ |
1 | # $NetBSD: Makefile,v 1.17 2020/01/18 21:49:43 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.18 2020/03/18 00:35:19 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= ${RUBY_DISTNAME} | | 3 | DISTNAME= ${RUBY_DISTNAME} |
4 | PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION} | | 4 | PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION} |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= lang ruby | | 6 | CATEGORIES= lang ruby |
7 | MASTER_SITES= ${MASTER_SITE_RUBY} | | 7 | MASTER_SITES= ${MASTER_SITE_RUBY} |
8 | | | 8 | |
9 | MAINTAINER= taca@NetBSD.org | | 9 | MAINTAINER= taca@NetBSD.org |
10 | HOMEPAGE= ${RUBY_HOMEPAGE} | | 10 | HOMEPAGE= ${RUBY_HOMEPAGE} |
11 | COMMENT= Ruby ${RUBY_VERSION} release minimum base package | | 11 | COMMENT= Ruby ${RUBY_VERSION} release minimum base package |
12 | | | 12 | |
13 | RUBY_VERSIONS_ACCEPTED= 24 | | 13 | RUBY_VERSIONS_ACCEPTED= 24 |
14 | | | 14 | |
15 | USE_GCC_RUNTIME= yes | | 15 | USE_GCC_RUNTIME= yes |
16 | USE_TOOLS+= pax yacc pkg-config | | 16 | USE_TOOLS+= pax yacc pkg-config |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | TEST_TARGET= test | | 18 | TEST_TARGET= test |
19 | CONFIGURE_ARGS+= --enable-shared --enable-install-static-library | | 19 | CONFIGURE_ARGS+= --enable-shared --enable-install-static-library |
20 | WRKSRC= ${RUBY_WRKSRC} | | 20 | WRKSRC= ${RUBY_WRKSRC} |
21 | | | 21 | |
22 | .include "options.mk" | | 22 | .include "options.mk" |
23 | .include "../../lang/ruby/platform.mk" | | 23 | .include "../../lang/ruby/platform.mk" |
24 | | | 24 | |
25 | .if !empty(RUBY_SUFFIX) | | 25 | .if !empty(RUBY_SUFFIX) |
26 | CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX} | | 26 | CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX} |
27 | CONFIGURE_ARGS+= --with-soname=${RUBY_NAME} | | 27 | CONFIGURE_ARGS+= --with-soname=${RUBY_NAME} |
28 | CONFIGURE_ARGS+= --with-ruby-version=${RUBY_VER_DIR} | | 28 | CONFIGURE_ARGS+= --with-ruby-version=${RUBY_VER_DIR} |
29 | CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc" | | 29 | CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc" |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | DOCS= BSDL COPYING COPYING.ja ChangeLog LEGAL NEWS README.EXT README.EXT.ja \ | | 32 | DOCS= BSDL COPYING COPYING.ja ChangeLog LEGAL NEWS README.EXT README.EXT.ja \ |
33 | README.ja.md README.md doc/ChangeLog-1.8.0 doc/ChangeLog-1.9.3 \ | | 33 | README.ja.md README.md doc/ChangeLog-1.8.0 doc/ChangeLog-1.9.3 \ |
34 | doc/ChangeLog-2.0.0 doc/ChangeLog-2.1.0 doc/ChangeLog-2.2.0 \ | | 34 | doc/ChangeLog-2.0.0 doc/ChangeLog-2.1.0 doc/ChangeLog-2.2.0 \ |
35 | doc/ChangeLog-2.3.0 doc/ChangeLog-2.4.0 doc/ChangeLog-YARV \ | | 35 | doc/ChangeLog-2.3.0 doc/ChangeLog-2.4.0 doc/ChangeLog-YARV \ |
36 | doc/NEWS-1.8.7 doc/NEWS-1.9.1 doc/NEWS-1.9.2 doc/NEWS-1.9.3 \ | | 36 | doc/NEWS-1.8.7 doc/NEWS-1.9.1 doc/NEWS-1.9.2 doc/NEWS-1.9.3 \ |
37 | doc/NEWS-2.0.0 doc/NEWS-2.1.0 doc/NEWS-2.2.0 doc/NEWS-2.3.0 \ | | 37 | doc/NEWS-2.0.0 doc/NEWS-2.1.0 doc/NEWS-2.2.0 doc/NEWS-2.3.0 \ |
38 | doc/contributing.rdoc doc/contributors.rdoc doc/dtrace_probes.rdoc \ | | 38 | doc/contributing.rdoc doc/contributors.rdoc doc/dtrace_probes.rdoc \ |
39 | doc/etc.rd.ja doc/forwardable.rd.ja doc/globals.rdoc \ | | 39 | doc/etc.rd.ja doc/forwardable.rd.ja doc/globals.rdoc \ |
40 | doc/images/boottime-classes.png doc/irb/irb-tools.rd.ja \ | | 40 | doc/images/boottime-classes.png doc/irb/irb-tools.rd.ja \ |
41 | doc/irb/irb.rd.ja doc/keywords.rdoc doc/maintainers.rdoc \ | | 41 | doc/irb/irb.rd.ja doc/keywords.rdoc doc/maintainers.rdoc \ |
42 | doc/marshal.rdoc doc/pty/README.expect.ja doc/pty/README.ja \ | | 42 | doc/marshal.rdoc doc/pty/README.expect.ja doc/pty/README.ja \ |
43 | doc/regexp.rdoc doc/security.rdoc doc/shell.rd.ja \ | | 43 | doc/regexp.rdoc doc/security.rdoc doc/shell.rd.ja \ |
44 | doc/standard_library.rdoc doc/syntax/assignment.rdoc \ | | 44 | doc/standard_library.rdoc doc/syntax/assignment.rdoc \ |
45 | doc/syntax/calling_methods.rdoc doc/syntax/control_expressions.rdoc \ | | 45 | doc/syntax/calling_methods.rdoc doc/syntax/control_expressions.rdoc \ |
46 | doc/syntax/exceptions.rdoc doc/syntax/literals.rdoc \ | | 46 | doc/syntax/exceptions.rdoc doc/syntax/literals.rdoc \ |
47 | doc/syntax/methods.rdoc doc/syntax/miscellaneous.rdoc \ | | 47 | doc/syntax/methods.rdoc doc/syntax/miscellaneous.rdoc \ |
48 | doc/syntax/modules_and_classes.rdoc doc/syntax/precedence.rdoc \ | | 48 | doc/syntax/modules_and_classes.rdoc doc/syntax/precedence.rdoc \ |
49 | doc/syntax/refinements.rdoc doc/syntax.rdoc | | 49 | doc/syntax/refinements.rdoc doc/syntax.rdoc |
50 | EXT_DOCS= syslog/syslog.txt | | 50 | EXT_DOCS= syslog/syslog.txt |
51 | | | 51 | |
52 | BIGDECIMAL_EXAMPLES= linear.rb nlsolve.rb pi.rb | | 52 | BIGDECIMAL_EXAMPLES= linear.rb nlsolve.rb pi.rb |
53 | OPENSSL_EXAMPLES= c_rehash.rb cert2text.rb certstore.rb cipher.rb \ | | 53 | OPENSSL_EXAMPLES= c_rehash.rb cert2text.rb certstore.rb cipher.rb \ |
54 | crlstore.rb echo_cli.rb echo_svr.rb gen_csr.rb \ | | 54 | crlstore.rb echo_cli.rb echo_svr.rb gen_csr.rb \ |
55 | smime_read.rb smime_write.rb wget.rb | | 55 | smime_read.rb smime_write.rb wget.rb |
56 | REPLACE_RUBY= bin/erb bin/gem bin/irb bin/rake bin/rdoc bin/ri \ | | 56 | REPLACE_RUBY= bin/erb bin/gem bin/irb bin/rdoc bin/ri \ |
57 | gems/rake-${RUBY_RAKE_VERSION}/exe/rake \ | | 57 | gems/rake-${RUBY_RAKE_VERSION}/exe/rake \ |
58 | gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/console \ | | 58 | gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/console \ |
59 | gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/setup | | 59 | gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/setup |
60 | REPLACE_RUBY_DIRS= ext lib sample | | 60 | REPLACE_RUBY_DIRS= ext lib sample |
61 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${RUBY_DOC}/images \ | | 61 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${RUBY_DOC}/images \ |
62 | ${RUBY_DOC}/irb ${RUBY_DOC}/pty ${RUBY_DOC}/ripper \ | | 62 | ${RUBY_DOC}/irb ${RUBY_DOC}/pty ${RUBY_DOC}/ripper \ |
63 | ${RUBY_DOC}/stringio ${RUBY_DOC}/syntax \ | | 63 | ${RUBY_DOC}/stringio ${RUBY_DOC}/syntax \ |
64 | ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty | | 64 | ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty |
65 | # ${RUBY_ARCHINC} ${RUBY_ARCHLIB} | | 65 | # ${RUBY_ARCHINC} ${RUBY_ARCHLIB} |
66 | EMPTY_DIRS= generator/template markup/simple_markup | | 66 | EMPTY_DIRS= generator/template markup/simple_markup |
67 | | | 67 | |
68 | NOT_PAX_MPROTECT_SAFE+= bin/${RUBY_NAME} | | 68 | NOT_PAX_MPROTECT_SAFE+= bin/${RUBY_NAME} |
69 | | | 69 | |
70 | pre-configure: | | 70 | pre-configure: |
71 | ${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb | | 71 | ${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb |
72 | ${RM} -f ${WRKSRC}/ext/fiddle/extconf.rb | | 72 | ${RM} -f ${WRKSRC}/ext/fiddle/extconf.rb |
73 | ${RM} -f ${WRKSRC}/ext/readline/extconf.rb | | 73 | ${RM} -f ${WRKSRC}/ext/readline/extconf.rb |
74 | ${RM} -f ${WRKSRC}/ext/tk/extconf.rb | | 74 | ${RM} -f ${WRKSRC}/ext/tk/extconf.rb |
75 | ${RM} -f ${WRKSRC}/ext/tk/tkutil/extconf.rb | | 75 | ${RM} -f ${WRKSRC}/ext/tk/tkutil/extconf.rb |
76 | ${TOUCH} ${WRKSRC}/prelude.c | | 76 | ${TOUCH} ${WRKSRC}/prelude.c |
77 | | | 77 | |
78 | pre-install: | | 78 | pre-install: |
79 | cd ${WRKSRC}/lib; \ | | 79 | cd ${WRKSRC}/lib; \ |
80 | ${FIND} . \( -name '*.orig' -o -name '*.orig_dist' \) \ | | 80 | ${FIND} . \( -name '*.orig' -o -name '*.orig_dist' \) \ |
81 | -exec ${RM} -f {} \; | | 81 | -exec ${RM} -f {} \; |
82 | .for f in ${EMPTY_DIRS} | | 82 | .for f in ${EMPTY_DIRS} |
83 | ${RMDIR} ${WRKSRC}/lib/rdoc/${f} 2>/dev/null || ${TRUE} | | 83 | ${RMDIR} ${WRKSRC}/lib/rdoc/${f} 2>/dev/null || ${TRUE} |
84 | .endfor | | 84 | .endfor |
85 | | | 85 | |
86 | post-install: | | 86 | post-install: |
87 | .for f in ${DOCS} | | 87 | .for f in ${DOCS} |
88 | ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/${f:C/^doc\///} | | 88 | ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/${f:C/^doc\///} |
89 | .endfor | | 89 | .endfor |
90 | .for f in ${EXT_DOCS} | | 90 | .for f in ${EXT_DOCS} |
91 | ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC} | | 91 | ${INSTALL_DATA} ${WRKSRC}/ext/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC} |
92 | .endfor | | 92 | .endfor |
93 | cd ${WRKSRC}/ext/ripper; ${PAX} -rw README ${DESTDIR}${PREFIX}/${RUBY_DOC}/ripper | | 93 | cd ${WRKSRC}/ext/ripper; ${PAX} -rw README ${DESTDIR}${PREFIX}/${RUBY_DOC}/ripper |
94 | cd ${WRKSRC}/ext/stringio; ${PAX} -rw README.md ${DESTDIR}${PREFIX}/${RUBY_DOC}/stringio | | 94 | cd ${WRKSRC}/ext/stringio; ${PAX} -rw README.md ${DESTDIR}${PREFIX}/${RUBY_DOC}/stringio |
95 | cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG} | | 95 | cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG} |
96 | .for f in ${BIGDECIMAL_EXAMPLES} | | 96 | .for f in ${BIGDECIMAL_EXAMPLES} |
97 | ${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/${f} \ | | 97 | ${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/${f} \ |
98 | ${DESTDIR}${PREFIX}/${RUBY_EG}/bigdecimal | | 98 | ${DESTDIR}${PREFIX}/${RUBY_EG}/bigdecimal |
99 | .endfor | | 99 | .endfor |
100 | .for f in ${OPENSSL_EXAMPLES} | | 100 | .for f in ${OPENSSL_EXAMPLES} |
101 | ${INSTALL_DATA} ${RUBY_WRKSRC}/sample/openssl/${f} \ | | 101 | ${INSTALL_DATA} ${RUBY_WRKSRC}/sample/openssl/${f} \ |
102 | ${DESTDIR}${PREFIX}/${RUBY_EG}/openssl | | 102 | ${DESTDIR}${PREFIX}/${RUBY_EG}/openssl |
103 | .endfor | | 103 | .endfor |
104 | ${CHMOD} -R g-w ${DESTDIR}${PREFIX}/${GEM_HOME}/gems | | 104 | ${CHMOD} -R g-w ${DESTDIR}${PREFIX}/${GEM_HOME}/gems |
105 | ${RUBY_GENERATE_PLIST} | | 105 | ${RUBY_GENERATE_PLIST} |
106 | | | 106 | |
107 | .include "../../mk/bdb.buildlink3.mk" | | 107 | .include "../../mk/bdb.buildlink3.mk" |
108 | .include "../../converters/libiconv/buildlink3.mk" | | 108 | .include "../../converters/libiconv/buildlink3.mk" |
109 | .include "../../devel/zlib/buildlink3.mk" | | 109 | .include "../../devel/zlib/buildlink3.mk" |
110 | .include "../../security/openssl/buildlink3.mk" | | 110 | .include "../../security/openssl/buildlink3.mk" |
111 | .include "../../textproc/libyaml/buildlink3.mk" | | 111 | .include "../../textproc/libyaml/buildlink3.mk" |
112 | .include "../../lang/ruby/Makefile.common" | | 112 | .include "../../lang/ruby/Makefile.common" |
113 | .include "../../mk/bsd.pkg.mk" | | 113 | .include "../../mk/bsd.pkg.mk" |