[40229] trunk/dports/ruby/rb-password
jmr at macports.org
jmr at macports.org
Fri Sep 26 11:16:31 PDT 2008
Revision: 40229
http://trac.macports.org/changeset/40229
Author: jmr at macports.org
Date: 2008-09-26 11:16:31 -0700 (Fri, 26 Sep 2008)
Log Message:
-----------
rb-password: de-lint
Modified Paths:
--------------
trunk/dports/ruby/rb-password/Portfile
Added Paths:
-----------
trunk/dports/ruby/rb-password/files/patch-tc_password.rb.diff
Removed Paths:
-------------
trunk/dports/ruby/rb-password/files/patch-tc_password.rb
Modified: trunk/dports/ruby/rb-password/Portfile
===================================================================
--- trunk/dports/ruby/rb-password/Portfile 2008-09-26 17:23:04 UTC (rev 40228)
+++ trunk/dports/ruby/rb-password/Portfile 2008-09-26 18:16:31 UTC (rev 40229)
@@ -1,4 +1,5 @@
# $Id$
+
PortSystem 1.0
PortGroup ruby 1.0
@@ -12,7 +13,7 @@
commonly used for checking password strength. The \
target audience for this library is system \
administrators who need to write Ruby programs that \
- prompt for, generate, verify and encrypt passwords.
+ prompt for, generate, verify and encrypt passwords.
categories-append sysutils
homepage http://www.caliban.org/ruby/
master_sites http://www.caliban.org/files/ruby/
@@ -22,7 +23,7 @@
depends_lib-append lib:libcrack.2:cracklib \
port:rb-termios
-patchfiles patch-tc_password.rb
+patchfiles patch-tc_password.rb.diff
post-patch {
cd ${worksrcpath}
reinplace "s|^#!.*ruby|#!${ruby.bin}|" example/example.rb example/pwgen
@@ -36,4 +37,3 @@
test.run yes
test.cmd ${ruby.bin} test/tc_password.rb
-
Deleted: trunk/dports/ruby/rb-password/files/patch-tc_password.rb
===================================================================
--- trunk/dports/ruby/rb-password/files/patch-tc_password.rb 2008-09-26 17:23:04 UTC (rev 40228)
+++ trunk/dports/ruby/rb-password/files/patch-tc_password.rb 2008-09-26 18:16:31 UTC (rev 40229)
@@ -1,14 +0,0 @@
---- test/tc_password.rb.orig Wed Apr 21 12:46:31 2004
-+++ test/tc_password.rb Wed Apr 21 12:52:11 2004
-@@ -77,7 +77,11 @@
- def test_crypt
- pw = Password.random( LENGTH )
- assert_nothing_raised { pw.crypt( Password::DES ) }
-+ if `uname`.chomp == "Linux"
- assert_nothing_raised { pw.crypt( Password::MD5 ) }
-+ else
-+ assert_raises( Password::CryptError ) { pw.crypt( Password::MD5 ) }
-+ end
- assert_raises( Password::CryptError ) { pw.crypt( Password::DES, '@*' ) }
- end
-
Copied: trunk/dports/ruby/rb-password/files/patch-tc_password.rb.diff (from rev 40228, trunk/dports/ruby/rb-password/files/patch-tc_password.rb)
===================================================================
--- trunk/dports/ruby/rb-password/files/patch-tc_password.rb.diff (rev 0)
+++ trunk/dports/ruby/rb-password/files/patch-tc_password.rb.diff 2008-09-26 18:16:31 UTC (rev 40229)
@@ -0,0 +1,14 @@
+--- test/tc_password.rb.orig Wed Apr 21 12:46:31 2004
++++ test/tc_password.rb Wed Apr 21 12:52:11 2004
+@@ -77,7 +77,11 @@
+ def test_crypt
+ pw = Password.random( LENGTH )
+ assert_nothing_raised { pw.crypt( Password::DES ) }
++ if `uname`.chomp == "Linux"
+ assert_nothing_raised { pw.crypt( Password::MD5 ) }
++ else
++ assert_raises( Password::CryptError ) { pw.crypt( Password::MD5 ) }
++ end
+ assert_raises( Password::CryptError ) { pw.crypt( Password::DES, '@*' ) }
+ end
+
Property changes on: trunk/dports/ruby/rb-password/files/patch-tc_password.rb.diff
___________________________________________________________________
Added: svn:mergeinfo
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080926/07f0926f/attachment.html
More information about the macports-changes
mailing list