[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby24-base

Annotation of pkgsrc/lang/ruby24-base/Makefile, Revision 1.10

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

CVSweb <webmaster@jp.NetBSD.org>