pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ruby-webrick Migrate ruby-installpkg to use new fr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78df71a3d0ac
branches:  trunk
changeset: 484546:78df71a3d0ac
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Nov 28 05:48:32 2004 +0000

description:
Migrate ruby-installpkg to use new framework for Ruby packages.

And  mark this package is only for ruby16, too.  The same version
is bundled in ruby18.

diffstat:

 www/ruby-webrick/Makefile |  21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r d7f48e0562be -r 78df71a3d0ac www/ruby-webrick/Makefile
--- a/www/ruby-webrick/Makefile Sun Nov 28 05:46:43 2004 +0000
+++ b/www/ruby-webrick/Makefile Sun Nov 28 05:48:32 2004 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2004/03/26 02:27:58 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2004/11/28 05:48:32 taca Exp $
 #
 
 DISTNAME=      webrick-1.3.1
-PKGNAME=       ${RUBY_PKGNAMEPREFIX}${DISTNAME}
-PKGREVISION=   1
+PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME}
 CATEGORIES=    www ruby
 MASTER_SITES=  http://www.webrick.org/src/
 
@@ -11,17 +10,17 @@
 HOMEPAGE=      http://www.webrick.org/
 COMMENT=       Ruby library to build HTTP servers
 
-DEPENDS+=      ruby-openssl>=0.1.3:../../security/ruby-openssl
-DEPENDS+=      ruby-erb>=1.4.3:../../textproc/ruby-erb
+DEPENDS+=      ${RUBY_PKGPREFIX}-openssl>=0.1.3:../../security/ruby-openssl
+DEPENDS+=      ${RUBY_PKGPREFIX}-erb>=1.4.3:../../textproc/ruby-erb
 
-DIST_SUBDIR=   ruby
-USE_RUBY=      yes
-NO_BUILD=      yes
+RUBY_VERSION=          ${RUBY16_VERSION}
+USE_RUBY_INSTALL=      yes
+NO_BUILD=              yes
+NO_CONFIGURE=          yes
 
-do-install:
-       cd ${WRKSRC} && ${RUBY} install.rb
+post-install:
        ${CP} -R ${WRKSRC}/doc ${RUBY_DOCDIR}/webrick
        ${CP} -R ${WRKSRC}/sample ${RUBY_EXAMPLESDIR}/webrick
 
-.include "../../lang/ruby-base/Makefile.common"
+.include "../../lang/ruby/modules.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index