f188f4f00c
* Add LICENSE. * Add CONFLICTS since it will install the same name commands both ruby18 and ruby19 based packages.
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.24 2010/09/10 04:58:14 taca Exp $
|
|
|
|
DISTNAME= vapor-0.81
|
|
PKGREVISION= 8
|
|
CATEGORIES= databases ruby
|
|
MASTER_SITES= http://rubyforge.org/frs/download.php/215/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://vapor.rubyforge.org/
|
|
COMMENT= Ruby transparent persistence to postgresql
|
|
LICENSE= gnu-gpl-v2 OR ruby-license
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
CONFLICTS+= ruby[1-9][0-9]-vapor-*
|
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-dbd-pg>=0.0.20:../../databases/ruby-dbd-pg
|
|
|
|
USE_TOOLS= pax
|
|
USE_RUBY_SETUP= yes
|
|
RUBY_SETUP= install.rb
|
|
REPLACE_RUBY= doc/examples/university/createperson \
|
|
doc/examples/university/createuni \
|
|
doc/examples/university/employment \
|
|
doc/examples/university/enroll
|
|
|
|
CONFIGURE_ARGS+= --site-ruby-common=${PREFIX}/${RUBY_VENDORLIB_BASE} \
|
|
--site-ruby=${PREFIX}/${RUBY_VENDORLIB} \
|
|
--so-dir==${PREFIX}/${RUBY_VENDORARCHLIB}
|
|
|
|
|
|
INSTALLATION_DIRS= ${RUBY_DOC}/vapor ${RUBY_EG}
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/doc; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_DOC}/vapor
|
|
${LN} -s ${DESTDIR}${PREFIX}/${RUBY_DOC}/vapor ${DESTDIR}${PREFIX}/${RUBY_EG}/vapor
|
|
|
|
.include "../../lang/ruby/modules.mk"
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|