mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
cc8d8de5ca
problem with non-tar ruby gems) PR: ports/84524 Submitted by: Jonathan Weiss <jw@innerewut.de> (maintainer) Approved by: portmgr (clement) Obtained from: Ulrich Spoerlein
38 lines
950 B
Makefile
38 lines
950 B
Makefile
# $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}
|