2000-08-12 20:09:41 +00:00
|
|
|
# New ports collection makefile for: Ruby/Python
|
|
|
|
# Date created: 7 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
2000-08-07 06:09:19 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= python
|
|
|
|
PORTVERSION= 0.3.2
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= lang ruby python
|
2000-08-07 06:09:19 +00:00
|
|
|
MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
|
|
|
|
PKGNAMEPREFIX= ruby-
|
|
|
|
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
|
2000-08-08 16:08:31 +00:00
|
|
|
DIST_SUBDIR= ruby
|
2000-08-07 06:09:19 +00:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
|
|
|
python:${PORTSDIR}/lang/python
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \
|
|
|
|
python:${PORTSDIR}/lang/python
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
|
2000-08-12 20:09:41 +00:00
|
|
|
RUBY?= ${LOCALBASE}/bin/ruby
|
|
|
|
RUBY_VER?= 1.4
|
|
|
|
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
2000-08-07 06:09:19 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb; \
|
|
|
|
${PERL} -i -pe 's/-lc\b/-lc_r/g' Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-08-07 12:50:16 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/ruby/python/Lib
|
2000-08-07 06:09:19 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/python/ja
|
2000-08-07 12:50:16 +00:00
|
|
|
cd ${WRKSRC}/examples; find . -exec ${INSTALL_DATA} {} ${PREFIX}/share/examples/ruby/python/{} \;
|
2000-08-07 06:09:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
|
|
|
|
${PREFIX}/share/doc/ruby/python/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \
|
|
|
|
${PREFIX}/share/doc/ruby/python/ja/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|