freebsd-ports/devel/ruby-gems/Makefile.common
Pav Lucistnik 1869154cc9 - Add a common infrastructure for porting rubygems. It can be used by
including this file between bsd.port.pre.mk and bsd.port.post.mk
  in similar way PEAR modules are ported now.

PR:		ports/82397
Submitted by:	Jonathan Weiss <jw@innerewut.de>
2005-07-20 13:49:01 +00:00

37 lines
952 B
Text

# $FreeBSD$
# Ruby gem module common settings
BUILD_DEPENDS+= ${RUBYGEMBIN}:${PORTSDIR}/devel/ruby-gems
RUN_DEPENDS+= ${BUILD_DEPENDS}
PKGNAMEPREFIX= rubygem-
EXTRACT_SUFX= .gem
NO_EXTRACT= YES
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}