# $NetBSD: Makefile,v 1.39 2015/11/23 15:46:59 taca Exp $ # DISTNAME= ${RUBY_DISTNAME} PKGNAME= ${RUBY_PKGPREFIX}-${RUBY_EXTNAME}-${RUBY_VERSION_FULL} PKGREVISION= 1 RUBY_EXTNAME= readline CATEGORIES= devel ruby MASTER_SITES= ${MASTER_SITE_RUBY} MAINTAINER= taca@NetBSD.org HOMEPAGE= ${RUBY_HOMEPAGE} COMMENT= Ruby extension to readline library RUBY_VERSION_SUPPORTED= 22 21 200 18 USE_RUBY_EXTCONF= yes DISTINFO_FILE= ${RUBY_DISTINFO_FILE} EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/readline WRKSRC= ${RUBY_WRKSRC}/ext/readline MAKE_ENV+= top_srcdir=../.. RUBY_DOCS= README README.ja INSTALLATION_DIRS= ${RUBY_DOC}/readline .include "options.mk" .include "../../lang/ruby/modules.mk" .if ${RUBY_VER} != "18" EXTRACT_ELEMENTS+= ${RUBY_DISTNAME}/include ${RUBY_DISTNAME}/internal.h .endif post-install: .for f in ${RUBY_DOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/readline .endfor .include "../../lang/ruby/Makefile.common" .include "../../mk/bsd.pkg.mk"