aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby16-shim-ruby18/Makefile
blob: b162f196524a31638569e626b84b31aefe3d53d1 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:    ruby16-shim-ruby18
# Date created:     5 May 2002
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   shim-ruby18
PORTVERSION=    1.8.1.p3
CATEGORIES= lang devel ruby
MASTER_SITES=   ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= shim
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   shim-ruby16_18-1.8.1-preview3
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org
COMMENT=    A set of Ruby modules to provide Ruby 1.8 functionalities

BROKEN=     Incomplete pkg-plist

USE_BZIP2=  yes
USE_OPENSSL=    yes

USE_RUBY=   yes

MAKE_ARGS=  RUBY=${RUBY}
#CONFIGURE_ARGS+= CONFIGURE_ARGS="-- --config-opt=--with-opt-dir=${LOCALBASE}"
WRKSRC=     ${WRKDIR}/shim/ruby16

RUBY_VER=   1.6

.include <bsd.port.pre.mk>

.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
IF_DEFAULT= ""
.else
IF_DEFAULT= "@comment "
.endif

INSTALLED_SCRIPTS=  ${PREFIX}/bin/erb \
            ${PREFIX}/bin/h2rb \
            ${PREFIX}/bin/rdoc

PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} \

pre-install:
    ${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
# Make make reinstall work
    ${RM} -f ${WRKSRC}/InstalledFiles

post-install:
.if ${RUBY_VER} == ${RUBY_DEFAULT_VER}
    for f in ${INSTALLED_SCRIPTS}; do \
        ${LN} -f $${f}${RUBY_SUFFIX} $${f}${RUBY_R}; \
    done
.endif


.include <bsd.port.post.mk>