aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-09-07 06:54:59 +0800
committerknu <knu@FreeBSD.org>2000-09-07 06:54:59 +0800
commitc9928ceaaebf93ae6ec4fba9266177b82dce74fa (patch)
treeacc064775cd7e8b2860bd21bc499967abb715e19 /databases
parentb259cffcab29381abb7394604e99a6fb45f2c358 (diff)
downloadfreebsd-ports-gnome-c9928ceaaebf93ae6ec4fba9266177b82dce74fa.tar.gz
freebsd-ports-gnome-c9928ceaaebf93ae6ec4fba9266177b82dce74fa.tar.zst
freebsd-ports-gnome-c9928ceaaebf93ae6ec4fba9266177b82dce74fa.zip
Update to 1.6.0-preview3.
Utilize bsd.ruby.mk.
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-gdbm/Makefile31
-rw-r--r--databases/ruby-gdbm/pkg-plist2
2 files changed, 11 insertions, 22 deletions
diff --git a/databases/ruby-gdbm/Makefile b/databases/ruby-gdbm/Makefile
index 0399317d4e49..6f6901f9535a 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 <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/databases/ruby-gdbm/pkg-plist b/databases/ruby-gdbm/pkg-plist
index 3701c984985e..a13ffc21860a 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