rbcdio 0.04 → 0.05

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/ChangeLog CHANGED
@@ -1,3 +1,71 @@
1
+ 2010-10-27 R. Bernstein <rocky@gnu.org>
2
+
3
+ * ChangeLog, Rakefile: Add ChangeLog target
4
+
5
+ 2010-10-27 R. Bernstein <rocky@gnu.org>
6
+
7
+ * .gitignore: Ignore pkg
8
+
9
+ 2010-10-27 R. Bernstein <rocky@gnu.org>
10
+
11
+ * .gemspec, Makefile.am, README, Rakefile, VERSION, configure.ac,
12
+ test/isocopy.rb: Rakefile: revise for current conventions Add
13
+ .gemspec. test/isocopy.rb: Make sure test works with newer and older
14
+ libcdio configure.ac; VERSION: revise for release Makefile.am: add
15
+ gem and package targets.
16
+
17
+ 2010-09-29 R. Bernstein <rocky@gnu.org>
18
+
19
+ * README: Another typo.
20
+
21
+ 2010-09-29 R. Bernstein <rocky@gnu.org>
22
+
23
+ * README: Reflect that this works on 1.9.2 and 1.9.3 and correct
24
+ typo.
25
+
26
+ 2009-11-05 R. Bernstein <rocky@gnu.org>
27
+
28
+ Merge branch 'master' of
29
+ rocky@git.sv.gnu.org:/srv/git/libcdio/rbcdio
30
+
31
+ 2009-11-05 R. Bernstein <rocky@gnu.org>
32
+
33
+ * htdocs/index.html: Change location of version-control repository.
34
+
35
+
36
+ 2009-11-05 R. Bernstein <rocky@gnu.org>
37
+
38
+ * ChangeLog, VERSION, ext/cdio/extconf.rb, ext/iso9660/extconf.rb:
39
+ Patch from Slava Kravchenko (cordawyn): While creating Makefiles,
40
+ ext/{cdio,iso9660}/extconf.rb used to disregard the output of
41
+ "pkg-config {cdio,iso9660} --cflags" as well as environmental
42
+ variables CFLAGS and LDFLAGS. This prevents building the gem for the
43
+ systems where the headers of libcdio and friends are installed in a
44
+ custom location. Additionally there is no way to workaround this
45
+ because the environment variables CFLAGS (and LDFLAGS) are not taken
46
+ into consideration when building the Makefile.
47
+
48
+ 2009-07-29 R. Bernstein <rocky@gnu.org>
49
+
50
+ * .gitignore: VERSION is needed right now
51
+
52
+ 2009-07-29 R. Bernstein <rocky@gnu.org>
53
+
54
+ Merge branch 'master' of
55
+ rocky@git.sv.gnu.org:/srv/git/libcdio/rbcdio Conflicts:
56
+ ext/cdio/.gitignore ext/iso9660/.gitignore
57
+
58
+ 2009-07-29 R. Bernstein <rocky@gnu.org>
59
+
60
+ * VERSION, example/.gitignore, ext/cdio/.gitignore,
61
+ ext/cdio/extconf.rb, ext/iso9660/.gitignore: Set up for
62
+ configuration customization of extconf.rb WITHOUT checking into git.
63
+ Set up some .gitignores
64
+
65
+ 2009-05-18 R. Bernstein <rocky@gnu.org>
66
+
67
+ * ChangeLog: Update before release
68
+
1
69
  2009-05-17 R. Bernstein <rocky@gnu.org>
2
70
 
3
71
  * NEWS: What's up.
@@ -85,6 +85,12 @@ EXTRA_DIST = $(CDIO_SRC) $(CDIO_C) $(ISO_SRC) $(ISO_C) $(CDIO_EXTCONF) \
85
85
 
86
86
  all-am: $(RUBYCDIO) $(RUBYISO9660)
87
87
 
88
+ package:
89
+ rake package
90
+
91
+ gem:
92
+ rake gem
93
+
88
94
  doc: rdoc
89
95
 
90
96
  rdoc:
@@ -1,8 +1,9 @@
1
- # Makefile.in generated by automake 1.10.2 from Makefile.am.
1
+ # Makefile.in generated by automake 1.11.1 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
4
  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
