diff options
author | knu <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-09-07 14:39:47 +0000 |
commit | 96f951a2786bd495731135d2fc5fcb8749dee633 (patch) | |
tree | f2835ba67cd5363c99bf3d8b27d9d3019200754f /net/ruby-snmp | |
parent | 4ea073e1c6c57446d3193f6385a0d5ce1cc3e63f (diff) | |
download | FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.zip FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.tar.gz |
Update with bsd.ruby.mk. :>
Diffstat (limited to 'net/ruby-snmp')
-rw-r--r-- | net/ruby-snmp/Makefile | 25 | ||||
-rw-r--r-- | net/ruby-snmp/pkg-plist | 16 |
2 files changed, 17 insertions, 24 deletions
diff --git a/net/ruby-snmp/Makefile b/net/ruby-snmp/Makefile index 851dbf3..e85279e 100644 --- a/net/ruby-snmp/Makefile +++ b/net/ruby-snmp/Makefile @@ -9,27 +9,22 @@ PORTNAME= snmp PORTVERSION= 0.2.1 CATEGORIES= net ruby MASTER_SITES= http://w3cic.riken.go.jp/~tsuruoka/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ruby${PORTNAME}-${PORTVERSION} EXTRACT_SUFX= .tgz DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby LIB_DEPENDS= snmp.4:${PORTSDIR}/net/ucd-snmp -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby + +USE_RUBY= yes +USE_RUBY_EXTCONF= yes WRKSRC= ${WRKDIR}/SNMP INSTALL_TARGET= site-install CONFIGURE_ARGS= --with-snmp-dir="${LOCALBASE}" -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - DOCS_EN= mib_view.html \ rubysnmp.html \ sampleout.html \ @@ -37,16 +32,14 @@ DOCS_EN= mib_view.html \ snmp_session.html \ snmp_var.html -do-configure: - @cd ${WRKSRC}; \ - ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS} - post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/ruby/snmp + ${MKDIR} ${RUBY_DOCDIR}/snmp .for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/snmp/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/snmp/ .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/net/ruby-snmp/pkg-plist b/net/ruby-snmp/pkg-plist index 661480a..3cebc9cb 100644 --- a/net/ruby-snmp/pkg-plist +++ b/net/ruby-snmp/pkg-plist @@ -1,8 +1,8 @@ -lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/snmp.so -share/doc/ruby/snmp/mib_view.html -share/doc/ruby/snmp/rubysnmp.html -share/doc/ruby/snmp/sampleout.html -share/doc/ruby/snmp/snmp_module.html -share/doc/ruby/snmp/snmp_session.html -share/doc/ruby/snmp/snmp_var.html -@dirrm share/doc/ruby/snmp +%%RUBY_SITEARCHLIBDIR%%/snmp.so +%%RUBY_DOCDIR%%/snmp/mib_view.html +%%RUBY_DOCDIR%%/snmp/rubysnmp.html +%%RUBY_DOCDIR%%/snmp/sampleout.html +%%RUBY_DOCDIR%%/snmp/snmp_module.html +%%RUBY_DOCDIR%%/snmp/snmp_session.html +%%RUBY_DOCDIR%%/snmp/snmp_var.html +@dirrm %%RUBY_DOCDIR%%/snmp |