pkgsrc/databases/ruby-tokyocabinet/Makefile
2010-03-12 10:21:54 +00:00

36 lines
969 B
Makefile

# $NetBSD: Makefile,v 1.20 2010/03/12 10:21:54 obache Exp $
#
DISTNAME= tokyocabinet-ruby-1.29
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/-ruby-/-/}
PKGREVISION= 2
CATEGORIES= databases ruby
MASTER_SITES= ${HOMEPAGE:S/rubydoc/rubypkg/}
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://1978th.net/tokyocabinet/rubydoc/
COMMENT= Ruby binding of Tokyo Cabinet
LICENSE= gnu-lgpl-v2.1
PKG_DESTDIR_SUPPORT= user-destdir
USE_RUBY_EXTCONF= yes
RUBY_HAS_ARCHLIB= yes
REPLACE_RUBY_DIRS= .
USE_TOOLS+= pax
DOCDIR= share/tokyocabinet/doc/ruby
RUBY_DYNAMIC_DIRS= ${DOCDIR}
do-test:
${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${RUBY} test.rb
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX}/${DOCDIR}
cd ${WRKSRC}/doc && pax -rwpe . ${DESTDIR}${PREFIX}/${DOCDIR}
${RUBY_GENERATE_PLIST}
BUILDLINK_API_DEPENDS.tokyocabinet+= tokyocabinet>=1.4.29
.include "../../databases/tokyocabinet/buildlink3.mk"
.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"