6
7
  # This Makefile.in is free software; the Free Software Foundation
7
8
  # gives unlimited permission to copy and/or distribute it,
8
9
  # with or without modifications, as long as this notice is preserved.
@@ -32,8 +33,9 @@
32
33
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
33
34
  VPATH = @srcdir@
34
35
  pkgdatadir = $(datadir)/@PACKAGE@
35
- pkglibdir = $(libdir)/@PACKAGE@
36
36
  pkgincludedir = $(includedir)/@PACKAGE@
37
+ pkglibdir = $(libdir)/@PACKAGE@
38
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
37
39
  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38
40
  install_sh_DATA = $(install_sh) -c -m 644
39
41
  install_sh_PROGRAM = $(install_sh) -c
@@ -62,15 +64,16 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
62
64
  configure.lineno config.status.lineno
63
65
  mkinstalldirs = $(install_sh) -d
64
66
  CONFIG_CLEAN_FILES = VERSION
67
+ CONFIG_CLEAN_VPATH_FILES =
65
68
  SOURCES =
66
69
  DIST_SOURCES =
67
70
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
68
71
  distdir = $(PACKAGE)-$(VERSION)
69
72
  top_distdir = $(distdir)
70
73
  am__remove_distdir = \
71
- { test ! -d $(distdir) \
72
- || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
73
- && rm -fr $(distdir); }; }
74
+ { test ! -d "$(distdir)" \
75
+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
76
+ && rm -fr "$(distdir)"; }; }
74
77
  DIST_ARCHIVES = $(distdir).tar.gz
75
78
  GZIP_ENV = --best
76
79
  distuninstallcheck_listfiles = find . -type f -print
@@ -113,6 +116,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113
116
  PACKAGE_NAME = @PACKAGE_NAME@
114
117
  PACKAGE_STRING = @PACKAGE_STRING@
115
118
  PACKAGE_TARNAME = @PACKAGE_TARNAME@
119
+ PACKAGE_URL = @PACKAGE_URL@
116
120
  PACKAGE_VERSION = @PACKAGE_VERSION@
117
121
  PATH_SEPARATOR = @PATH_SEPARATOR@
118
122
  PKG_CONFIG = @PKG_CONFIG@
@@ -269,15 +273,15 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
269
273
  @for dep in $?; do \
270
274
  case '$(am__configure_deps)' in \
271
275
  *$$dep*) \
272
- echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
273
- cd $(srcdir) && $(AUTOMAKE) --gnu \
276
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
277
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
274
278
  && exit 0; \
275
279
  exit 1;; \
276
280
  esac; \
277
281
  done; \
278
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
279
- cd $(top_srcdir) && \
280
- $(AUTOMAKE) --gnu Makefile
282
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
283
+ $(am__cd) $(top_srcdir) && \
284
+ $(AUTOMAKE) --gnu Makefile
281
285
  .PRECIOUS: Makefile
282
286
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
283
287
  @case '$?' in \
@@ -293,9 +297,10 @@ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENC
293
297
  $(SHELL) ./config.status --recheck
294
298
 
295
299
  $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
296
- cd $(srcdir) && $(AUTOCONF)
300
+ $(am__cd) $(srcdir) && $(AUTOCONF)
297
301
  $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
298
- cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
302
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
303
+ $(am__aclocal_m4_deps):
299
304
  VERSION: $(top_builddir)/config.status $(srcdir)/VERSION.in
300
305
  cd $(top_builddir) && $(SHELL) ./config.status $@
301
306
  tags: TAGS
@@ -307,7 +312,7 @@ CTAGS:
307
312
 
308
313
  distdir: $(DISTFILES)
309
314
  $(am__remove_distdir)
310
- test -d $(distdir) || mkdir $(distdir)
315
+ test -d "$(distdir)" || mkdir "$(distdir)"
311
316
  @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
312
317
  topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
313
318
  list='$(DISTFILES)'; \
@@ -323,21 +328,27 @@ distdir: $(DISTFILES)
323
328
  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
324
329
  if test -d $$d/$$file; then \
325
330
  dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
331
+ if test -d "$(distdir)/$$file"; then \
332
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
333
+ fi; \
326
334
  if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
327
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
335
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
336
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
328
337
  fi; \
