Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425262728293031
  1. #! /usr/bin/env ruby
  2. # ruby make-config-pc.rb > ruby.pc
  3. require "rbconfig"
  4. if RUBY_VERSION < "1.9"
  5. include Config
  6. else
  7. include RbConfig
  8. end
  9. version = CONFIG["ruby_version"]
  10. arch = CONFIG["arch"]
  11. rubyhdrdir = CONFIG["rubyhdrdir"]
  12. if rubyhdrdir.nil?
  13. rubyhdrdir = CONFIG["rubylibdir"]
  14. else
  15. rubyhdrdir.chomp("/")
  16. end
  17. dldflags = CONFIG["DLDFLAGS"]
  18. librubyarg = CONFIG["LIBRUBYARG"]
  19. libs = CONFIG["LIBS"]
  20. print <<OUT
  21. Name: Ruby
  22. Description: Object Oriented Script Language
  23. Version: #{version}
  24. URL: http://www.ruby-lang.org
  25. Cflags: -I#{rubyhdrdir}/#{arch} -I#{rubyhdrdir}
  26. Libs: #{dldflags} #{librubyarg} #{libs}
  27. Requires:
  28. OUT