diff options
author | knu <knu@FreeBSD.org> | 2000-09-07 22:39:47 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-09-07 22:39:47 +0800 |
commit | 96f951a2786bd495731135d2fc5fcb8749dee633 (patch) | |
tree | f2835ba67cd5363c99bf3d8b27d9d3019200754f /databases | |
parent | 4ea073e1c6c57446d3193f6385a0d5ce1cc3e63f (diff) | |
download | freebsd-ports-gnome-96f951a2786bd495731135d2fc5fcb8749dee633.tar.gz freebsd-ports-gnome-96f951a2786bd495731135d2fc5fcb8749dee633.tar.zst freebsd-ports-gnome-96f951a2786bd495731135d2fc5fcb8749dee633.zip |
Update with bsd.ruby.mk. :>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-mysql/Makefile | 27 | ||||
-rw-r--r-- | databases/ruby-mysql/pkg-plist | 10 |
2 files changed, 15 insertions, 22 deletions
diff --git a/databases/ruby-mysql/Makefile b/databases/ruby-mysql/Makefile index 71256a328f5d..ee1a88f85a0b 100644 --- a/databases/ruby-mysql/Makefile +++ b/databases/ruby-mysql/Makefile @@ -9,33 +9,26 @@ PORTNAME= mysql PORTVERSION= 2.3.0 CATEGORIES= databases ruby MASTER_SITES= http://www.tmtm.org/mysql/ruby/ -PKGNAMEPREFIX= ruby- +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-ruby-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org -BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby -INSTALL_TARGET= site-install - -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" +USE_RUBY= yes +USE_RUBY_EXTCONF= yes -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - -do-configure: - @cd ${WRKSRC}; \ - ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb +INSTALL_TARGET= site-install post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/ruby/mysql/ja - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/mysql/ - ${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/mysql/ja + ${MKDIR} ${RUBY_DOCDIR}/mysql/ja + ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/mysql/ + ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/mysql/ja .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> diff --git a/databases/ruby-mysql/pkg-plist b/databases/ruby-mysql/pkg-plist index b62f12b041a3..f343c8a6e3b4 100644 --- a/databases/ruby-mysql/pkg-plist +++ b/databases/ruby-mysql/pkg-plist @@ -1,5 +1,5 @@ -lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/mysql.so -share/doc/ruby/mysql/ja/README.jp -share/doc/ruby/mysql/README -@dirrm share/doc/ruby/mysql/ja -@dirrm share/doc/ruby/mysql +%%RUBY_SITEARCHLIBDIR%%/mysql.so +%%RUBY_DOCDIR%%/mysql/ja/README.jp +%%RUBY_DOCDIR%%/mysql/README +@dirrm %%RUBY_DOCDIR%%/mysql/ja +@dirrm %%RUBY_DOCDIR%%/mysql |