From c9928ceaaebf93ae6ec4fba9266177b82dce74fa Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 6 Sep 2000 22:54:59 +0000 Subject: Update to 1.6.0-preview3. Utilize bsd.ruby.mk. --- databases/ruby-gdbm/Makefile | 31 ++++++++++--------------------- databases/ruby-gdbm/pkg-plist | 2 +- 2 files changed, 11 insertions(+), 22 deletions(-) (limited to 'databases/ruby-gdbm') diff --git a/databases/ruby-gdbm/Makefile b/databases/ruby-gdbm/Makefile index 0399317..6f6901f 100644 --- a/databases/ruby-gdbm/Makefile +++ b/databases/ruby-gdbm/Makefile @@ -6,37 +6,26 @@ # PORTNAME= gdbm -PORTVERSION= 1.4.6 +PORTVERSION= ${RUBY_VERSION}.p3 CATEGORIES= databases ruby MASTER_SITES= ${MASTER_SITE_RUBY} -MASTER_SITE_SUBDIR= 1.4 -PKGNAMEPREFIX= ruby- -DISTNAME= ruby-${PORTVERSION} +MASTER_SITE_SUBDIR= # ${RUBY_VER} +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= ruby-${PORTVERSION:S/.p/-preview/} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby LIB_DEPENDS= gdbm.2:${PORTSDIR}/databases/gdbm -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby -WRKSRC= ${WRKDIR}/${DISTNAME}/ext/gdbm -CONFIGURE_ARGS= --with-opt-dir="${PREFIX}" +USE_RUBY= yes +USE_RUBY_EXTCONF= yes -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} -RUBY?= ${LOCALBASE}/bin/ruby - -DOCDIR= ${PREFIX}/share/doc/ruby -EXAMPLESDIR= ${PREFIX}/share/examples/ruby - -do-configure: - cd ${WRKSRC}; \ - ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS} +WRKSRC= ${WRKDIR}/ruby-${PORTVERSION:R}/ext/gdbm post-install: @${CAT} ${PKGMESSAGE} -.include +.include +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include diff --git a/databases/ruby-gdbm/pkg-plist b/databases/ruby-gdbm/pkg-plist index 3701c98..a13ffc2 100644 --- a/databases/ruby-gdbm/pkg-plist +++ b/databases/ruby-gdbm/pkg-plist @@ -1 +1 @@ -lib/ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/gdbm.so +%%RUBY_ARCHLIBDIR%%/gdbm.so -- cgit v1.1