aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-gems/Makefile.common
blob: 484b56905f5ebcbb9cf331bc1de547e7f581acc3 (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
# $FreeBSD$
# Ruby gem module common settings


BUILD_DEPENDS+= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems
RUN_DEPENDS+=   ${BUILD_DEPENDS}

PKGNAMEPREFIX=  rubygem-
EXTRACT_SUFX=   .gem
EXTRACT_ONLY=
DIST_SUBDIR=    rubygem

USE_REINPLACE=  yes

NO_BUILD=   yes

REV=        1.8
GEMS_BASE_DIR=  lib/ruby/gems/${REV}
GEMS_DIR=   ${GEMS_BASE_DIR}/gems
DOC_DIR=    ${GEMS_BASE_DIR}/doc
CACHE_DIR=  ${GEMS_BASE_DIR}/cache
SPEC_DIR=   ${GEMS_BASE_DIR}/specifications

PLIST_SUB+= PORTVERSION="${PORTVERSION}" \
        REV="${REV}" \
        GEMS_BASE_DIR="lib/ruby/gems/${REV}" \
        GEMS_DIR="${GEMS_BASE_DIR}/gems" \
        DOC_DIR="${GEMS_BASE_DIR}/doc" \
        CACHE_DIR="${GEMS_BASE_DIR}/cache" \
        SPEC_DIR="${GEMS_BASE_DIR}/specifications" \
        PORT="${PORTNAME}-${PORTVERSION}" \
        EXTRACT_SUFX="${EXTRACT_SUFX}"

RUBYGEMBIN= ${LOCALBASE}/bin/gem

do-install:
    ${RUBYGEMBIN} install --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}