852712577b
naming scheme of the other multi-version packages. Add support for the coorresponding RUBY_VERSIONS_INCOMPATIBLE list.
37 lines
960 B
Makefile
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"
|