aboutsummaryrefslogtreecommitdiff
path: root/devel/swigruby
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 15:18:20 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 15:18:20 +0000
commit793093fca0c51887cb0c914a2a69ef754a51eb4f (patch)
treef488764203422ced37c7b71f3ddd3fc391654a02 /devel/swigruby
parent6dca5fc349478dbee1486a25a792e98be2b16925 (diff)
downloadports-793093fca0c51887cb0c914a2a69ef754a51eb4f.tar.gz
ports-793093fca0c51887cb0c914a2a69ef754a51eb4f.zip
Notes
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 8e674eab96f4..13f6a948ea9a 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 947312c8c5b8..36a9b366c8c8 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