summaryrefslogtreecommitdiffstats
path: root/devel/swigruby
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-09-07 15:18:20 +0000
committerknu <knu@FreeBSD.org>2000-09-07 15:18:20 +0000
commit831e5730c8b6e4d84065c5ce763820b95a962cbb (patch)
treec36e893b77b96d6a8bfdea80b0bdc3d1b3b6271c /devel/swigruby
parentbafdcd9c5898dec2f273d5987b752abb37c4fdcc (diff)
downloadFreeBSD-ports-831e5730c8b6e4d84065c5ce763820b95a962cbb.zip
FreeBSD-ports-831e5730c8b6e4d84065c5ce763820b95a962cbb.tar.gz
Update with bsd.ruby.mk.
Diffstat (limited to 'devel/swigruby')
-rw-r--r--devel/swigruby/Makefile28
-rw-r--r--devel/swigruby/pkg-plist32
2 files changed, 28 insertions, 32 deletions
diff --git a/devel/swigruby/Makefile b/devel/swigruby/Makefile
index 8e674ea..13f6a94 100644
--- a/devel/swigruby/Makefile
+++ b/devel/swigruby/Makefile
@@ -13,18 +13,12 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- swig:${PORTSDIR}/devel/SWIG
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- swig:${PORTSDIR}/devel/SWIG
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG
+RUN_DEPENDS= swig:${PORTSDIR}/devel/SWIG
-USE_GMAKE= YES
+USE_RUBY= yes
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY= ${LOCALBASE}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+USE_GMAKE= yes
DOCS_EN= ChangeLog README
DOCS_JA= README.ja
@@ -35,15 +29,17 @@ do-configure:
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/swigruby
- ${CP} -R ${WRKSRC}/examples/ ${PREFIX}/share/examples/ruby/swigruby/
- ${MKDIR} ${PREFIX}/share/doc/ruby/swigruby/ja
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/swigruby
+ ${CP} -R ${WRKSRC}/examples/ ${RUBY_EXAMPLESDIR}/swigruby/
+ ${MKDIR} ${RUBY_DOCDIR}/swigruby/ja
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/swigruby/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/swigruby/
.endfor
.for f in ${DOCS_JA}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/swigruby/ja/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/swigruby/ja/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/devel/swigruby/pkg-plist b/devel/swigruby/pkg-plist
index 947312c..36a9b36 100644
--- a/devel/swigruby/pkg-plist
+++ b/devel/swigruby/pkg-plist
@@ -8,19 +8,19 @@ lib/swig_lib/ruby/ptrlang.i
lib/swig_lib/ruby/ruby.swg
lib/swig_lib/ruby/typemaps.i
@dirrm lib/swig_lib/ruby
-share/doc/ruby/swigruby/ChangeLog
-share/doc/ruby/swigruby/README
-share/doc/ruby/swigruby/ja/README.ja
-@dirrm share/doc/ruby/swigruby/ja
-@dirrm share/doc/ruby/swigruby
-share/examples/ruby/swigruby/dbm/Makefile.swig
-share/examples/ruby/swigruby/dbm/DBM.i
-share/examples/ruby/swigruby/dbm/extconf.rb
-share/examples/ruby/swigruby/dbm/dbmtest.rb
-share/examples/ruby/swigruby/qt/Makefile.swig
-share/examples/ruby/swigruby/qt/qt.i
-share/examples/ruby/swigruby/qt/extconf.rb
-share/examples/ruby/swigruby/qt/hello.rb
-@dirrm share/examples/ruby/swigruby/dbm
-@dirrm share/examples/ruby/swigruby/qt
-@dirrm share/examples/ruby/swigruby
+%%RUBY_DOCDIR%%/swigruby/ChangeLog
+%%RUBY_DOCDIR%%/swigruby/README
+%%RUBY_DOCDIR%%/swigruby/ja/README.ja
+@dirrm %%RUBY_DOCDIR%%/swigruby/ja
+@dirrm %%RUBY_DOCDIR%%/swigruby
+%%RUBY_EXAMPLESDIR%%/swigruby/dbm/Makefile.swig
+%%RUBY_EXAMPLESDIR%%/swigruby/dbm/DBM.i
+%%RUBY_EXAMPLESDIR%%/swigruby/dbm/extconf.rb
+%%RUBY_EXAMPLESDIR%%/swigruby/dbm/dbmtest.rb
+%%RUBY_EXAMPLESDIR%%/swigruby/qt/Makefile.swig
+%%RUBY_EXAMPLESDIR%%/swigruby/qt/qt.i
+%%RUBY_EXAMPLESDIR%%/swigruby/qt/extconf.rb
+%%RUBY_EXAMPLESDIR%%/swigruby/qt/hello.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/swigruby/dbm
+@dirrm %%RUBY_EXAMPLESDIR%%/swigruby/qt
+@dirrm %%RUBY_EXAMPLESDIR%%/swigruby
OpenPOWER on IntegriCloud