cmowforth-cups 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/extconf.rb +12 -8
  2. metadata +1 -1
data/ext/extconf.rb CHANGED
@@ -1,10 +1,14 @@
1
- require "mkmf"
1
+ if `which cups-config`.empty?
2
+ warn("Couldn't find cups-config. Do you have libcups installed?")
3
+ else
4
+ require "mkmf"
5
+
6
+ cups_cflags = `cups-config --cflags`.chomp
7
+ cups_libs = `cups-config --libs`.chomp
2
8
 
3
- cups_cflags = `cups-config --cflags`.chomp
4
- cups_libs = `cups-config --libs`.chomp
5
-
6
- with_cflags(cups_cflags) {
7
- with_ldflags(cups_libs) {
8
- create_makefile("cups")
9
+ with_cflags(cups_cflags) {
10
+ with_ldflags(cups_libs) {
11
+ create_makefile("cups")
12
+ }
9
13
  }
10
- }
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmowforth-cups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mowforth