mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Update to 0.3.1.
This commit is contained in:
parent
c3fcfe012d
commit
cf130ad6de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65477
3 changed files with 2 additions and 29 deletions
|
@ -6,8 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= freedb
|
PORTNAME= freedb
|
||||||
PORTVERSION= 0.3
|
PORTVERSION= 0.3.1
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= audio net ruby
|
CATEGORIES= audio net ruby
|
||||||
MASTER_SITES= http://davedd.free.fr/%SUBDIR%/
|
MASTER_SITES= http://davedd.free.fr/%SUBDIR%/
|
||||||
MASTER_SITE_SUBDIR= ruby-${PORTNAME}
|
MASTER_SITE_SUBDIR= ruby-${PORTNAME}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
MD5 (ruby/ruby-freedb-0.3.tar.gz) = 56c7c87d2d7d1cd27cc4f57e42fcffb6
|
MD5 (ruby/ruby-freedb-0.3.1.tar.gz) = 6c1c67dfbc9403faa7b44f097c2e307f
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
--- lib/freedb_misc.rb.orig Sun Apr 7 22:40:20 2002
|
|
||||||
+++ lib/freedb_misc.rb Fri Aug 30 19:58:47 2002
|
|
||||||
@@ -4,12 +4,12 @@
|
|
||||||
class Freedb
|
|
||||||
VERSION = "0.3"
|
|
||||||
PROTO_LEVEL = 1
|
|
||||||
- attr_reader :results, :artist, :title, :tracks, :discid
|
|
||||||
+ attr_reader :results, :genre, :artist, :title, :tracks, :discid
|
|
||||||
|
|
||||||
def initialize(param = "/dev/cdrom", is_discid = false)
|
|
||||||
@discid = ( is_discid ? param : get_cdrom(param) )
|
|
||||||
@tracks = Array.new()
|
|
||||||
- @hello_str="#{ENV["USER"]} #{`hostname`.strip} ruby-freedb #{VERSION}"
|
|
||||||
+ @hello_str="#{ENV['USER']} #{`hostname`.strip} ruby-freedb #{VERSION}"
|
|
||||||
end
|
|
||||||
|
|
||||||
def fetch_net(server = "freedb.org", port = 8880)
|
|
||||||
@@ -29,6 +29,8 @@
|
|
||||||
lines = getmultiline(@handler)
|
|
||||||
lines.each { |line|
|
|
||||||
case line
|
|
||||||
+ when /^210 (\S+)/
|
|
||||||
+ @genre = $1
|
|
||||||
when /^DTITLE=/
|
|
||||||
md = /DTITLE=(.*) \/ (.*)/.match(line)
|
|
||||||
if md.nil? #the DTITLE field is wrong.Should we throw an exception?
|
|
Loading…
Add table
Reference in a new issue