summaryrefslogtreecommitdiff
path: root/lang/ruby-python/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-10 20:13:12 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-10 20:13:12 +0000
commit7d9b1f28c4a53d5cdc93e88bd0dfa2a0b9e752e1 (patch)
tree059d2e1d88fc2461b6aa82055f002e006b427d9e /lang/ruby-python/Makefile
parentUpdate to 0.3.3. This should fix a problem with Ruby 1.6. (diff)
Improve the configure script and add a knob to use another version of
Python than 1.5. (Currently this module only works with 1.5 though) Feedback status: submitted to the author
Notes
Notes: svn path=/head/; revision=32497
Diffstat (limited to 'lang/ruby-python/Makefile')
-rw-r--r--lang/ruby-python/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/lang/ruby-python/Makefile b/lang/ruby-python/Makefile
index ce10d0fefa95..dea3dc6c14d3 100644
--- a/lang/ruby-python/Makefile
+++ b/lang/ruby-python/Makefile
@@ -15,22 +15,20 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-PYTHON_VERSION= python1.5
+PYTHON_VERSION?= python1.5
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+CONFIGURE_ARGS= --with-python="${PYTHON_VERSION}" --with-pthread
INSTALL_TARGET= site-install
-post-configure:
- ${PERL} -i -pe 's/-lc\b/-lc_r/g' ${WRKSRC}/Makefile
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_EXAMPLESDIR}/python/Lib
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/python
+ ${CP} -R ${WRKSRC}/examples/ ${RUBY_EXAMPLESDIR}/python/
${MKDIR} ${RUBY_DOCDIR}/python/ja
- cd ${WRKSRC}/examples; find . -exec ${INSTALL_DATA} {} ${RUBY_EXAMPLESDIR}/python/{} \;
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
${RUBY_DOCDIR}/python/
${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \