Lines 44-50
Link Here
|
44 |
# build. |
44 |
# build. |
45 |
# RUBY_SETUP - Set to the alternative name of setup.rb |
45 |
# RUBY_SETUP - Set to the alternative name of setup.rb |
46 |
# (default: setup.rb). |
46 |
# (default: setup.rb). |
47 |
# USE_RUBY_RDTOOL - Says that the port uses rdtool to generate documents. |
|
|
48 |
# USE_RUBY_RDOC - Says that the port uses rdoc to generate documents. |
47 |
# USE_RUBY_RDOC - Says that the port uses rdoc to generate documents. |
49 |
# RUBY_REQUIRE - Set to a Ruby expression to evaluate before building |
48 |
# RUBY_REQUIRE - Set to a Ruby expression to evaluate before building |
50 |
# the port. The constant "Ruby" is set to the integer |
49 |
# the port. The constant "Ruby" is set to the integer |
Lines 52-61
Link Here
|
52 |
# expression will be set to RUBY_PROVIDED, which is |
51 |
# expression will be set to RUBY_PROVIDED, which is |
53 |
# left undefined if the result is nil, false or a |
52 |
# left undefined if the result is nil, false or a |
54 |
# zero-length string. Implies USE_RUBY. |
53 |
# zero-length string. Implies USE_RUBY. |
55 |
# RUBY_RD_FILES - Specify the RD files which you want to generate HTML |
|
|
56 |
# documents from. If this is defined and not empty, |
57 |
# USE_RUBY_RDTOOL is implied and RUBY_RD_HTML_FILES is |
58 |
# defined. |
59 |
# USE_RUBYGEMS - Do not use this -- instead USES=gem |
54 |
# USE_RUBYGEMS - Do not use this -- instead USES=gem |
60 |
# |
55 |
# |
61 |
# [variables that each port should not (re)define] |
56 |
# [variables that each port should not (re)define] |
Lines 95-112
Link Here
|
95 |
# |
90 |
# |
96 |
# RUBY_MODNAME - Set to the module name (default: ${PORTNAME}). |
91 |
# RUBY_MODNAME - Set to the module name (default: ${PORTNAME}). |
97 |
# |
92 |
# |
98 |
# RUBY_RD2 - Full path of rd2 executable. |
|
|
99 |
# RUBY_RDOC - Full path of rdoc executable. |
93 |
# RUBY_RDOC - Full path of rdoc executable. |
100 |
# |
94 |
# |
101 |
# RUBY_BASE_PORT - Port path of base ruby without PORTSDIR, without |
95 |
# RUBY_BASE_PORT - Port path of base ruby without PORTSDIR, without |
102 |
# suffix except version. |
96 |
# suffix except version. |
103 |
# RUBY_PORT - Port path of ruby without PORTSDIR. |
97 |
# RUBY_PORT - Port path of ruby without PORTSDIR. |
104 |
# RUBY_RDTOOL_PORT - Port path of rdtool without PORTSDIR. |
|
|
105 |
# RUBY_RDOC_PORT - Port path of rdoc without PORTSDIR. |
98 |
# RUBY_RDOC_PORT - Port path of rdoc without PORTSDIR. |
106 |
# |
99 |
# |
107 |
# DEPEND_LIBRUBY - LIB_DEPENDS entry for libruby. |
100 |
# DEPEND_LIBRUBY - LIB_DEPENDS entry for libruby. |
108 |
# DEPEND_RUBY - BUILD_DEPENDS/RUN_DEPENDS entry for ruby. |
101 |
# DEPEND_RUBY - BUILD_DEPENDS/RUN_DEPENDS entry for ruby. |
109 |
# DEPEND_RUBY_RDTOOL - BUILD_DEPENDS entry for rdtool. |
|
|
110 |
# DEPEND_RUBY_RDOC - BUILD_DEPENDS entry for rdoc. |
102 |
# DEPEND_RUBY_RDOC - BUILD_DEPENDS entry for rdoc. |
111 |
# |
103 |
# |
112 |
# RUBY_LIBDIR - Installation path for architecture independent |
104 |
# RUBY_LIBDIR - Installation path for architecture independent |
Lines 278-295
Link Here
|
278 |
RUBY_MODNAME?= ${PORTNAME} |
270 |
RUBY_MODNAME?= ${PORTNAME} |
279 |
|
271 |
|
280 |
# Commands |
272 |
# Commands |
281 |
RUBY_RD2?= ${LOCALBASE}/bin/rd2 |
|
|
282 |
RUBY_RDOC?= ${LOCALBASE}/bin/rdoc${RUBY_VER:S/.//} |
273 |
RUBY_RDOC?= ${LOCALBASE}/bin/rdoc${RUBY_VER:S/.//} |
283 |
|
274 |
|
284 |
# Ports |
275 |
# Ports |
285 |
RUBY_BASE_PORT?= lang/ruby${RUBY_VER:S/.//} |
276 |
RUBY_BASE_PORT?= lang/ruby${RUBY_VER:S/.//} |
286 |
RUBY_PORT?= ${RUBY_BASE_PORT} |
277 |
RUBY_PORT?= ${RUBY_BASE_PORT} |
287 |
RUBY_RDTOOL_PORT?= textproc/ruby-rdtool |
|
|
288 |
|
278 |
|
289 |
# Depends |
279 |
# Depends |
290 |
DEPEND_LIBRUBY?= lib${RUBY_NAME}.so.${RUBY_SHLIBVER}:${RUBY_PORT} |
280 |
DEPEND_LIBRUBY?= lib${RUBY_NAME}.so.${RUBY_SHLIBVER}:${RUBY_PORT} |
291 |
DEPEND_RUBY?= ${RUBY}:${RUBY_PORT} |
281 |
DEPEND_RUBY?= ${RUBY}:${RUBY_PORT} |
292 |
DEPEND_RUBY_RDTOOL?= ${RUBY_RD2}:${RUBY_RDTOOL_PORT} |
|
|
293 |
|
282 |
|
294 |
# Directories |
283 |
# Directories |
295 |
RUBY_LIBDIR?= ${_RUBY_SYSLIBDIR}/ruby/${RUBY_VER} |
284 |
RUBY_LIBDIR?= ${_RUBY_SYSLIBDIR}/ruby/${RUBY_VER} |
Lines 427-471
Link Here
|
427 |
.endif |
416 |
.endif |
428 |
.endif |
417 |
.endif |
429 |
|
418 |
|
430 |
# documents |
|
|
431 |
|
432 |
RUBY_NO_RD_HTML= yes |
433 |
|
434 |
.if defined(RUBY_RD_HTML) |
435 |
.undef RUBY_NO_RD_HTML |
436 |
.endif |
437 |
|
438 |
.if defined(NOPORTDOCS) |
439 |
RUBY_NO_RD_HTML= yes |
440 |
.endif |
441 |
|
442 |
.if defined(RUBY_RD_FILES) && !defined(RUBY_NO_RD_HTML) |
443 |
USE_RUBY_RDTOOL= yes |
444 |
|
445 |
RUBY_RD_HTML_FILES= ${RUBY_RD_FILES:S/.rb$//:S/.rd././:S/.rd$//:S/$/.html/} |
446 |
|
447 |
PLIST_SUB+= RUBY_RD_HTML_FILES="" |
448 |
|
449 |
.if !empty(RUBY_RD_FILES) |
450 |
_USES_install+= 290:ruby-rd-build |
451 |
ruby-rd-build: |
452 |
@${ECHO_MSG} "===> Generating HTML documents from RD documents" |
453 |
@cd ${WRKSRC}; for rd in ${RUBY_RD_FILES}; do \ |
454 |
html=$$(echo $$rd | ${SED} 's/\.rb$$//;s/\.rd\././;s/\.rd$$//').html; \ |
455 |
${ECHO_MSG} "${RUBY_RD2} $$rd > $$html"; \ |
456 |
${RUBY_RD2} $$rd > $$html; \ |
457 |
done |
458 |
.endif |
459 |
|
460 |
.else |
461 |
RUBY_RD_HTML_FILES= # empty |
462 |
|
463 |
PLIST_SUB+= RUBY_RD_HTML_FILES="@comment " |
464 |
.endif |
465 |
|
466 |
.if !defined(NOPORTDOCS) && defined(USE_RUBY_RDTOOL) |
467 |
BUILD_DEPENDS+= ${DEPEND_RUBY_RDTOOL} |
468 |
.endif |
469 |
|
470 |
.endif # _INVALID_RUBY_VER |
419 |
.endif # _INVALID_RUBY_VER |
471 |
.endif |
420 |
.endif |