From 831e5730c8b6e4d84065c5ce763820b95a962cbb Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 7 Sep 2000 15:18:20 +0000 Subject: Update with bsd.ruby.mk. --- devel/swigruby/Makefile | 28 ++++++++++++---------------- devel/swigruby/pkg-plist | 32 ++++++++++++++++---------------- 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 +.include +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include 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 -- cgit v1.1