329
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
338
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
330
339
  else \
331
- test -f $(distdir)/$$file \
332
- || cp -p $$d/$$file $(distdir)/$$file \
340
+ test -f "$(distdir)/$$file" \
341
+ || cp -p $$d/$$file "$(distdir)/$$file" \
333
342
  || exit 1; \
334
343
  fi; \
335
344
  done
336
- -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
345
+ -test -n "$(am__skip_mode_fix)" \
346
+ || find "$(distdir)" -type d ! -perm -755 \
347
+ -exec chmod u+rwx,go+rx {} \; -o \
337
348
  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
338
349
  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
339
350
  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
340
- || chmod -R a+r $(distdir)
351
+ || chmod -R a+r "$(distdir)"
341
352
  dist-gzip: distdir
342
353
  tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
343
354
  $(am__remove_distdir)
@@ -350,6 +361,10 @@ dist-lzma: distdir
350
361
  tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
351
362
  $(am__remove_distdir)
352
363
 
364
+ dist-xz: distdir
365
+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
366
+ $(am__remove_distdir)
367
+
353
368
  dist-tarZ: distdir
354
369
  tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
355
370
  $(am__remove_distdir)
@@ -373,15 +388,17 @@ dist dist-all: distdir
373
388
  distcheck: dist
374
389
  case '$(DIST_ARCHIVES)' in \
375
390
  *.tar.gz*) \
376
- GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
391
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
377
392
  *.tar.bz2*) \
378
- bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
393
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
379
394
  *.tar.lzma*) \
380
- unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
395
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
396
+ *.tar.xz*) \
397
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
381
398
  *.tar.Z*) \
382
399
  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
383
400
  *.shar.gz*) \
384
- GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
401
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
385
402
  *.zip*) \
386
403
  unzip $(distdir).zip ;;\
387
404
  esac
@@ -389,9 +406,11 @@ distcheck: dist
389
406
  mkdir $(distdir)/_build
390
407
  mkdir $(distdir)/_inst
391
408
  chmod a-w $(distdir)
409
+ test -d $(distdir)/_build || exit 0; \
392
410
  dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
393
411
  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
394
- && cd $(distdir)/_build \
412
+ && am__cwd=`pwd` \
413
+ && $(am__cd) $(distdir)/_build \
395
414
  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
396
415
  $(DISTCHECK_CONFIGURE_FLAGS) \
397
416
  && $(MAKE) $(AM_MAKEFLAGS) \
@@ -413,13 +432,15 @@ distcheck: dist
413
432
  && rm -rf "$$dc_destdir" \
414
433
  && $(MAKE) $(AM_MAKEFLAGS) dist \
415
434
  && rm -rf $(DIST_ARCHIVES) \
416
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
435
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
436
+ && cd "$$am__cwd" \
437
+ || exit 1
417
438
  $(am__remove_distdir)
