rbcdio 0.01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/AUTHORS +1 -0
- data/COPYING +340 -0
- data/ChangeLog +315 -0
- data/INSTALL +236 -0
- data/Makefile.am +163 -0
- data/Makefile.in +557 -0
- data/NEWS +5 -0
- data/README +75 -0
- data/Rakefile +234 -0
- data/THANKS +3 -0
- data/VERSION +1 -0
- data/VERSION.in +1 -0
- data/config.guess +1473 -0
- data/config.sub +1576 -0
- data/configure +4802 -0
- data/configure.ac +158 -0
- data/data/copying.iso +0 -0
- data/data/isofs-m1.bin +0 -0
- data/data/isofs-m1.cue +3 -0
- data/doc/created.rid +1 -0
- data/doc/fr_class_index.html +42 -0
- data/doc/fr_file_index.html +40 -0
- data/doc/fr_method_index.html +133 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/example/COPYING +340 -0
- data/example/README +47 -0
- data/example/audio.rb +186 -0
- data/example/cd-read.rb +167 -0
- data/example/copying +340 -0
- data/example/device.rb +91 -0
- data/example/drivers.rb +63 -0
- data/example/drives.rb +63 -0
- data/example/eject.rb +69 -0
- data/example/iso1.rb +89 -0
- data/example/iso2.rb +106 -0
- data/example/iso3.rb +111 -0
- data/example/tracks.rb +83 -0
- data/ext/cdio/Makefile +139 -0
- data/ext/cdio/extconf.rb +9 -0
- data/ext/cdio/rubycdio_wrap.c +3410 -0
- data/ext/iso9660/Makefile +139 -0
- data/ext/iso9660/extconf.rb +10 -0
- data/ext/iso9660/rubyiso9660_wrap.c +3005 -0
- data/install-sh +323 -0
- data/lib/Makefile +7 -0
- data/lib/cdio.rb +1000 -0
- data/lib/iso9660.rb +566 -0
- data/missing +360 -0
- data/rubycdio.m4 +14 -0
- data/swig/Makefile +7 -0
- data/swig/audio.swg +63 -0
- data/swig/compat.swg +104 -0
- data/swig/device.swg +513 -0
- data/swig/device_const.swg +144 -0
- data/swig/disc.swg +96 -0
- data/swig/read.swg +164 -0
- data/swig/rubycdio.swg +86 -0
- data/swig/rubyiso9660.swg +827 -0
- data/swig/track.swg +206 -0
- data/swig/types.swg +65 -0
- data/test/Makefile +7 -0
- data/test/Rakefile +8 -0
- data/test/cdda.bin +0 -0
- data/test/cdda.cue +7 -0
- data/test/cdda.toc +14 -0
- data/test/cdiotest.rb +228 -0
- data/test/isocopy.rb +394 -0
- data/test/isotest.rb +187 -0
- metadata +116 -0
data/Makefile.in
ADDED
@@ -0,0 +1,557 @@
|
|
1
|
+
# Makefile.in generated by automake 1.9.6 from Makefile.am.
|
2
|
+
# @configure_input@
|
3
|
+
|
4
|
+
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
5
|
+
# 2003, 2004, 2005 Free Software Foundation, Inc.
|
6
|
+
# This Makefile.in is free software; the Free Software Foundation
|
7
|
+
# gives unlimited permission to copy and/or distribute it,
|
8
|
+
# with or without modifications, as long as this notice is preserved.
|
9
|
+
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
12
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
13
|
+
# PARTICULAR PURPOSE.
|
14
|
+
|
15
|
+
@SET_MAKE@
|
16
|
+
|
17
|
+
# $Id: Makefile.am,v 1.20 2006/12/09 16:00:02 rocky Exp $
|
18
|
+
#
|
19
|
+
# Copyright (C) 2006 Rocky Bernstein <rocky@panix.com>
|
20
|
+
#
|
21
|
+
# This program is free software; you can redistribute it and/or modify
|
22
|
+
# it under the terms of the GNU General Public License as published by
|
23
|
+
# the Free Software Foundation; either version 2 of the License, or
|
24
|
+
# (at your option) any later version.
|
25
|
+
#
|
26
|
+
# This program is distributed in the hope that it will be useful,
|
27
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
28
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
29
|
+
# GNU General Public License for more details.
|
30
|
+
#
|
31
|
+
# You should have received a copy of the GNU General Public License
|
32
|
+
# along with this program; if not, write to the Free Software
|
33
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
34
|
+
# 02110-1301 USA.
|
35
|
+
#
|
36
|
+
srcdir = @srcdir@
|
37
|
+
top_srcdir = @top_srcdir@
|
38
|
+
VPATH = @srcdir@
|
39
|
+
pkgdatadir = $(datadir)/@PACKAGE@
|
40
|
+
pkglibdir = $(libdir)/@PACKAGE@
|
41
|
+
pkgincludedir = $(includedir)/@PACKAGE@
|
42
|
+
top_builddir = .
|
43
|
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
44
|
+
INSTALL = @INSTALL@
|
45
|
+
install_sh_DATA = $(install_sh) -c -m 644
|
46
|
+
install_sh_PROGRAM = $(install_sh) -c
|
47
|
+
install_sh_SCRIPT = $(install_sh) -c
|
48
|
+
INSTALL_HEADER = $(INSTALL_DATA)
|
49
|
+
transform = $(program_transform_name)
|
50
|
+
NORMAL_INSTALL = :
|
51
|
+
PRE_INSTALL = :
|
52
|
+
POST_INSTALL = :
|
53
|
+
NORMAL_UNINSTALL = :
|
54
|
+
PRE_UNINSTALL = :
|
55
|
+
POST_UNINSTALL = :
|
56
|
+
build_triplet = @build@
|
57
|
+
host_triplet = @host@
|
58
|
+
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
59
|
+
$(srcdir)/Makefile.in $(srcdir)/VERSION.in \
|
60
|
+
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
|
61
|
+
THANKS config.guess config.sub install-sh missing
|
62
|
+
subdir = .
|
63
|
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
64
|
+
am__aclocal_m4_deps = $(top_srcdir)/rubycdio.m4 \
|
65
|
+
$(top_srcdir)/configure.ac
|
66
|
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
67
|
+
$(ACLOCAL_M4)
|
68
|
+
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
69
|
+
configure.lineno configure.status.lineno
|
70
|
+
mkinstalldirs = $(install_sh) -d
|
71
|
+
CONFIG_CLEAN_FILES = VERSION
|
72
|
+
SOURCES =
|
73
|
+
DIST_SOURCES =
|
74
|
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
75
|
+
distdir = $(PACKAGE)-$(VERSION)
|
76
|
+
top_distdir = $(distdir)
|
77
|
+
am__remove_distdir = \
|
78
|
+
{ test ! -d $(distdir) \
|
79
|
+
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
80
|
+
&& rm -fr $(distdir); }; }
|
81
|
+
DIST_ARCHIVES = $(distdir).tar.gz
|
82
|
+
GZIP_ENV = --best
|
83
|
+
distuninstallcheck_listfiles = find . -type f -print
|
84
|
+
distcleancheck_listfiles = find . -type f -print
|
85
|
+
ACLOCAL = @ACLOCAL@
|
86
|
+
AMDEP_FALSE = @AMDEP_FALSE@
|
87
|
+
AMDEP_TRUE = @AMDEP_TRUE@
|
88
|
+
AMTAR = @AMTAR@
|
89
|
+
AUTOCONF = @AUTOCONF@
|
90
|
+
AUTOHEADER = @AUTOHEADER@
|
91
|
+
AUTOMAKE = @AUTOMAKE@
|
92
|
+
AWK = @AWK@
|
93
|
+
CC = @CC@
|
94
|
+
CCDEPMODE = @CCDEPMODE@
|
95
|
+
CFLAGS = @CFLAGS@
|
96
|
+
CPPFLAGS = @CPPFLAGS@
|
97
|
+
CVS2CL = @CVS2CL@
|
98
|
+
CYGPATH_W = @CYGPATH_W@
|
99
|
+
DEFS = @DEFS@
|
100
|
+
DEPDIR = @DEPDIR@
|
101
|
+
ECHO_C = @ECHO_C@
|
102
|
+
ECHO_N = @ECHO_N@
|
103
|
+
ECHO_T = @ECHO_T@
|
104
|
+
EXEEXT = @EXEEXT@
|
105
|
+
INSTALL_DATA = @INSTALL_DATA@
|
106
|
+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
107
|
+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
108
|
+
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
109
|
+
LDFLAGS = @LDFLAGS@
|
110
|
+
LDSHARED = @LDSHARED@
|
111
|
+
LIBOBJS = @LIBOBJS@
|
112
|
+
LIBS = @LIBS@
|
113
|
+
LN_S = @LN_S@
|
114
|
+
LTLIBOBJS = @LTLIBOBJS@
|
115
|
+
MAINT = @MAINT@
|
116
|
+
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
|
117
|
+
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
|
118
|
+
MAKEINFO = @MAKEINFO@
|
119
|
+
OBJEXT = @OBJEXT@
|
120
|
+
PACKAGE = @PACKAGE@
|
121
|
+
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
122
|
+
PACKAGE_NAME = @PACKAGE_NAME@
|
123
|
+
PACKAGE_STRING = @PACKAGE_STRING@
|
124
|
+
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
125
|
+
PACKAGE_VERSION = @PACKAGE_VERSION@
|
126
|
+
PATH_SEPARATOR = @PATH_SEPARATOR@
|
127
|
+
PKG_CONFIG = @PKG_CONFIG@
|
128
|
+
RUBY = @RUBY@
|
129
|
+
RUBYCDIO_LIBDIR = @RUBYCDIO_LIBDIR@
|
130
|
+
RUBY_INC = @RUBY_INC@
|
131
|
+
RUBY_LIBS = @RUBY_LIBS@
|
132
|
+
SET_MAKE = @SET_MAKE@
|
133
|
+
SHELL = @SHELL@
|
134
|
+
SO := @SO@
|
135
|
+
STRIP = @STRIP@
|
136
|
+
SWIG := @SWIG@
|
137
|
+
SWIG_FLAGS := @SWIG_FLAGS@
|
138
|
+
VERSION = @VERSION@
|
139
|
+
ac_ct_CC = @ac_ct_CC@
|
140
|
+
ac_ct_STRIP = @ac_ct_STRIP@
|
141
|
+
ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
|
142
|
+
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
143
|
+
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
144
|
+
am__include = @am__include@
|
145
|
+
am__leading_dot = @am__leading_dot@
|
146
|
+
am__quote = @am__quote@
|
147
|
+
am__tar = @am__tar@
|
148
|
+
am__untar = @am__untar@
|
149
|
+
bindir = @bindir@
|
150
|
+
build = @build@
|
151
|
+
build_alias = @build_alias@
|
152
|
+
build_cpu = @build_cpu@
|
153
|
+
build_os = @build_os@
|
154
|
+
build_vendor = @build_vendor@
|
155
|
+
datadir = @datadir@
|
156
|
+
exec_prefix = @exec_prefix@
|
157
|
+
host = @host@
|
158
|
+
host_alias = @host_alias@
|
159
|
+
host_cpu = @host_cpu@
|
160
|
+
host_os = @host_os@
|
161
|
+
host_vendor = @host_vendor@
|
162
|
+
includedir = @includedir@
|
163
|
+
infodir = @infodir@
|
164
|
+
install_sh = @install_sh@
|
165
|
+
libcdio_CFLAGS = @libcdio_CFLAGS@
|
166
|
+
libcdio_LIBS = @libcdio_LIBS@
|
167
|
+
libdir = @libdir@
|
168
|
+
libexecdir = @libexecdir@
|
169
|
+
libiso9660_CFLAGS = @libiso9660_CFLAGS@
|
170
|
+
libiso9660_LIBS = @libiso9660_LIBS@
|
171
|
+
localstatedir = @localstatedir@
|
172
|
+
mandir = @mandir@
|
173
|
+
mkdir_p = @mkdir_p@
|
174
|
+
oldincludedir = @oldincludedir@
|
175
|
+
prefix = @prefix@
|
176
|
+
program_transform_name = @program_transform_name@
|
177
|
+
sbindir = @sbindir@
|
178
|
+
sharedstatedir = @sharedstatedir@
|
179
|
+
sysconfdir = @sysconfdir@
|
180
|
+
target_alias = @target_alias@
|
181
|
+
CDIO_EXTCONF = $(top_builddir)/ext/cdio/extconf.rb
|
182
|
+
ISO_EXTCONF = $(top_builddir)/ext/iso9660/extconf.rb
|
183
|
+
|
184
|
+
# Note rubydio.swg has to come first.
|
185
|
+
CDIO_SRC = $(top_srcdir)/swig/rubycdio.swg \
|
186
|
+
$(top_srcdir)/swig/Makefile \
|
187
|
+
$(top_srcdir)/swig/audio.swg \
|
188
|
+
$(top_srcdir)/swig/compat.swg \
|
189
|
+
$(top_srcdir)/swig/device.swg \
|
190
|
+
$(top_srcdir)/swig/device_const.swg \
|
191
|
+
$(top_srcdir)/swig/disc.swg \
|
192
|
+
$(top_srcdir)/swig/read.swg \
|
193
|
+
$(top_srcdir)/swig/types.swg
|
194
|
+
|
195
|
+
ISO_SRC = $(top_srcdir)/swig/rubyiso9660.swg \
|
196
|
+
$(top_srcdir)/swig/compat.swg \
|
197
|
+
$(top_srcdir)/swig/types.swg
|
198
|
+
|
199
|
+
TEST_FILES = \
|
200
|
+
test/Makefile \
|
201
|
+
test/Rakefile \
|
202
|
+
test/cdda.bin \
|
203
|
+
test/cdda.cue \
|
204
|
+
test/cdda.cue \
|
205
|
+
test/cdda.toc \
|
206
|
+
test/cdiotest.rb \
|
207
|
+
test/isocopy.rb \
|
208
|
+
test/isotest.rb
|
209
|
+
|
210
|
+
DATA_FILES = data/copying.iso data/isofs-m1.cue data/isofs-m1.bin
|
211
|
+
EXAMPLE_FILES = \
|
212
|
+
example/README \
|
213
|
+
example/audio.rb \
|
214
|
+
example/device.rb \
|
215
|
+
example/drives.rb \
|
216
|
+
example/eject.rb \
|
217
|
+
example/iso1.rb \
|
218
|
+
example/iso2.rb \
|
219
|
+
example/iso3.rb \
|
220
|
+
example/tracks.rb
|
221
|
+
|
222
|
+
CDIO_C := $(top_builddir)/ext/cdio/rubycdio_wrap.c
|
223
|
+
CDIO_OBJ := $(top_builddir)/ext/cdio/rubycdio_wrap.o
|
224
|
+
ISO_C := $(top_builddir)/ext/iso9660/rubyiso9660_wrap.c
|
225
|
+
ISO_OBJ := $(top_builddir)/ext/iso9660/rubyiso9660_wrap.o
|
226
|
+
RUBYCDIO = ext/cdio/rubycdio$(SO)
|
227
|
+
RUBYISO9660 = ext/iso9660/rubyiso9660$(SO)
|
228
|
+
EXTRA_DIST = $(CDIO_SRC) $(CDIO_C) $(ISO_SRC) $(ISO_C) $(CDIO_EXTCONF) \
|
229
|
+
$(EXAMPLE_FILES) $(DATA_FILES) $(TEST_FILES) rubycdio.m4 \
|
230
|
+
$(ISO_EXTCONF) lib/Makefile lib/cdio.rb lib/iso9660.rb \
|
231
|
+
THANKS VERSION.in VERSION
|
232
|
+
|
233
|
+
|
234
|
+
# From libtool documentation amended with guidance from N. Boullis:
|
235
|
+
#
|
236
|
+
# 1. Start with version information of `0:0:0' for each libtool library.
|
237
|
+
#
|
238
|
+
# 2. It is probably not a good idea to update the version information
|
239
|
+
# several times between public releases, but rather once per public
|
240
|
+
# release. (This seems to be more an aesthetic consideration than
|
241
|
+
# a hard technical one.)
|
242
|
+
#
|
243
|
+
# 3. If the library source code has changed at all since the last
|
244
|
+
# update, then increment REVISION (`C:R:A' becomes `C:R+1:A').
|
245
|
+
#
|
246
|
+
# 4. If any interfaces have been added, removed, or changed since the
|
247
|
+
# last update, increment CURRENT, and set REVISION to 0.
|
248
|
+
#
|
249
|
+
# 5. If any interfaces have been added since the last public release,
|
250
|
+
# then increment AGE.
|
251
|
+
#
|
252
|
+
# 6. If any interfaces have been removed or changed since the last
|
253
|
+
# public release, then set AGE to 0. A changed interface means an
|
254
|
+
# incompatibility with previous versions.
|
255
|
+
|
256
|
+
# cvs2cl
|
257
|
+
MAINTAINERCLEANFILES = ChangeLog
|
258
|
+
@MAINTAINER_MODE_TRUE@ACLOCAL_AMFLAGS = -I .
|
259
|
+
all: all-am
|
260
|
+
|
261
|
+
.SUFFIXES:
|
262
|
+
am--refresh:
|
263
|
+
@:
|
264
|
+
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
265
|
+
@for dep in $?; do \
|
266
|
+
case '$(am__configure_deps)' in \
|
267
|
+
*$$dep*) \
|
268
|
+
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
|
269
|
+
cd $(srcdir) && $(AUTOMAKE) --gnu \
|
270
|
+
&& exit 0; \
|
271
|
+
exit 1;; \
|
272
|
+
esac; \
|
273
|
+
done; \
|
274
|
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
|
275
|
+
cd $(top_srcdir) && \
|
276
|
+
$(AUTOMAKE) --gnu Makefile
|
277
|
+
.PRECIOUS: Makefile
|
278
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
279
|
+
@case '$?' in \
|
280
|
+
*config.status*) \
|
281
|
+
echo ' $(SHELL) ./config.status'; \
|
282
|
+
$(SHELL) ./config.status;; \
|
283
|
+
*) \
|
284
|
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
285
|
+
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
286
|
+
esac;
|
287
|
+
|
288
|
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
289
|
+
$(SHELL) ./config.status --recheck
|
290
|
+
|
291
|
+
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
292
|
+
cd $(srcdir) && $(AUTOCONF)
|
293
|
+
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
294
|
+
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
295
|
+
VERSION: $(top_builddir)/config.status $(srcdir)/VERSION.in
|
296
|
+
cd $(top_builddir) && $(SHELL) ./config.status $@
|
297
|
+
uninstall-info-am:
|
298
|
+
tags: TAGS
|
299
|
+
TAGS:
|
300
|
+
|
301
|
+
ctags: CTAGS
|
302
|
+
CTAGS:
|
303
|
+
|
304
|
+
|
305
|
+
distdir: $(DISTFILES)
|
306
|
+
$(am__remove_distdir)
|
307
|
+
mkdir $(distdir)
|
308
|
+
$(mkdir_p) $(distdir)/$(top_builddir)/ext/cdio $(distdir)/$(top_builddir)/ext/iso9660 $(distdir)/$(top_srcdir)/swig $(distdir)/. $(distdir)/data $(distdir)/example $(distdir)/lib $(distdir)/test
|
309
|
+
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
310
|
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
311
|
+
list='$(DISTFILES)'; for file in $$list; do \
|
312
|
+
case $$file in \
|
313
|
+
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
314
|
+
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
315
|
+
esac; \
|
316
|
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
317
|
+
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
318
|
+
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
319
|
+
dir="/$$dir"; \
|
320
|
+
$(mkdir_p) "$(distdir)$$dir"; \
|
321
|
+
else \
|
322
|
+
dir=''; \
|
323
|
+
fi; \
|
324
|
+
if test -d $$d/$$file; then \
|
325
|
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
326
|
+
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
327
|
+
fi; \
|
328
|
+
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
329
|
+
else \
|
330
|
+
test -f $(distdir)/$$file \
|
331
|
+
|| cp -p $$d/$$file $(distdir)/$$file \
|
332
|
+
|| exit 1; \
|
333
|
+
fi; \
|
334
|
+
done
|
335
|
+
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
336
|
+
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
337
|
+
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
338
|
+
! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
|
339
|
+
|| chmod -R a+r $(distdir)
|
340
|
+
dist-gzip: distdir
|
341
|
+
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
342
|
+
$(am__remove_distdir)
|
343
|
+
|
344
|
+
dist-bzip2: distdir
|
345
|
+
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
346
|
+
$(am__remove_distdir)
|
347
|
+
|
348
|
+
dist-tarZ: distdir
|
349
|
+
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
350
|
+
$(am__remove_distdir)
|
351
|
+
|
352
|
+
dist-shar: distdir
|
353
|
+
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
354
|
+
$(am__remove_distdir)
|
355
|
+
|
356
|
+
dist-zip: distdir
|
357
|
+
-rm -f $(distdir).zip
|
358
|
+
zip -rq $(distdir).zip $(distdir)
|
359
|
+
$(am__remove_distdir)
|
360
|
+
|
361
|
+
dist dist-all: distdir
|
362
|
+
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
363
|
+
$(am__remove_distdir)
|
364
|
+
|
365
|
+
# This target untars the dist file and tries a VPATH configuration. Then
|
366
|
+
# it guarantees that the distribution is self-contained by making another
|
367
|
+
# tarfile.
|
368
|
+
distcheck: dist
|
369
|
+
case '$(DIST_ARCHIVES)' in \
|
370
|
+
*.tar.gz*) \
|
371
|
+
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
372
|
+
*.tar.bz2*) \
|
373
|
+
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
374
|
+
*.tar.Z*) \
|
375
|
+
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
376
|
+
*.shar.gz*) \
|
377
|
+
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
378
|
+
*.zip*) \
|
379
|
+
unzip $(distdir).zip ;;\
|
380
|
+
esac
|
381
|
+
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
382
|
+
mkdir $(distdir)/_build
|
383
|
+
mkdir $(distdir)/_inst
|
384
|
+
chmod a-w $(distdir)
|
385
|
+
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
386
|
+
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
387
|
+
&& cd $(distdir)/_build \
|
388
|
+
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
389
|
+
$(DISTCHECK_CONFIGURE_FLAGS) \
|
390
|
+
&& $(MAKE) $(AM_MAKEFLAGS) \
|
391
|
+
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
392
|
+
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
393
|
+
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
394
|
+
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
395
|
+
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
396
|
+
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
397
|
+
distuninstallcheck \
|
398
|
+
&& chmod -R a-w "$$dc_install_base" \
|
399
|
+
&& ({ \
|
400
|
+
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
401
|
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
402
|
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
403
|
+
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
404
|
+
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
405
|
+
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
406
|
+
&& rm -rf "$$dc_destdir" \
|
407
|
+
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
408
|
+
&& rm -rf $(DIST_ARCHIVES) \
|
409
|
+
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
410
|
+
$(am__remove_distdir)
|
411
|
+
@(echo "$(distdir) archives ready for distribution: "; \
|
412
|
+
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
413
|
+
sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
|
414
|
+
distuninstallcheck:
|
415
|
+
@cd $(distuninstallcheck_dir) \
|
416
|
+
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
417
|
+
|| { echo "ERROR: files left after uninstall:" ; \
|
418
|
+
if test -n "$(DESTDIR)"; then \
|
419
|
+
echo " (check DESTDIR support)"; \
|
420
|
+
fi ; \
|
421
|
+
$(distuninstallcheck_listfiles) ; \
|
422
|
+
exit 1; } >&2
|
423
|
+
distcleancheck: distclean
|
424
|
+
@if test '$(srcdir)' = . ; then \
|
425
|
+
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
426
|
+
exit 1 ; \
|
427
|
+
fi
|
428
|
+
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
429
|
+
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
430
|
+
$(distcleancheck_listfiles) ; \
|
431
|
+
exit 1; } >&2
|
432
|
+
check-am: all-am
|
433
|
+
check: check-am
|
434
|
+
all-am: Makefile
|
435
|
+
installdirs:
|
436
|
+
install: install-am
|
437
|
+
install-exec: install-exec-am
|
438
|
+
install-data: install-data-am
|
439
|
+
uninstall: uninstall-am
|
440
|
+
|
441
|
+
install-am: all-am
|
442
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
443
|
+
|
444
|
+
installcheck: installcheck-am
|
445
|
+
install-strip:
|
446
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
447
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
448
|
+
`test -z '$(STRIP)' || \
|
449
|
+
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
450
|
+
mostlyclean-generic:
|
451
|
+
|
452
|
+
distclean-generic:
|
453
|
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
454
|
+
|
455
|
+
maintainer-clean-generic:
|
456
|
+
@echo "This command is intended for maintainers to use"
|
457
|
+
@echo "it deletes files that may require special tools to rebuild."
|
458
|
+
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
459
|
+
clean: clean-am
|
460
|
+
|
461
|
+
clean-am: clean-generic mostlyclean-am
|
462
|
+
|
463
|
+
distclean: distclean-am
|
464
|
+
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
465
|
+
-rm -f Makefile
|
466
|
+
distclean-am: clean-am distclean-generic
|
467
|
+
|
468
|
+
dvi: dvi-am
|
469
|
+
|
470
|
+
dvi-am:
|
471
|
+
|
472
|
+
html: html-am
|
473
|
+
|
474
|
+
info: info-am
|
475
|
+
|
476
|
+
info-am:
|
477
|
+
|
478
|
+
install-data-am:
|
479
|
+
|
480
|
+
install-exec-am:
|
481
|
+
|
482
|
+
install-info: install-info-am
|
483
|
+
|
484
|
+
install-man:
|
485
|
+
|
486
|
+
installcheck-am:
|
487
|
+
|
488
|
+
maintainer-clean: maintainer-clean-am
|
489
|
+
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
490
|
+
-rm -rf $(top_srcdir)/autom4te.cache
|
491
|
+
-rm -f Makefile
|
492
|
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
493
|
+
|
494
|
+
mostlyclean: mostlyclean-am
|
495
|
+
|
496
|
+
mostlyclean-am: mostlyclean-generic
|
497
|
+
|
498
|
+
pdf: pdf-am
|
499
|
+
|
500
|
+
pdf-am:
|
501
|
+
|
502
|
+
ps: ps-am
|
503
|
+
|
504
|
+
ps-am:
|
505
|
+
|
506
|
+
uninstall-am: uninstall-info-am
|
507
|
+
|
508
|
+
.PHONY: all all-am am--refresh check check-am clean clean-generic dist \
|
509
|
+
dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
|
510
|
+
distcheck distclean distclean-generic distcleancheck distdir \
|
511
|
+
distuninstallcheck dvi dvi-am html html-am info info-am \
|
512
|
+
install install-am install-data install-data-am install-exec \
|
513
|
+
install-exec-am install-info install-info-am install-man \
|
514
|
+
install-strip installcheck installcheck-am installdirs \
|
515
|
+
maintainer-clean maintainer-clean-generic mostlyclean \
|
516
|
+
mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
|
517
|
+
uninstall-info-am
|
518
|
+
|
519
|
+
|
520
|
+
.PHONY: test check ChangeLog doc rdoc, doc, rerdoc
|
521
|
+
|
522
|
+
all-am: $(RUBYCDIO) $(RUBYISO9660)
|
523
|
+
|
524
|
+
doc: rdoc
|
525
|
+
|
526
|
+
rdoc:
|
527
|
+
rake rdoc
|
528
|
+
|
529
|
+
rerdoc:
|
530
|
+
rake rdoc
|
531
|
+
|
532
|
+
$(CDIO_C): $(CDIO_SRC)
|
533
|
+
$(SWIG) -o $(CDIO_C) -outdir $(top_builddir) -ruby $(SWIG_FLAGS) $<
|
534
|
+
|
535
|
+
$(RUBYCDIO): $(CDIO_C) $(CDIO_EXTCONF)
|
536
|
+
(cd ext/cdio && $(RUBY) extconf.rb && $(MAKE))
|
537
|
+
|
538
|
+
$(RUBYISO9660): $(ISO_C) $(ISO_EXTCONF)
|
539
|
+
(cd ext/iso9660 && $(RUBY) extconf.rb && $(MAKE))
|
540
|
+
|
541
|
+
$(ISO_C): $(ISO_SRC)
|
542
|
+
$(SWIG) -o $(ISO_C) -outdir $(top_builddir) -ruby $(SWIG_FLAGS) $<
|
543
|
+
|
544
|
+
check: test
|
545
|
+
test: test/cdiotest.rb test/isotest.rb $(RUBYCDIO) $(RUBYISO9660)
|
546
|
+
rake test
|
547
|
+
|
548
|
+
clean-generic:
|
549
|
+
-rm $(CDIO_C) $(ISO_C) $(CDIO_OBJ) $(ISO_OBJ) \
|
550
|
+
ext/cdio/rubycdio$(SO) ext/iso9660/rubyiso9660$(SO)
|
551
|
+
-rm -fr pkg
|
552
|
+
|
553
|
+
@MAINTAINER_MODE_TRUE@ChangeLog:
|
554
|
+
@MAINTAINER_MODE_TRUE@ $(CVS2CL) -W 450 --header $(srcdir)/cvs2cl_header --utc -w -I ChangeLog --usermap $(srcdir)/cvs2cl_usermap -P
|
555
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
556
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
557
|
+
.NOEXPORT:
|
data/NEWS
ADDED
data/README
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
= rubycdio
|
2
|
+
== Version
|
3
|
+
:include:VERSION
|
4
|
+
|
5
|
+
== Overview
|
6
|
+
rubycdio is a Ruby interface to the CD Input and Control library
|
7
|
+
(libcdio). You can get the source from rubyforge http://rubyforge.org/projects/rbcdio/ or at the same place as libcdio:
|
8
|
+
ftp://ftp.gnu.org:/pub/gnu/libcdio
|
9
|
+
|
10
|
+
The rubycdio (and libcdio) libraries encapsulate CD-ROM reading and
|
11
|
+
control. Ruby programs wishing to be oblivious of the OS- and
|
12
|
+
device-dependent properties of a CD-ROM can use this library.
|
13
|
+
|
14
|
+
== Requirements
|
15
|
+
|
16
|
+
I've only tested rcdio on Ruby 1.8.4.
|
17
|
+
|
18
|
+
You'll need a C compiler so the extension can be compiled when it is
|
19
|
+
installed. You'll also need libcdio (http://libcdio.sf.net) and it's
|
20
|
+
header files installed.
|
21
|
+
|
22
|
+
One weirdness I've seen in running "gem install" is that on some OS's
|
23
|
+
like Solaris, gem assume the GNU "install" program goes by the name
|
24
|
+
"ginstall". (I've read a report that on cygwin this was the case too:
|
25
|
+
http://www.cygwin.com/ml/cygwin/2005-10/msg00259.html )
|
26
|
+
|
27
|
+
== What's here
|
28
|
+
|
29
|
+
libcdio is rather large and yet may still grow a bit. (UDF support in
|
30
|
+
libcdio may be on the horizon.)
|
31
|
+
|
32
|
+
What is in rubycdio is incomplete; over time it may grow to completion
|
33
|
+
depending on various factors: e.g. interest, whether others help out,
|
34
|
+
whether I get a longer-term job at some such place that uses Ruby.
|
35
|
+
|
36
|
+
Sections of libcdio that are currently missing are the (SCSI) MMC
|
37
|
+
commands, the cdparanoia library, CD-Text handling. Of the audio
|
38
|
+
controls, I put in those things that didn't require any thought. The
|
39
|
+
ISO 9660 library is pretty complete, except file "stat" information
|
40
|
+
which is at present is pretty minimal.
|
41
|
+
|
42
|
+
That said, what's in there is very usable (It contains probably more
|
43
|
+
access capabilities than what most media players that don't use
|
44
|
+
|
45
|
+
The encapsulation by SWIG is done in two parts. The lower-level Ruby
|
46
|
+
interface is called rubycdio and is generated by SWIG.
|
47
|
+
|
48
|
+
The more object-oriented module is cdio; it is a Ruby class that uses
|
49
|
+
rubycdio. Although rubycdio is perfectly usable on its own, it is
|
50
|
+
expected that cdio is what most people will use. As rubycdio more
|
51
|
+
closely models the C interface, it is conceivable (if unlikely) that
|
52
|
+
diehard libcdio C users who are very familiar with that interface
|
53
|
+
could prefer that. Ditto for the Ruby class iso9660 the lower-level C
|
54
|
+
extension rubyiso9660.
|
55
|
+
|
56
|
+
It might be possible to change the SWIG in such a way to combine these
|
57
|
+
pieces. However there are the problems. First, I'm not that much of a
|
58
|
+
SWIG expert. Second it looks as though the resulting SWIG code would
|
59
|
+
be more complex. Note that SWIG seems to create a module while what is
|
60
|
+
in lib are classes. Third the separation makes translation very
|
61
|
+
straight forward to understand and maintain: first get what's in C
|
62
|
+
into Ruby as a one-to-one translation. Then we implement some nice
|
63
|
+
abstraction off of that. The abstraction can be modified without
|
64
|
+
having to redo the underlying translation. (But the reverse is
|
65
|
+
generally not true: usually changes to the C-to-python translation,
|
66
|
+
rubycdio, do result in small, but obvious and straightforward changes
|
67
|
+
to the abstraction layer cdio.)
|
68
|
+
|
69
|
+
There is much to be done - you want to help out, please do so!
|
70
|
+
|
71
|
+
Standalone documentation is missing although many of the methods,
|
72
|
+
classes and functions have some document strings. See also the
|
73
|
+
programs in the example directory.
|
74
|
+
|
75
|
+
$Id: README,v 1.5 2006/12/21 11:55:23 rocky Exp $
|