svn commit: r350507 - head/security/ruby-password
Baptiste Daroussin
bapt at FreeBSD.org
Mon Apr 7 15:47:29 UTC 2014
Author: bapt
Date: Mon Apr 7 15:47:28 2014
New Revision: 350507
URL: http://svnweb.freebsd.org/changeset/ports/350507
QAT: https://qat.redports.org/buildarchive/r350507/
Log:
Support stage
Modified:
head/security/ruby-password/Makefile
head/security/ruby-password/pkg-plist
Modified: head/security/ruby-password/Makefile
==============================================================================
--- head/security/ruby-password/Makefile Mon Apr 7 15:43:21 2014 (r350506)
+++ head/security/ruby-password/Makefile Mon Apr 7 15:47:28 2014 (r350507)
@@ -13,7 +13,8 @@ DIST_SUBDIR= ruby
MAINTAINER= ruby at 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}/${
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>
Modified: head/security/ruby-password/pkg-plist
==============================================================================
--- head/security/ruby-password/pkg-plist Mon Apr 7 15:43:21 2014 (r350506)
+++ head/security/ruby-password/pkg-plist Mon Apr 7 15:47:28 2014 (r350507)
@@ -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%%
More information about the svn-ports-all
mailing list