pkgsrc/devel/ruby-readline/Makefile
joerg 852712577b Rename RUBY_VERSION_SUPPORTED into _RUBY_VERSIONS_ACCEPTED to follow the
naming scheme of the other multi-version packages. Add support for the
coorresponding RUBY_VERSIONS_INCOMPATIBLE list.
2016-09-08 15:19:16 +00:00

37 lines
960 B
Makefile

# $NetBSD: Makefile,v 1.43 2016/09/08 15:19:17 joerg 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_VERSIONS_ACCEPTED= 23 22 21 18
USE_RUBY_EXTCONF= yes
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"