mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Support stage
This commit is contained in:
parent
a55fcff549
commit
fe748380d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350507
@ -13,7 +13,8 @@ DIST_SUBDIR= ruby
|
||||
MAINTAINER= ruby@FreeBSD.org
|
||||
COMMENT= A Ruby library to create, verify, and manipulate passwords
|
||||
|
||||
LIB_DEPENDS= crack:${PORTSDIR}/security/cracklib
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
LIB_DEPENDS= libcrack.so:${PORTSDIR}/security/cracklib
|
||||
RUN_DEPENDS= rubygem-ruby-termios>=0:${PORTSDIR}/comms/rubygem-ruby-termios
|
||||
|
||||
USE_RUBY= yes
|
||||
@ -23,25 +24,25 @@ SADIR= lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
|
||||
|
||||
CONFIGURE_ARGS= --with-crack-dict="${LOCALBASE}/libdata/cracklib/pw_dict.pwd"
|
||||
INSTALL_TARGET= site-install
|
||||
|
||||
MAN1= ruby-pwgen.1
|
||||
MANCOMPRESSED= no
|
||||
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
|
||||
INSTALL_DATA="${INSTALL_DATA}"
|
||||
|
||||
DOCS_EN= CHANGES README
|
||||
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
|
||||
DOCSDIR= ${RUBY_MODDOCDIR}
|
||||
PORTEXAMPLES= *
|
||||
PORTDOCS= *
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E -e 's,([^[:alpha:]]+)crack.h,\1packer.h,g' \
|
||||
${WRKSRC}/rbcrack.c ${WRKSRC}/extconf.rb
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/example/pwgen ${PREFIX}/bin/ruby-pwgen
|
||||
${INSTALL_MAN} ${WRKSRC}/pwgen.1 ${MANPREFIX}/man/man1/ruby-pwgen.1
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
||||
${MKDIR} ${RUBY_MODDOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example/*.rb ${RUBY_MODEXAMPLESDIR}/
|
||||
${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}/
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/example/pwgen ${STAGEDIR}${PREFIX}/bin/ruby-pwgen
|
||||
${INSTALL_MAN} ${WRKSRC}/pwgen.1 ${STAGEDIR}${MANPREFIX}/man/man1/ruby-pwgen.1
|
||||
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
||||
@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example/*.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
|
||||
${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${STAGEDIR}${RUBY_MODDOCDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,10 +1,4 @@
|
||||
bin/ruby-pwgen
|
||||
man/man1/ruby-pwgen.1.gz
|
||||
%%RUBY_SITEARCHLIBDIR%%/crack.so
|
||||
%%RUBY_SITELIBDIR%%/password.rb
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
|
||||
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/example.rb
|
||||
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
|
||||
%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user