| @@ -1,17 +1,18 @@ | | | @@ -1,17 +1,18 @@ |
1 | # $NetBSD: Makefile,v 1.6 2018/07/17 10:56:24 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2019/02/14 06:03:50 taca 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= 1 |
5 | CATEGORIES= lang ruby | | 6 | CATEGORIES= lang ruby |
6 | MASTER_SITES= ${MASTER_SITE_RUBY} | | 7 | MASTER_SITES= ${MASTER_SITE_RUBY} |
7 | | | 8 | |
8 | MAINTAINER= taca@NetBSD.org | | 9 | MAINTAINER= taca@NetBSD.org |
9 | HOMEPAGE= ${RUBY_HOMEPAGE} | | 10 | HOMEPAGE= ${RUBY_HOMEPAGE} |
10 | COMMENT= Ruby ${RUBY_VERSION} release minimum base package | | 11 | COMMENT= Ruby ${RUBY_VERSION} release minimum base package |
11 | | | 12 | |
12 | RUBY_VERSIONS_ACCEPTED= 25 | | 13 | RUBY_VERSIONS_ACCEPTED= 25 |
13 | | | 14 | |
14 | USE_GCC_RUNTIME= yes | | 15 | USE_GCC_RUNTIME= yes |
15 | USE_LANGUAGES= c | | 16 | USE_LANGUAGES= c |
16 | USE_TOOLS+= pax yacc pkg-config | | 17 | USE_TOOLS+= pax yacc pkg-config |
17 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
| @@ -24,29 +25,30 @@ WRKSRC= ${RUBY_WRKSRC} | | | @@ -24,29 +25,30 @@ WRKSRC= ${RUBY_WRKSRC} |
24 | | | 25 | |
25 | .if !empty(RUBY_SUFFIX) | | 26 | .if !empty(RUBY_SUFFIX) |
26 | CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX} | | 27 | CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX} |
27 | CONFIGURE_ARGS+= --with-soname=${RUBY_NAME} | | 28 | CONFIGURE_ARGS+= --with-soname=${RUBY_NAME} |
28 | CONFIGURE_ARGS+= --with-ruby-version=${RUBY_VER_DIR} | | 29 | CONFIGURE_ARGS+= --with-ruby-version=${RUBY_VER_DIR} |
29 | CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc" | | 30 | CONFIGURE_ARGS+= --with-ruby-pc="ruby-${RUBY_VERSION}.pc" |
30 | .endif | | 31 | .endif |
31 | | | 32 | |
32 | CONFIGURE_ENV.Darwin+= ac_cv_prog_dsymutil= | | 33 | CONFIGURE_ENV.Darwin+= ac_cv_prog_dsymutil= |
33 | | | 34 | |
34 | DOCS= BSDL COPYING COPYING.ja ChangeLog LEGAL NEWS README.EXT README.EXT.ja \ | | 35 | DOCS= BSDL COPYING COPYING.ja ChangeLog LEGAL NEWS README.EXT README.EXT.ja \ |
35 | README.ja.md README.md doc/ChangeLog-1.8.0 doc/ChangeLog-1.9.3 \ | | 36 | README.ja.md README.md doc/ChangeLog-1.8.0 doc/ChangeLog-1.9.3 \ |
36 | doc/ChangeLog-2.0.0 doc/ChangeLog-2.1.0 doc/ChangeLog-2.2.0 \ | | 37 | doc/ChangeLog-2.0.0 doc/ChangeLog-2.1.0 doc/ChangeLog-2.2.0 \ |
37 | doc/ChangeLog-2.3.0 doc/ChangeLog-2.4.0 doc/ChangeLog-YARV \ | | 38 | doc/ChangeLog-2.3.0 doc/ChangeLog-2.4.0 doc/ChangeLog-2016 \ |
38 | doc/NEWS-1.8.7 doc/NEWS-1.9.1 doc/NEWS-1.9.2 doc/NEWS-1.9.3 \ | | 39 | doc/ChangeLog-YARV doc/NEWS-1.8.7 doc/NEWS-1.9.1 doc/NEWS-1.9.2 \ |
39 | doc/NEWS-2.0.0 doc/NEWS-2.1.0 doc/NEWS-2.2.0 doc/NEWS-2.3.0 \ | | 40 | doc/NEWS-1.9.3 doc/NEWS-2.0.0 doc/NEWS-2.1.0 doc/NEWS-2.2.0 \ |
| | | 41 | doc/NEWS-2.3.0 doc/NEWS-2.4.0 \ |
40 | doc/contributing.rdoc doc/contributors.rdoc doc/dtrace_probes.rdoc \ | | 42 | doc/contributing.rdoc doc/contributors.rdoc doc/dtrace_probes.rdoc \ |
41 | doc/etc.rd.ja doc/forwardable.rd.ja doc/globals.rdoc \ | | 43 | doc/etc.rd.ja doc/forwardable.rd.ja doc/globals.rdoc \ |
42 | doc/images/boottime-classes.png doc/irb/irb-tools.rd.ja \ | | 44 | doc/images/boottime-classes.png doc/irb/irb-tools.rd.ja \ |
43 | doc/irb/irb.rd.ja doc/keywords.rdoc doc/maintainers.rdoc \ | | 45 | doc/irb/irb.rd.ja doc/keywords.rdoc doc/maintainers.rdoc \ |
44 | doc/marshal.rdoc doc/pty/README.expect.ja doc/pty/README.ja \ | | 46 | doc/marshal.rdoc doc/pty/README.expect.ja doc/pty/README.ja \ |
45 | doc/regexp.rdoc doc/security.rdoc doc/shell.rd.ja \ | | 47 | doc/regexp.rdoc doc/security.rdoc doc/shell.rd.ja \ |
46 | doc/standard_library.rdoc doc/syntax/assignment.rdoc \ | | 48 | doc/standard_library.rdoc doc/syntax/assignment.rdoc \ |
47 | doc/syntax/calling_methods.rdoc doc/syntax/control_expressions.rdoc \ | | 49 | doc/syntax/calling_methods.rdoc doc/syntax/control_expressions.rdoc \ |
48 | doc/syntax/exceptions.rdoc doc/syntax/literals.rdoc \ | | 50 | doc/syntax/exceptions.rdoc doc/syntax/literals.rdoc \ |
49 | doc/syntax/methods.rdoc doc/syntax/miscellaneous.rdoc \ | | 51 | doc/syntax/methods.rdoc doc/syntax/miscellaneous.rdoc \ |
50 | doc/syntax/modules_and_classes.rdoc doc/syntax/precedence.rdoc \ | | 52 | doc/syntax/modules_and_classes.rdoc doc/syntax/precedence.rdoc \ |
51 | doc/syntax/refinements.rdoc doc/syntax.rdoc | | 53 | doc/syntax/refinements.rdoc doc/syntax.rdoc |
52 | EXT_DOCS= syslog/syslog.txt | | 54 | EXT_DOCS= syslog/syslog.txt |
| @@ -61,28 +63,26 @@ REPLACE_RUBY= bin/erb bin/gem bin/irb b | | | @@ -61,28 +63,26 @@ REPLACE_RUBY= bin/erb bin/gem bin/irb b |
61 | gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/setup | | 63 | gems/net-telnet-${RUBY_NET_TELNET_VERSION}/bin/setup |
62 | REPLACE_RUBY_DIRS= ext lib sample | | 64 | REPLACE_RUBY_DIRS= ext lib sample |
63 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${RUBY_DOC}/images \ | | 65 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${RUBY_DOC}/images \ |
64 | ${RUBY_DOC}/irb ${RUBY_DOC}/pty ${RUBY_DOC}/ripper \ | | 66 | ${RUBY_DOC}/irb ${RUBY_DOC}/pty ${RUBY_DOC}/ripper \ |
65 | ${RUBY_DOC}/stringio ${RUBY_DOC}/syntax \ | | 67 | ${RUBY_DOC}/stringio ${RUBY_DOC}/syntax \ |
66 | ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty | | 68 | ${RUBY_EG}/bigdecimal ${RUBY_EG}/pty |
67 | # ${RUBY_ARCHINC} ${RUBY_ARCHLIB} | | 69 | # ${RUBY_ARCHINC} ${RUBY_ARCHLIB} |
68 | EMPTY_DIRS= generator/template markup/simple_markup | | 70 | EMPTY_DIRS= generator/template markup/simple_markup |
69 | | | 71 | |
70 | pre-configure: | | 72 | pre-configure: |
71 | ${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb | | 73 | ${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb |
72 | ${RM} -f ${WRKSRC}/ext/fiddle/extconf.rb | | 74 | ${RM} -f ${WRKSRC}/ext/fiddle/extconf.rb |
73 | ${RM} -f ${WRKSRC}/ext/readline/extconf.rb | | 75 | ${RM} -f ${WRKSRC}/ext/readline/extconf.rb |
74 | ${RM} -f ${WRKSRC}/ext/tk/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\///} |