2000-08-12 16:09:41 -04:00
|
|
|
# New ports collection makefile for: Ruby/Python
|
|
|
|
# Date created: 7 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
2000-08-07 02:09:19 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= python
|
2000-09-10 13:44:12 -04:00
|
|
|
PORTVERSION= 0.3.3
|
2000-08-16 08:21:24 -04:00
|
|
|
CATEGORIES= lang ruby python
|
2000-08-07 02:09:19 -04:00
|
|
|
MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
|
2000-09-07 03:43:29 -04:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-09-10 03:57:05 -04:00
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
2000-08-08 12:08:31 -04:00
|
|
|
DIST_SUBDIR= ruby
|
2000-08-07 02:09:19 -04:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2000-09-10 08:40:42 -04:00
|
|
|
PYTHON_VERSION= python1.5
|
2000-08-07 02:09:19 -04:00
|
|
|
|
2000-09-07 03:43:29 -04:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2000-08-07 02:09:19 -04:00
|
|
|
|
2000-09-07 03:43:29 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
INSTALL_TARGET= site-install
|
2000-08-07 02:09:19 -04:00
|
|
|
|
2000-09-07 03:43:29 -04:00
|
|
|
post-configure:
|
|
|
|
${PERL} -i -pe 's/-lc\b/-lc_r/g' ${WRKSRC}/Makefile
|
2000-08-07 02:09:19 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-07 03:43:29 -04:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/python/Lib
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/python/ja
|
|
|
|
cd ${WRKSRC}/examples; find . -exec ${INSTALL_DATA} {} ${RUBY_EXAMPLESDIR}/python/{} \;
|
2000-08-07 02:09:19 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
|
2000-09-07 03:43:29 -04:00
|
|
|
${RUBY_DOCDIR}/python/
|
2000-08-07 02:09:19 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \
|
2000-09-07 03:43:29 -04:00
|
|
|
${RUBY_DOCDIR}/python/ja/
|
2000-08-07 02:09:19 -04:00
|
|
|
.endif
|
|
|
|
|
2000-09-07 03:43:29 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
|
|
|
.include <bsd.port.post.mk>
|