source: trunk/dports/ruby/rb-password/Portfile

Last change on this file was 105124, checked in by jmr@…, 4 years ago

rb-password: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 105124 2013-04-11 03:41:11Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               ruby 1.0
5
6ruby.setup              {password ruby-password} 0.5.3 extconf.rb {README doc example}
7revision                0
8maintainers             nomaintainer
9description             password manipulation methods for Ruby
10long_description        Ruby/Password comprises a set of useful methods for \
11                                        creating, verifying and manipulating passwords. It \
12                                        includes an interface to CrackLib, a library \
13                                        commonly used for checking password strength.  The \
14                                        target audience for this library is system \
15                                        administrators who need to write Ruby programs that \
16                                        prompt for, generate, verify and encrypt passwords.
17categories-append       sysutils
18license                 GPL-2+
19homepage                http://www.caliban.org/ruby/
20master_sites    http://www.caliban.org/files/ruby/
21checksums               md5 b4304bab359bdc95bc7f0938b0db4bed
22platforms               darwin
23
24depends_lib-append              port:cracklib \
25                                port:rb-termios
26
27patchfiles              patch-tc_password.rb.diff
28post-patch {
29        reinplace "s|^#!.*ruby|#!${ruby.bin}|" ${worksrcpath}/example/example.rb \
30                        ${worksrcpath}/example/pwgen
31        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/extconf.rb
32        reinplace "s|pw_dict|cracklib/&|g" ${worksrcpath}/extconf.rb
33}
34
35configure.args-append --with-crack-dict=${prefix}/share/cracklib/pw_dict.pwd
36
37post-build {
38        system "cd ${worksrcpath} && ${ruby.rdoc} -x CVS rbcrack.c"
39}
40
41test.run                yes
42test.cmd                ${ruby.bin} test/tc_password.rb
Note: See TracBrowser for help on using the repository browser.