sysuuid 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/Makefile +87 -57
- data/ext/extconf.rb +1 -1
- metadata +55 -82
data/ext/Makefile
CHANGED
@@ -4,67 +4,84 @@ SHELL = /bin/sh
|
|
4
4
|
#### Start of system configuration section. ####
|
5
5
|
|
6
6
|
srcdir = .
|
7
|
-
topdir = /
|
8
|
-
hdrdir =
|
9
|
-
|
7
|
+
topdir = /Users/david/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1
|
8
|
+
hdrdir = /Users/david/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1
|
9
|
+
arch_hdrdir = /Users/david/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/$(arch)
|
10
|
+
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
+
prefix = $(DESTDIR)/Users/david/.rvm/rubies/ruby-1.9.2-p290
|
12
|
+
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
10
13
|
exec_prefix = $(prefix)
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
15
|
+
sitehdrdir = $(rubyhdrdir)/site_ruby
|
16
|
+
rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
|
17
|
+
vendordir = $(rubylibprefix)/vendor_ruby
|
18
|
+
sitedir = $(rubylibprefix)/site_ruby
|
19
|
+
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
20
|
+
mandir = $(datarootdir)/man
|
16
21
|
localedir = $(datarootdir)/locale
|
17
|
-
|
18
|
-
|
19
|
-
|
22
|
+
libdir = $(exec_prefix)/lib
|
23
|
+
psdir = $(docdir)
|
24
|
+
pdfdir = $(docdir)
|
25
|
+
dvidir = $(docdir)
|
20
26
|
htmldir = $(docdir)
|
21
|
-
|
27
|
+
infodir = $(datarootdir)/info
|
28
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
29
|
+
oldincludedir = $(DESTDIR)/usr/include
|
22
30
|
includedir = $(prefix)/include
|
23
|
-
|
24
|
-
|
31
|
+
localstatedir = $(prefix)/var
|
32
|
+
sharedstatedir = $(prefix)/com
|
25
33
|
sysconfdir = $(prefix)/etc
|
26
|
-
|
27
|
-
sbindir = $(exec_prefix)/sbin
|
28
|
-
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
29
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
30
|
-
dvidir = $(docdir)
|
31
|
-
vendordir = $(libdir)/ruby/vendor_ruby
|
34
|
+
datadir = $(datarootdir)
|
32
35
|
datarootdir = $(prefix)/share
|
33
|
-
|
36
|
+
libexecdir = $(exec_prefix)/libexec
|
37
|
+
sbindir = $(exec_prefix)/sbin
|
38
|
+
bindir = $(exec_prefix)/bin
|
39
|
+
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
34
40
|
archdir = $(rubylibdir)/$(arch)
|
35
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
36
|
-
datadir = $(datarootdir)
|
37
|
-
localstatedir = $(prefix)/var
|
38
41
|
sitelibdir = $(sitedir)/$(ruby_version)
|
42
|
+
sitearchdir = $(sitelibdir)/$(sitearch)
|
43
|
+
vendorlibdir = $(vendordir)/$(ruby_version)
|
44
|
+
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
39
45
|
|
40
46
|
CC = gcc
|
47
|
+
CXX = g++
|
41
48
|
LIBRUBY = $(LIBRUBY_SO)
|
42
49
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
43
50
|
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
44
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)
|
51
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
52
|
+
OUTFLAG = -o
|
53
|
+
COUTFLAG = -o
|
45
54
|
|
46
55
|
RUBY_EXTCONF_H =
|
47
|
-
|
48
|
-
|
56
|
+
cflags = $(optflags) $(debugflags) $(warnflags)
|
57
|
+
optflags = -O3
|
58
|
+
debugflags = -ggdb
|
59
|
+
warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long
|
60
|
+
CFLAGS = -fno-common $(cflags) -fno-common -pipe -Werror -Wall -Wno-unused-parameter
|
61
|
+
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
49
62
|
DEFS =
|
50
|
-
CPPFLAGS =
|
51
|
-
CXXFLAGS = $(CFLAGS)
|
52
|
-
ldflags = -L.
|
53
|
-
dldflags =
|
54
|
-
|
55
|
-
DLDFLAGS = $(ldflags) $(dldflags)
|
56
|
-
LDSHARED =
|
63
|
+
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
|
64
|
+
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
65
|
+
ldflags = -L.
|
66
|
+
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace
|
67
|
+
ARCH_FLAG =
|
68
|
+
DLDFLAGS = $(ldflags) $(dldflags)
|
69
|
+
LDSHARED = $(CC) -dynamic -bundle
|
70
|
+
LDSHAREDXX = $(CXX) -dynamic -bundle
|
57
71
|
AR = ar
|
58
72
|
EXEEXT =
|
59
73
|
|
74
|
+
RUBY_BASE_NAME = ruby
|
60
75
|
RUBY_INSTALL_NAME = ruby
|
61
|
-
RUBY_SO_NAME = ruby
|
62
|
-
arch =
|
63
|
-
sitearch =
|
64
|
-
ruby_version = 1.
|
65
|
-
ruby = /
|
76
|
+
RUBY_SO_NAME = ruby.1.9.1
|
77
|
+
arch = x86_64-darwin11.2.0
|
78
|
+
sitearch = $(arch)
|
79
|
+
ruby_version = 1.9.1
|
80
|
+
ruby = /Users/david/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
|
66
81
|
RUBY = $(ruby)
|
67
82
|
RM = rm -f
|
83
|
+
RM_RF = $(RUBY) -run -e rm -- -rf
|
84
|
+
RMDIRS = $(RUBY) -run -e rmdir -- -p
|
68
85
|
MAKEDIRS = mkdir -p
|
69
86
|
INSTALL = /usr/bin/install -c
|
70
87
|
INSTALL_PROG = $(INSTALL) -m 0755
|
@@ -81,12 +98,13 @@ DEFFILE =
|
|
81
98
|
|
82
99
|
CLEANFILES = mkmf.log
|
83
100
|
DISTCLEANFILES =
|
101
|
+
DISTCLEANDIRS =
|
84
102
|
|
85
103
|
extout =
|
86
104
|
extout_prefix =
|
87
105
|
target_prefix =
|
88
106
|
LOCAL_LIBS =
|
89
|
-
LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl
|
107
|
+
LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lobjc
|
90
108
|
SRCS = sysuuid.c
|
91
109
|
OBJS = sysuuid.o
|
92
110
|
TARGET = sysuuid
|
@@ -98,28 +116,40 @@ BINDIR = $(bindir)
|
|
98
116
|
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
99
117
|
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
100
118
|
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
119
|
+
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
120
|
+
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
101
121
|
|
102
122
|
TARGET_SO = $(DLLIB)
|
103
|
-
CLEANLIBS = $(TARGET).bundle
|
104
|
-
CLEANOBJS = *.o
|
105
|
-
|
106
|
-
all:
|
107
|
-
static:
|
108
|
-
|
109
|
-
clean
|
123
|
+
CLEANLIBS = $(TARGET).bundle
|
124
|
+
CLEANOBJS = *.o *.bak
|
125
|
+
|
126
|
+
all: $(DLLIB)
|
127
|
+
static: $(STATIC_LIB)
|
128
|
+
.PHONY: all install static install-so install-rb
|
129
|
+
.PHONY: clean clean-so clean-rb
|
130
|
+
|
131
|
+
clean-rb-default::
|
132
|
+
clean-rb::
|
133
|
+
clean-so::
|
134
|
+
clean: clean-so clean-rb-default clean-rb
|
110
135
|
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
111
136
|
|
112
|
-
distclean
|
137
|
+
distclean-rb-default::
|
138
|
+
distclean-rb::
|
139
|
+
distclean-so::
|
140
|
+
distclean: clean distclean-so distclean-rb-default distclean-rb
|
113
141
|
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
114
142
|
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
143
|
+
@-$(RMDIRS) $(DISTCLEANDIRS)
|
115
144
|
|
116
|
-
realclean:
|
145
|
+
realclean: distclean
|
117
146
|
install: install-so install-rb
|
118
147
|
|
119
148
|
install-so: $(RUBYARCHDIR)
|
120
149
|
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
121
150
|
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
122
|
-
|
151
|
+
@-$(MAKEDIRS) $(@D)
|
152
|
+
$(INSTALL_PROG) $(DLLIB) $(@D)
|
123
153
|
install-rb: pre-install-rb install-rb-default
|
124
154
|
install-rb-default: pre-install-rb-default
|
125
155
|
pre-install-rb: Makefile
|
@@ -134,24 +164,24 @@ site-install-rb: install-rb
|
|
134
164
|
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
135
165
|
|
136
166
|
.cc.o:
|
137
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
167
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
138
168
|
|
139
169
|
.cxx.o:
|
140
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
170
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
141
171
|
|
142
172
|
.cpp.o:
|
143
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
173
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
144
174
|
|
145
175
|
.C.o:
|
146
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
176
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
147
177
|
|
148
178
|
.c.o:
|
149
|
-
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
|
179
|
+
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
150
180
|
|
151
181
|
$(DLLIB): $(OBJS) Makefile
|
152
|
-
@-$(RM)
|
182
|
+
@-$(RM) $(@)
|
153
183
|
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
154
184
|
|
155
185
|
|
156
186
|
|
157
|
-
$(OBJS): ruby.h defines.h
|
187
|
+
$(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
data/ext/extconf.rb
CHANGED
metadata
CHANGED
@@ -1,87 +1,70 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sysuuid
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 6
|
10
|
-
version: 0.0.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- David Turnbull
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 3
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
version: "0"
|
30
|
-
type: :runtime
|
31
|
-
requirement: *id001
|
32
|
-
prerelease: false
|
12
|
+
date: 2011-09-20 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
33
15
|
name: rake
|
34
|
-
|
35
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70206325256140 !ruby/object:Gem::Requirement
|
36
17
|
none: false
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
segments:
|
42
|
-
- 0
|
43
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
44
22
|
type: :runtime
|
45
|
-
requirement: *id002
|
46
23
|
prerelease: false
|
24
|
+
version_requirements: *70206325256140
|
25
|
+
- !ruby/object:Gem::Dependency
|
47
26
|
name: rspec
|
48
|
-
|
49
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70206325244860 !ruby/object:Gem::Requirement
|
50
28
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
segments:
|
56
|
-
- 0
|
57
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
58
33
|
type: :runtime
|
59
|
-
requirement: *id003
|
60
34
|
prerelease: false
|
35
|
+
version_requirements: *70206325244860
|
36
|
+
- !ruby/object:Gem::Dependency
|
61
37
|
name: jeweler
|
62
|
-
|
63
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70206325244180 !ruby/object:Gem::Requirement
|
64
39
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
segments:
|
70
|
-
- 0
|
71
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
72
44
|
type: :runtime
|
73
|
-
requirement: *id004
|
74
45
|
prerelease: false
|
46
|
+
version_requirements: *70206325244180
|
47
|
+
- !ruby/object:Gem::Dependency
|
75
48
|
name: should_be_faster
|
76
|
-
|
49
|
+
requirement: &70206325243240 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70206325243240
|
58
|
+
description: ! ' sysuuid # => BBC4937C-344F-47C5-AA36-E19CC070DBCC
|
59
|
+
|
60
|
+
'
|
77
61
|
email: dsturnbull@me.com
|
78
62
|
executables: []
|
79
|
-
|
80
|
-
extensions:
|
63
|
+
extensions:
|
81
64
|
- ext/extconf.rb
|
82
|
-
extra_rdoc_files:
|
65
|
+
extra_rdoc_files:
|
83
66
|
- README
|
84
|
-
files:
|
67
|
+
files:
|
85
68
|
- Rakefile
|
86
69
|
- ext/Makefile
|
87
70
|
- ext/extconf.rb
|
@@ -89,36 +72,26 @@ files:
|
|
89
72
|
- README
|
90
73
|
homepage: http://github.com/dsturnbull/sysuuid
|
91
74
|
licenses: []
|
92
|
-
|
93
75
|
post_install_message:
|
94
76
|
rdoc_options: []
|
95
|
-
|
96
|
-
require_paths:
|
77
|
+
require_paths:
|
97
78
|
- lib
|
98
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
80
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
- 0
|
106
|
-
version: "0"
|
107
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ! '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
86
|
none: false
|
109
|
-
requirements:
|
110
|
-
- -
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
|
113
|
-
segments:
|
114
|
-
- 0
|
115
|
-
version: "0"
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
116
91
|
requirements: []
|
117
|
-
|
118
92
|
rubyforge_project:
|
119
|
-
rubygems_version: 1.8.
|
93
|
+
rubygems_version: 1.8.10
|
120
94
|
signing_key:
|
121
95
|
specification_version: 3
|
122
96
|
summary: uses uuid.h for fast uuid generation
|
123
97
|
test_files: []
|
124
|
-
|