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/Makefile | |
parent | 4ea073e1c6c57446d3193f6385a0d5ce1cc3e63f (diff) | |
download | FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.zip FreeBSD-ports-96f951a2786bd495731135d2fc5fcb8749dee633.tar.gz |
Update with bsd.ruby.mk. :>
Diffstat (limited to 'net/ruby-snmp/Makefile')
-rw-r--r-- | net/ruby-snmp/Makefile | 25 |
1 files changed, 9 insertions, 16 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> |