2006-09-07 17:41:12 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2006/09/07 15:41:12 taca Exp $
|
2004-11-27 15:35:15 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= ${RUBY_DISTNAME}
|
|
|
|
PKGNAME= ${RUBY_PKGPREFIX}-curses-${RUBY_VERSION}
|
|
|
|
CATEGORIES= devel ruby
|
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
|
|
|
2006-09-07 17:41:12 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
PATCHFILES= ruby-1.8.5-curses-${RUBY18_PATCH_DATE}.patch.bz2
|
|
|
|
PATCH_DIST_STRIP= -p2
|
|
|
|
|
2004-11-27 15:35:15 +01:00
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
|
|
HOMEPAGE= ${RUBY_HOMEPAGE}
|
|
|
|
COMMENT= Ruby extension to curses library
|
|
|
|
|
2005-01-23 18:33:19 +01:00
|
|
|
RUBY_HAS_ARCHLIB= yes
|
2004-11-27 15:35:15 +01:00
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/curses
|
|
|
|
WRKSRC= ${RUBY_WRKSRC}/ext/curses
|
|
|
|
|
|
|
|
CURSES_EXAMPLES= hello.rb rain.rb view.rb view2.rb
|
|
|
|
REPLACE_RUBY= ${CURSES_EXAMPLES}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/curses
|
|
|
|
.for f in ${CURSES_EXAMPLES}
|
2005-03-06 13:58:04 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/curses
|
2004-11-27 15:35:15 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../lang/ruby/modules.mk"
|
|
|
|
.include "../../lang/ruby/Makefile.common"
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|