File: fix-require.diff

package info (click to toggle)
ruby-taglib2 0.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 164 kB
  • sloc: ansic: 288; ruby: 65; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Author: Vincent Carmona <vinc4mai@gmail.com>
Description: Fix require bug
 * "require 'taglib2'" was loading taglib2.so instead of taglib2.rb
--- a/extconf.rb
+++ b/extconf.rb
@@ -28,4 +28,4 @@
 if ARGV.include?("--compat")
 	($INSTALLFILES ||= []) << ["compat/taglib.rb", "$(RUBYLIBDIR)", 'compat']
 end
-create_makefile("taglib2")
+create_makefile("taglib2_ext")
--- a/lib/taglib2.rb
+++ b/lib/taglib2.rb
@@ -19,7 +19,7 @@
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 =end
 
-require "taglib2.so"
+require "taglib2_ext.so"
 
 #:main: TagLib::File
 module TagLib
--- a/taglib2.c
+++ b/taglib2.c
@@ -372,7 +372,7 @@
 }
 
 void
-Init_taglib2()
+Init_taglib2_ext()
 {
 /*
 ruby-taglib2 is a Ruby interface to TagLib, the audio meta-data library.