blob: 69c86c9a8f900ba2d505d004689ad20a051cf931 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Created by: Alexander Novitsky <alecn2002@yandex.ru>
PORTNAME= gems
PORTVERSION= 3.3.14
CATEGORIES= devel ruby
MASTER_SITES= https://rubygems.org/rubygems/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= rubygems-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Package management framework for the Ruby language
LICENSE= MIT RUBY
LICENSE_COMB= dual
LICENSE_FILE_MIT= ${WRKSRC}/MIT.txt
LICENSE_FILE_RUBY= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= cpe tar:tgz
USE_RUBY= yes
GEMS_BASE_DIR= lib/ruby/gems/${RUBY_VER}
GEMS_ENV= GEM_HOME=${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}
NO_ARCH= yes
NO_BUILD= yes
RUBY_SETUP= setup.rb
RUBY_SETUP_OPTIONS= --destdir=${STAGEDIR} \
--no-format-executable \
--no-regenerate-binstubs \
--no-regenerate-plugins
CACHE_DIR= ${GEMS_BASE_DIR}/cache
DOC_DIR= ${GEMS_BASE_DIR}/doc
EXT_DIR= ${GEMS_BASE_DIR}/extensions
GEMS_DIR= ${GEMS_BASE_DIR}/gems
PLUGINS_DIR= ${GEMS_BASE_DIR}/plugins
SPEC_DIR= ${GEMS_BASE_DIR}/specifications
PLIST_SUB= CACHE_DIR="${CACHE_DIR}" \
DOC_DIR="${DOC_DIR}" \
EXT_DIR="${EXT_DIR}" \
GEMS_DIR="${GEMS_DIR}" \
PLUGINS_DIR="${PLUGINS_DIR}" \
SPEC_DIR="${SPEC_DIR}"
CPE_VENDOR= rubygems
CPE_PRODUCT= rubygems
OPTIONS_DEFINE= DOCS
DOCS_VARS_OFF= RUBY_SETUP_OPTIONS+="--no-ri --no-rdoc"
post-extract:
@${RM} -r ${WRKSRC}/bundler
@${RM} -r ${WRKSRC}/lib/rubygems/ssl_certs
@${FIND} ${WRKSRC} -name .document -delete
post-patch:
@${RM} ${WRKSRC}/lib/rubygems/commands/setup_command.rb.orig
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}/build_info
${MKDIR} ${STAGEDIR}${PREFIX}/${CACHE_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${DOC_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${EXT_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${GEMS_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGINS_DIR}
${MKDIR} ${STAGEDIR}${PREFIX}/${SPEC_DIR}
cd ${WRKSRC}/ && ${SETENV} ${GEMS_ENV} ${RUBY} ${RUBY_SETUP} ${RUBY_SETUP_OPTIONS}
# Find all RDOC and RI files
post-install-DOCS-on:
cd ${STAGEDIR}${PREFIX}/ && ${FIND} -ds ${DOC_DIR}/ ! -type d >> ${TMPPLIST}
.include <bsd.port.mk>
|