418
439
  @(echo "$(distdir) archives ready for distribution: "; \
419
440
  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
420
441
  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
421
442
  distuninstallcheck:
422
- @cd $(distuninstallcheck_dir) \
443
+ @$(am__cd) '$(distuninstallcheck_dir)' \
423
444
  && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
424
445
  || { echo "ERROR: files left after uninstall:" ; \
425
446
  if test -n "$(DESTDIR)"; then \
@@ -457,6 +478,7 @@ mostlyclean-generic:
457
478
 
458
479
  distclean-generic:
459
480
  -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
481
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
460
482
 
461
483
  maintainer-clean-generic:
462
484
  @echo "This command is intended for maintainers to use"
@@ -477,6 +499,8 @@ dvi-am:
477
499
 
478
500
  html: html-am
479
501
 
502
+ html-am:
503
+
480
504
  info: info-am
481
505
 
482
506
  info-am:
@@ -485,18 +509,28 @@ install-data-am:
485
509
 
486
510
  install-dvi: install-dvi-am
487
511
 
512
+ install-dvi-am:
513
+
488
514
  install-exec-am:
489
515
 
490
516
  install-html: install-html-am
491
517
 
518
+ install-html-am:
519
+
492
520
  install-info: install-info-am
493
521
 
522
+ install-info-am:
523
+
494
524
  install-man:
495
525
 
496
526
  install-pdf: install-pdf-am
497
527
 
528
+ install-pdf-am:
529
+
498
530
  install-ps: install-ps-am
499
531
 
532
+ install-ps-am:
533
+
500
534
  installcheck-am:
501
535
 
502
536
  maintainer-clean: maintainer-clean-am
@@ -523,22 +557,28 @@ uninstall-am:
523
557
 
524
558
  .PHONY: all all-am am--refresh check check-am clean clean-generic dist \
525
559
  dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
526
- dist-zip distcheck distclean distclean-generic distcleancheck \
527
- distdir distuninstallcheck dvi dvi-am html html-am info \
528
- info-am install install-am install-data install-data-am \
529
- install-dvi install-dvi-am install-exec install-exec-am \
530
- install-html install-html-am install-info install-info-am \
531
- install-man install-pdf install-pdf-am install-ps \
532
- install-ps-am install-strip installcheck installcheck-am \
533
- installdirs maintainer-clean maintainer-clean-generic \
534
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
535
- uninstall-am
560
+ dist-xz dist-zip distcheck distclean distclean-generic \
561
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
562
+ html-am info info-am install install-am install-data \
563
+ install-data-am install-dvi install-dvi-am install-exec \
564
+ install-exec-am install-html install-html-am install-info \
565
+ install-info-am install-man install-pdf install-pdf-am \
566
+ install-ps install-ps-am install-strip installcheck \
567
+ installcheck-am installdirs maintainer-clean \
568
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
569
+ pdf-am ps ps-am uninstall uninstall-am
536
570
 
537
571
 
538
572
  .PHONY: test check ChangeLog doc rdoc, doc, rerdoc
539
573
 
540
574
  all-am: $(RUBYCDIO) $(RUBYISO9660)
541
575
 
576
+ package:
577
+ rake package
578
+
579
+ gem:
580
+ rake gem
581
+
542
582
  doc: rdoc
543
583
 
544
584
  rdoc:
@@ -574,6 +614,7 @@ install: all-am
574
614
 
575
615
  @MAINTAINER_MODE_TRUE@ChangeLog:
576
616
  @MAINTAINER_MODE_TRUE@ git log --pretty --numstat --summary | git2cl > ChangeLog
617
+
577
618
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
578
619
  # Otherwise a system limit (for SysV at least) may be exceeded.
579
620
  .NOEXPORT:
data/README CHANGED
@@ -13,8 +13,7 @@ device-dependent properties of a CD-ROM can use this library.
13
13
 
14
14
  == Requirements
15
15
 
16
- I've tested rcdio on Ruby 1.8.4 - 1.8.7 and 1.9.1
17
-
16
+ I've tested rbcdio on Ruby 1.8.4 - 1.8.7 and 1.9.x
18
17
  You'll need a C compiler so the extension can be compiled when it is
19
18
  installed. You'll also need libcdio
20
19
  (http://www.gnu.org/software/libcdio) and it's header files installed.
@@ -29,7 +28,7 @@ http://www.cygwin.com/ml/cygwin/2005-10/msg00259.html )
29
28
  libcdio is rather large and yet may still grow a bit. (UDF support in
30
29
  libcdio may be on the horizon.)
31
30
 
32
- What is in rubycdio is incomplete; over time it may grow to completion
31
+ What is in rbcdio is incomplete; over time it may grow to completion
33
32
  depending on various factors: e.g. interest, whether others help out.
34
33
 
35
34
  Sections of libcdio that are currently missing are the (SCSI) MMC
data/Rakefile CHANGED
@@ -1,49 +1,76 @@
1
- SO_NAME = "rubcdio.so"
2
-
3
- # ------- Default Package ----------
4
- CDIO_VERSION = open("VERSION").read.chomp
5
- PKG_NAME = 'rbcdio'
6
-
7
- FILES = FileList[
8
- 'AUTHORS',
9
- 'COPYING',
10
- 'ChangeLog',
11
- 'INSTALL',
12
- 'Makefile.am',
13
- 'Makefile.in',
14
- 'NEWS',
15
- 'README',
16
- 'Rakefile',
17
- 'THANKS',
18
- 'VERSION',
19
- 'VERSION.in',
20
- 'config.guess',
21
- 'config.sub',
22
- 'configure',
23
- 'configure.ac',
24
- 'data/**/*',
25
- 'doc/*',
26
- 'example/*',
27
- 'ext/**/*.c',
28
- 'ext/**/Makefile',
29
- 'ext/**/extconf.rb',
30
- 'install-sh',
31
- 'lib/*.rb',
32
- 'lib/Makefile',
33
- 'missing',
34
- 'rubycdio.m4',
35
- 'swig/*.swg',
36
- 'swig/Makefile',
37
- 'test/*.rb',
38
- 'test/Makefile',
39
- 'test/Rakefile',
40
- 'test/cdda.bin',
41
- 'test/cdda.cue',
42
- 'test/cdda.toc'
43
- ]
1
+ #!/usr/bin/env rake
2
+ # -*- Ruby -*-
3
+ require 'rubygems'
4
+
5
+ ROOT_DIR = File.dirname(__FILE__)
6
+
7
+ def gemspec
8
+ @gemspec ||= eval(File.read('.gemspec'), binding, '.gemspec')
9
+ end
44
10
 
45
11
  require 'rake/gempackagetask'
46
- task :default => [:all]
12
+ desc "Build the gem"
13
+ task :package=>:gem
14
+ task :gem=>:gemspec do
15
+ Dir.chdir(ROOT_DIR) do
16
+ sh "gem build .gemspec"
17
+ FileUtils.mkdir_p 'pkg'
18
+ FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
19
+ end
20
+ end
21
+
22
+ desc "Install the gem locally"
23
+ task :install => :gem do
24
+ Dir.chdir(ROOT_DIR) do
25
+ sh %{gem install --local pkg/#{gemspec.name}-#{gemspec.version}}
26
+ end
27
+ end
28
+
29
+ desc 'Create a GNU-style ChangeLog via git2cl'
30
+ task :ChangeLog do
31
+ system('git log --pretty --numstat --summary | git2cl > ChangeLog')
32
+ end
33
+
34
+ require 'rake/testtask'
35
+ desc "Test everything."
36
+ Rake::TestTask.new('test') do |t|
37
+ t.pattern = 'test/*.rb'
38
+ t.warning = true
39
+ end
40
+ task :test => [:lib, :all]
41
+
42
+ desc "same as test"
43
+ task :check => :test
44
+
45
+ desc "Generate the gemspec"
46
+ task :generate do
47
+ puts gemspec.to_ruby
48
+ end
49
+
50
+ desc "Validate the gemspec"
51
+ task :gemspec do
52
+ gemspec.validate
53
+ end
54
+
55
+ # --------- RDoc Documentation ------
56
+ require 'rake/rdoctask'
57
+ Rake::RDocTask.new("rdoc") do |rdoc|
58
+ rdoc.rdoc_dir = 'doc'
59
+ rdoc.title = "rbcdio"
60
+ # Show source inline with line numbers
61
+ rdoc.options += ("--exclude data --exclude test --exclude lib/cdio/ " +
62
+ "--exclude lib/iso9660/ --exclude pkg/" ).split()
63
+ # Make the readme file the start page for the generated html
64
+ rdoc.options << '--main' << 'README'
65
+ rdoc.rdoc_files.include('lib/*.rb',
66
+ 'example/*.rb',
67
+ 'example/README',
68
+ 'README')
69
+ end
70
+ desc "Same as rdoc"
71
+ task :doc => :rdoc
72
+
73
+ task :default => :test
47
74
 
48
75
  # --- Redo Rake::PackageTask::define so tar uses -h to include
49
76
  # files of a symbolic link.
@@ -112,86 +139,6 @@ module Rake
112
139
  end
113
140
  end
114
141
 
115
- # --------- GEM package ------
116
- require 'rubygems'
117
- desc "Create GEM spec file"
118
- default_spec = Gem::Specification.new do |spec|
119
- spec.name = PKG_NAME
120
-
121
- spec.homepage = "http://rubyforge.org/projects/rbcdio/"
122
- spec.summary = "Ruby to libcdio (CD Input and Control library)"
123
- spec.description = <<-EOF
124
- A library for CD-ROM and CD image access. Applications wishing to be
125
- oblivious of the OS- and device-dependent properties of a CD-ROM or of
126
- the specific details of various CD-image formats may benefit from
127
- using this library. A library for working with ISO-9660 filesystems
128
- is included.
129
- EOF
130
-
131
- spec.version = CDIO_VERSION
132
-
133
- spec.author = "Rocky Bernstein"
134
- spec.email = "rocky@gnu.org"
135
- spec.platform = Gem::Platform::RUBY
136
- spec.require_path = "lib"
137
- spec.bindir = "bin"
138
- spec.executables = []
139
- spec.extensions = ["ext/cdio/extconf.rb", "ext/iso9660/extconf.rb"]
140
- spec.autorequire = "rubycdio"
141
- spec.files = FILES.to_a
142
- spec.test_files = FileList['tests/**/*']
143
-
144
- spec.required_ruby_version = '>= 1.8.2'
145
- spec.date = Time.now
146
- spec.rubyforge_project = 'rbcdio'
147
-
148
- # rdoc
149
- spec.has_rdoc = true
150
- end
151
-
152
- # Rake task to build the default package
153
- desc "Build all the packages (gem, tgz, zip)"
154
- Rake::GemPackageTask.new(default_spec) do |pkg|
155
- pkg.need_zip = true
156
- pkg.need_tar = true
157
- end
158
-
159
- ### Windows specification
160
- ##win_spec = default_spec.clone
161
- ##win_spec.extensions = []
162
- ##win_spec.platform = Gem::Platform::WIN32
163
- ##win_spec.files += ["lib/#{SO_NAME}"]
164
- ##
165
- ##desc "Create Windows Gem"
166
- ##task :win32_gem do
167
- ## # Copy the win32 extension the top level directory
168
- ## current_dir = File.expand_path(File.dirname(__FILE__))
169
- ## source = File.join(current_dir, "ext", "win32", SO_NAME)
170
- ## target = File.join(current_dir, "lib", SO_NAME)
171
- ## cp(source, target)
172
- ##
173
- ## # Create the gem, then move it to pkg
174
- ## Gem::Builder.new(win_spec).build
175
- ## gem_file = "#{win_spec.name}-#{win_spec.version}-#{win_spec.platform}.gem"
176
- ## mv(gem_file, "pkg/#{gem_file}")
177
- ##
178
- ## # Remove win extension fro top level directory
179
- ## rm(target)
180
- ##end
181
-
182
-
183
- # --------- Publish ------
184
- desc "Publish rubycdio to RubyForge."
185
- task :publish do
186
- require 'rake/contrib/sshpublisher'
187
-
188
- # Get ruby-debug path
189
- ruby_debug_path = File.expand_path(File.dirname(__FILE__))
190
-
191
- publisher = Rake::SshDirPublisher.new("rockyb@rubyforge.org",
192
- "/var/www/gforge-projects/rbcdio", ruby_debug_path)
193
- end
194
-
195
142
  desc "Create shared objects"
196
143
  task :all do
197
144
  sh "./configure"
@@ -202,33 +149,3 @@ desc "Clear temp files"
202
149
  task :clean do
203
150
  sh "make clean"
204
151
  end
205
-
206
- # --------- RDoc Documentation ------
207
- require 'rake/rdoctask'
208
- Rake::RDocTask.new("rdoc") do |rdoc|
209
- rdoc.rdoc_dir = 'doc'
210
- rdoc.title = "rbcdio-debug"
211
- # Show source inline with line numbers
212
- rdoc.options += ("--exclude data --exclude test --exclude lib/cdio/ " +
213
- "--exclude lib/iso9660/ --exclude pkg/" ).split()
214
- # Make the readme file the start page for the generated html
215
- rdoc.options << '--main' << 'README'
216
- rdoc.rdoc_files.include('lib/*.rb',
217
- 'example/*.rb',
218
- 'example/README',
219
- 'README')
220
- end
221
-
222
- # --------- Regression tests ------
223
- require 'rake/testtask'
224
- Rake::TestTask.new('test') do |t|
225
- t.pattern = 'test/*.rb'
226
- t.warning = true
227
- end
228
-
229
- # 'check' is an the same thing as 'test'
230
- Rake::TestTask.new('check') do |t|
231
- t.pattern = 'test/*.rb'
232
- t.warning = true
233
- end
234
-