aboutsummaryrefslogtreecommitdiff
path: root/databases/ruby-gdbm
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-06 22:54:59 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-06 22:54:59 +0000
commitbedb9c4da6366a59ce4562237ce7a18dc33b1cf1 (patch)
tree005933148fc941756f9a550046ef3b2d1d76907e /databases/ruby-gdbm
parentb68ed4bb8614386991d480b9e1ae40b1ac9e6adc (diff)
downloadports-bedb9c4da6366a59ce4562237ce7a18dc33b1cf1.tar.gz
ports-bedb9c4da6366a59ce4562237ce7a18dc33b1cf1.zip
Notes
Diffstat (limited to 'databases/ruby-gdbm')
-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