aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby-python/Makefile
blob: dea3dc6c14d38339c2f174678f65f5f3a00e080d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:    Ruby/Python
# Date created:     7 Aug 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   python
PORTVERSION=    0.3.3
CATEGORIES= lang ruby python
MASTER_SITES=   http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

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-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_EXAMPLESDIR}/python
    ${CP} -R ${WRKSRC}/examples/ ${RUBY_EXAMPLESDIR}/python/
    ${MKDIR} ${RUBY_DOCDIR}/python/ja
    ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
        ${RUBY_DOCDIR}/python/
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \
        ${RUBY_DOCDIR}/python/ja/
.endif

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
.include <bsd.port.post.mk>