aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby-python/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-09-07 15:43:29 +0800
committerknu <knu@FreeBSD.org>2000-09-07 15:43:29 +0800
commit57a36d42b96e563526258513aa4391b9faf810ba (patch)
tree95d9bc09981e7375d4d27b9e74fefa496cf697a6 /lang/ruby-python/Makefile
parent61cb547176d55e0adaf9b1ae9c4d8a9e9bdc1bd1 (diff)
downloadfreebsd-ports-graphics-57a36d42b96e563526258513aa4391b9faf810ba.tar.gz
freebsd-ports-graphics-57a36d42b96e563526258513aa4391b9faf810ba.tar.zst
freebsd-ports-graphics-57a36d42b96e563526258513aa4391b9faf810ba.zip
Update with bsd.ruby.mk.
Install library files under the standard directory. (${RUBY_SITELIBDIR}, ${RUBY_SITEARCHLIBDIR})
Diffstat (limited to 'lang/ruby-python/Makefile')
-rw-r--r--lang/ruby-python/Makefile36
1 files changed, 17 insertions, 19 deletions
diff --git a/lang/ruby-python/Makefile b/lang/ruby-python/Makefile
index 0c05374cb97..fe38d9675df 100644
--- a/lang/ruby-python/Makefile
+++ b/lang/ruby-python/Makefile
@@ -9,37 +9,35 @@ PORTNAME= python
PORTVERSION= 0.3.2
CATEGORIES= lang ruby python
MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- python:${PORTSDIR}/lang/python
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
- python:${PORTSDIR}/lang/python
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python
+RUN_DEPENDS= python:${PORTSDIR}/lang/python
-WRKSRC= ${WRKDIR}/${PORTNAME}
-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}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+INSTALL_TARGET= site-install
-do-configure:
- @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb; \
- ${PERL} -i -pe 's/-lc\b/-lc_r/g' Makefile
+post-configure:
+ ${PERL} -i -pe 's/-lc\b/-lc_r/g' ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/examples/ruby/python/Lib
- ${MKDIR} ${PREFIX}/share/doc/ruby/python/ja
- cd ${WRKSRC}/examples; find . -exec ${INSTALL_DATA} {} ${PREFIX}/share/examples/ruby/python/{} \;
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/python/Lib
+ ${MKDIR} ${RUBY_DOCDIR}/python/ja
+ cd ${WRKSRC}/examples; find . -exec ${INSTALL_DATA} {} ${RUBY_EXAMPLESDIR}/python/{} \;
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
- ${PREFIX}/share/doc/ruby/python/
+ ${RUBY_DOCDIR}/python/
${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \
- ${PREFIX}/share/doc/ruby/python/ja/
+ ${RUBY_DOCDIR}/python/ja/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>