freebsd-ports/devel/ruby-gems/Makefile.common
Cheng-Lung Sung 1c1e7a2364 - default not to write to source_cache file
- add --no-update-sources in Makefile.common (thanks to Alexander Logvinov)
- files/patch-lib-rubygems-source_info_cache.rb
  fix when try_file() write 4 bytes into source_cache even DEFAULT_UPDATE_SOURCES is false
- files/patch-lib-rubygems-installer.rb
  - do not write to .require_paths file
  - currently we don't need it
- link bin/gem18 to bin/gem
- bump PORTERVISION

PR:		ports/119051
Submitted by:	clsung
Approved by:	maintainer (Jonathan Weiss)
2008-01-07 03:51:31 +00:00

53 lines
1.4 KiB
Text

# $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
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
GEM_NAME?= ${PORTNAME}-${PORTVERSION}
GEM_LIB_DIR= ${GEMS_DIR}/${GEM_NAME}
GEM_DOC_DIR= ${DOC_DIR}/${GEM_NAME}
GEM_SPEC= ${SPEC_DIR}/${GEM_NAME}.gemspec
GEM_CACHE= ${CACHE_DIR}/${GEM_NAME}.gem
PLIST_SUB+= PORTVERSION="${PORTVERSION}" \
REV="${REV}" \
GEMS_BASE_DIR="lib/ruby/gems/${REV}" \
GEMS_DIR="${GEMS_DIR}" \
DOC_DIR="${DOC_DIR}" \
CACHE_DIR="${CACHE_DIR}" \
SPEC_DIR="${SPEC_DIR}" \
PORT="${PORTNAME}-${PORTVERSION}" \
GEM_NAME="${GEM_NAME}" \
GEM_LIB_DIR="${GEM_LIB_DIR}" \
GEM_DOC_DIR="${GEM_DOC_DIR}" \
GEM_SPEC="${GEM_SPEC}" \
GEM_CACHE="${GEM_CACHE}" \
EXTRACT_SUFX="${EXTRACT_SUFX}"
RUBYGEMBIN= ${LOCALBASE}/bin/gem18
.if defined(DISTFILES)
GEMFILES= ${DISTFILES:C/:[^:]+$//}
.else
GEMFILES= ${DISTNAME}${EXTRACT_SUFX}
.endif
do-install:
.for _D in ${GEMFILES}
${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${REV} ${DISTDIR}/${DIST_SUBDIR}/${_D} -- --build-args ${CONFIGURE_ARGS}
.endfor