Browse Source

cpan disto

Bosko Devetak 5 years ago
parent
commit
1d9ec0f5d3
11 changed files with 1148 additions and 0 deletions
  1. 5 0
      Changes
  2. 9 0
      MANIFEST
  3. 30 0
      Makefile.PL
  4. 884 0
      Makefile.old
  5. 85 0
      README
  6. 18 0
      ignore.txt
  7. 13 0
      t/00-load.t
  8. 57 0
      t/boilerplate.t
  9. 15 0
      t/manifest.t
  10. 20 0
      t/pod-coverage.t
  11. 12 0
      t/pod.t

+ 5 - 0
Changes

@ -0,0 +1,5 @@
1
Revision history for HBase-JSONRest
2
3
0.01    Date/time
4
        First version, released on an unsuspecting world.
5

+ 9 - 0
MANIFEST

@ -0,0 +1,9 @@
1
Changes
2
lib/HBase/JSONRest.pm
3
Makefile.PL
4
MANIFEST			This list of files
5
README
6
t/00-load.t
7
t/manifest.t
8
t/pod-coverage.t
9
t/pod.t

+ 30 - 0
Makefile.PL

@ -0,0 +1,30 @@
1
use 5.010;
2
use strict;
3
use warnings FATAL => 'all';
4
use ExtUtils::MakeMaker;
5
6
WriteMakefile(
7
    NAME             => 'HBase::JSONRest',
8
    AUTHOR           => q{Bosko Devetak <bosko.devetak@gmail.com>},
9
    VERSION_FROM     => 'lib/HBase/JSONRest.pm',
10
    ABSTRACT_FROM    => 'lib/HBase/JSONRest.pm',
11
    LICENSE          => 'Artistic_2_0',
12
    PL_FILES         => {},
13
    MIN_PERL_VERSION => 5.010,
14
    CONFIGURE_REQUIRES => {
15
        'ExtUtils::MakeMaker' => 0,
16
    },
17
    BUILD_REQUIRES => {
18
        'Test::More' => 0,
19
    },
20
    PREREQ_PM => {
21
        'HTTP::Tiny'   => 0,
22
        'URI::Escape'  => 0,
23
        'MIME::Base64' => 0,
24
        'JSON::XS'     => 0,
25
        'Time::HiRes'  => 0,
26
        'Data::Dumper' => 0,
27
    },
28
    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
29
    clean => { FILES => 'HBase-JSONRest-*' },
30
);

+ 884 - 0
Makefile.old

@ -0,0 +1,884 @@
1
# This Makefile is for the HBase::JSONRest extension to perl.
2
#
3
# It was generated automatically by MakeMaker version
4
# 6.6302 (Revision: 66302) from the contents of
5
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
6
#
7
#       ANY CHANGES MADE HERE WILL BE LOST!
8
#
9
#   MakeMaker ARGV: ()
10
#
11
12
#   MakeMaker Parameters:
13
14
#     ABSTRACT_FROM => q[lib/HBase/JSONRest.pm]
15
#     AUTHOR => [q[Bosko Devetak <bosko.devetak@gmail.com>]]
16
#     BUILD_REQUIRES => { Test::More=>q[0] }
17
#     CONFIGURE_REQUIRES => { ExtUtils::MakeMaker=>q[0] }
18
#     LICENSE => q[Artistic_2_0]
19
#     MIN_PERL_VERSION => q[5.01]
20
#     NAME => q[HBase::JSONRest]
21
#     PL_FILES => {  }
22
#     PREREQ_PM => { Test::More=>q[0], URI::Escape=>q[0], MIME::Base64=>q[0], HTTP::Tiny=>q[0], Data::Dumper=>q[0], JSON::XS=>q[0], Time::HiRes=>q[0] }
23
#     VERSION_FROM => q[lib/HBase/JSONRest.pm]
24
#     clean => { FILES=>q[HBase-JSONRest-*] }
25
#     dist => { COMPRESS=>q[gzip -9f], SUFFIX=>q[gz] }
26
27
# --- MakeMaker post_initialize section:
28
29
30
# --- MakeMaker const_config section:
31
32
# These definitions are from config.sh (via /System/Library/Perl/5.16/darwin-thread-multi-2level/Config.pm).
33
# They may have been overridden via Makefile.PL or on the command line.
34
AR = ar
35
CC = cc
36
CCCDLFLAGS =  
37
CCDLFLAGS =  
38
DLEXT = bundle
39
DLSRC = dl_dlopen.xs
40
EXE_EXT = 
41
FULL_AR = /usr/bin/ar
42
LD = cc -mmacosx-version-min=10.9
43
LDDLFLAGS = -arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector
44
LDFLAGS = -arch x86_64 -arch i386 -fstack-protector -L/usr/local/lib
45
LIBC = 
46
LIB_EXT = .a
47
OBJ_EXT = .o
48
OSNAME = darwin
49
OSVERS = 13.0
50
RANLIB = /usr/bin/ar s
51
SITELIBEXP = /Library/Perl/5.16
52
SITEARCHEXP = /Library/Perl/5.16/darwin-thread-multi-2level
53
SO = dylib
54
VENDORARCHEXP = /Network/Library/Perl/5.16/darwin-thread-multi-2level
55
VENDORLIBEXP = /Network/Library/Perl/5.16
56
57
58
# --- MakeMaker constants section:
59
AR_STATIC_ARGS = cr
60
DIRFILESEP = /
61
DFSEP = $(DIRFILESEP)
62
NAME = HBase::JSONRest
63
NAME_SYM = HBase_JSONRest
64
VERSION = 0.1
65
VERSION_MACRO = VERSION
66
VERSION_SYM = 0_1
67
DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
68
XS_VERSION = 0.1
69
XS_VERSION_MACRO = XS_VERSION
70
XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
71
INST_ARCHLIB = blib/arch
72
INST_SCRIPT = blib/script
73
INST_BIN = blib/bin
74
INST_LIB = blib/lib
75
INST_MAN1DIR = blib/man1
76
INST_MAN3DIR = blib/man3
77
MAN1EXT = 1
78
MAN3EXT = 3pm
79
INSTALLDIRS = site
80
DESTDIR = 
81
PREFIX = $(SITEPREFIX)
82
PERLPREFIX = /
83
SITEPREFIX = /usr/local
84
VENDORPREFIX = /usr/local
85
INSTALLPRIVLIB = /Library/Perl/Updates/5.16.2
86
DESTINSTALLPRIVLIB = $(DESTDIR)$(INSTALLPRIVLIB)
87
INSTALLSITELIB = /Library/Perl/5.16
88
DESTINSTALLSITELIB = $(DESTDIR)$(INSTALLSITELIB)
89
INSTALLVENDORLIB = /Network/Library/Perl/5.16
90
DESTINSTALLVENDORLIB = $(DESTDIR)$(INSTALLVENDORLIB)
91
INSTALLARCHLIB = /Library/Perl/Updates/5.16.2/darwin-thread-multi-2level
92
DESTINSTALLARCHLIB = $(DESTDIR)$(INSTALLARCHLIB)
93
INSTALLSITEARCH = /Library/Perl/5.16/darwin-thread-multi-2level
94
DESTINSTALLSITEARCH = $(DESTDIR)$(INSTALLSITEARCH)
95
INSTALLVENDORARCH = /Network/Library/Perl/5.16/darwin-thread-multi-2level
96
DESTINSTALLVENDORARCH = $(DESTDIR)$(INSTALLVENDORARCH)
97
INSTALLBIN = /usr/bin
98
DESTINSTALLBIN = $(DESTDIR)$(INSTALLBIN)
99
INSTALLSITEBIN = /usr/local/bin
100
DESTINSTALLSITEBIN = $(DESTDIR)$(INSTALLSITEBIN)
101
INSTALLVENDORBIN = /usr/local/bin
102
DESTINSTALLVENDORBIN = $(DESTDIR)$(INSTALLVENDORBIN)
103
INSTALLSCRIPT = /usr/bin
104
DESTINSTALLSCRIPT = $(DESTDIR)$(INSTALLSCRIPT)
105
INSTALLSITESCRIPT = /usr/local/bin
106
DESTINSTALLSITESCRIPT = $(DESTDIR)$(INSTALLSITESCRIPT)
107
INSTALLVENDORSCRIPT = /usr/local/bin
108
DESTINSTALLVENDORSCRIPT = $(DESTDIR)$(INSTALLVENDORSCRIPT)
109
INSTALLMAN1DIR = /usr/share/man/man1
110
DESTINSTALLMAN1DIR = $(DESTDIR)$(INSTALLMAN1DIR)
111
INSTALLSITEMAN1DIR = /usr/local/share/man/man1
112
DESTINSTALLSITEMAN1DIR = $(DESTDIR)$(INSTALLSITEMAN1DIR)
113
INSTALLVENDORMAN1DIR = /usr/local/share/man/man1
114
DESTINSTALLVENDORMAN1DIR = $(DESTDIR)$(INSTALLVENDORMAN1DIR)
115
INSTALLMAN3DIR = /usr/share/man/man3
116
DESTINSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR)
117
INSTALLSITEMAN3DIR = /usr/local/share/man/man3
118
DESTINSTALLSITEMAN3DIR = $(DESTDIR)$(INSTALLSITEMAN3DIR)
119
INSTALLVENDORMAN3DIR = /usr/local/share/man/man3
120
DESTINSTALLVENDORMAN3DIR = $(DESTDIR)$(INSTALLVENDORMAN3DIR)
121
PERL_LIB = /System/Library/Perl/5.16
122
PERL_ARCHLIB = /System/Library/Perl/5.16/darwin-thread-multi-2level
123
LIBPERL_A = libperl.a
124
FIRST_MAKEFILE = Makefile
125
MAKEFILE_OLD = Makefile.old
126
MAKE_APERL_FILE = Makefile.aperl
127
PERLMAINCC = $(CC)
128
PERL_INC = /System/Library/Perl/5.16/darwin-thread-multi-2level/CORE
129
PERL = /usr/bin/perl
130
FULLPERL = /usr/bin/perl
131
ABSPERL = $(PERL)
132
PERLRUN = $(PERL)
133
FULLPERLRUN = $(FULLPERL)
134
ABSPERLRUN = $(ABSPERL)
135
PERLRUNINST = $(PERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
136
FULLPERLRUNINST = $(FULLPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
137
ABSPERLRUNINST = $(ABSPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
138
PERL_CORE = 0
139
PERM_DIR = 755
140
PERM_RW = 644
141
PERM_RWX = 755
142
143
MAKEMAKER   = /System/Library/Perl/5.16/ExtUtils/MakeMaker.pm
144
MM_VERSION  = 6.6302
145
MM_REVISION = 66302
146
147
# FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle).
148
# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle)
149
# PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar)
150
# DLBASE  = Basename part of dynamic library. May be just equal BASEEXT.
151
MAKE = make
152
FULLEXT = HBase/JSONRest
153
BASEEXT = JSONRest
154
PARENT_NAME = HBase
155
DLBASE = $(BASEEXT)
156
VERSION_FROM = lib/HBase/JSONRest.pm
157
OBJECT = 
158
LDFROM = $(OBJECT)
159
LINKTYPE = dynamic
160
BOOTDEP = 
161
162
# Handy lists of source code files:
163
XS_FILES = 
164
C_FILES  = 
165
O_FILES  = 
166
H_FILES  = 
167
MAN1PODS = 
168
MAN3PODS = lib/HBase/JSONRest.pm
169
170
# Where is the Config information that we are using/depend on
171
CONFIGDEP = $(PERL_ARCHLIB)$(DFSEP)Config.pm $(PERL_INC)$(DFSEP)config.h
172
173
# Where to build things
174
INST_LIBDIR      = $(INST_LIB)/HBase
175
INST_ARCHLIBDIR  = $(INST_ARCHLIB)/HBase
176
177
INST_AUTODIR     = $(INST_LIB)/auto/$(FULLEXT)
178
INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT)
179
180
INST_STATIC      = 
181
INST_DYNAMIC     = 
182
INST_BOOT        = 
183
184
# Extra linker info
185
EXPORT_LIST        = 
186
PERL_ARCHIVE       = 
187
PERL_ARCHIVE_AFTER = 
188
189
190
TO_INST_PM = lib/HBase/JSONRest.pm
191
192
PM_TO_BLIB = lib/HBase/JSONRest.pm \
193
	blib/lib/HBase/JSONRest.pm
194
195
196
# --- MakeMaker platform_constants section:
197
MM_Unix_VERSION = 6.6302
198
PERL_MALLOC_DEF = -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
199
200
201
# --- MakeMaker tool_autosplit section:
202
# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
203
AUTOSPLITFILE = $(ABSPERLRUN)  -e 'use AutoSplit;  autosplit($$$$ARGV[0], $$$$ARGV[1], 0, 1, 1)' --
204
205
206
207
# --- MakeMaker tool_xsubpp section:
208
209
210
# --- MakeMaker tools_other section:
211
SHELL = /bin/sh
212
CHMOD = chmod
213
CP = cp
214
MV = mv
215
NOOP = $(TRUE)
216
NOECHO = @
217
RM_F = rm -f
218
RM_RF = rm -rf
219
TEST_F = test -f
220
TOUCH = touch
221
UMASK_NULL = umask 0
222
DEV_NULL = > /dev/null 2>&1
223
MKPATH = $(ABSPERLRUN) -MExtUtils::Command -e 'mkpath' --
224
EQUALIZE_TIMESTAMP = $(ABSPERLRUN) -MExtUtils::Command -e 'eqtime' --
225
FALSE = false
226
TRUE = true
227
ECHO = echo
228
ECHO_N = echo -n
229
UNINST = 0
230
VERBINST = 0
231
MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e 'install([ from_to => {@ARGV}, verbose => '\''$(VERBINST)'\'', uninstall_shadows => '\''$(UNINST)'\'', dir_mode => '\''$(PERM_DIR)'\'' ]);' --
232
DOC_INSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'perllocal_install' --
233
UNINSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'uninstall' --
234
WARN_IF_OLD_PACKLIST = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'warn_if_old_packlist' --
235
MACROSTART = 
236
MACROEND = 
237
USEMAKEFILE = -f
238
FIXIN = $(ABSPERLRUN) -MExtUtils::MY -e 'MY->fixin(shift)' --
239
240
241
# --- MakeMaker makemakerdflt section:
242
makemakerdflt : all
243
	$(NOECHO) $(NOOP)
244
245
246
# --- MakeMaker dist section:
247
TAR = COPY_EXTENDED_ATTRIBUTES_DISABLE=1 COPYFILE_DISABLE=1 tar
248
TARFLAGS = cvf
249
ZIP = zip
250
ZIPFLAGS = -r
251
COMPRESS = gzip -9f
252
SUFFIX = gz
253
SHAR = shar
254
PREOP = $(NOECHO) $(NOOP)
255
POSTOP = $(NOECHO) $(NOOP)
256
TO_UNIX = $(NOECHO) $(NOOP)
257
CI = ci -u
258
RCS_LABEL = rcs -Nv$(VERSION_SYM): -q
259
DIST_CP = best
260
DIST_DEFAULT = tardist
261
DISTNAME = HBase-JSONRest
262
DISTVNAME = HBase-JSONRest-0.1
263
264
265
# --- MakeMaker macro section:
266
267
268
# --- MakeMaker depend section:
269
270
271
# --- MakeMaker cflags section:
272
273
274
# --- MakeMaker const_loadlibs section:
275
276
277
# --- MakeMaker const_cccmd section:
278
279
280
# --- MakeMaker post_constants section:
281
282
283
# --- MakeMaker pasthru section:
284
285
PASTHRU = LIBPERL_A="$(LIBPERL_A)"\
286
	LINKTYPE="$(LINKTYPE)"\
287
	PREFIX="$(PREFIX)"
288
289
290
# --- MakeMaker special_targets section:
291
.SUFFIXES : .xs .c .C .cpp .i .s .cxx .cc $(OBJ_EXT)
292
293
.PHONY: all config static dynamic test linkext manifest blibdirs clean realclean disttest distdir
294
295
296
297
# --- MakeMaker c_o section:
298
299
300
# --- MakeMaker xs_c section:
301
302
303
# --- MakeMaker xs_o section:
304
305
306
# --- MakeMaker top_targets section:
307
all :: pure_all manifypods
308
	$(NOECHO) $(NOOP)
309
310
311
pure_all :: config pm_to_blib subdirs linkext
312
	$(NOECHO) $(NOOP)
313
314
subdirs :: $(MYEXTLIB)
315
	$(NOECHO) $(NOOP)
316
317
config :: $(FIRST_MAKEFILE) blibdirs
318
	$(NOECHO) $(NOOP)
319
320
help :
321
	perldoc ExtUtils::MakeMaker
322
323
324
# --- MakeMaker blibdirs section:
325
blibdirs : $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists
326
	$(NOECHO) $(NOOP)
327
328
# Backwards compat with 6.18 through 6.25
329
blibdirs.ts : blibdirs
330
	$(NOECHO) $(NOOP)
331
332
$(INST_LIBDIR)$(DFSEP).exists :: Makefile.PL
333
	$(NOECHO) $(MKPATH) $(INST_LIBDIR)
334
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_LIBDIR)
335
	$(NOECHO) $(TOUCH) $(INST_LIBDIR)$(DFSEP).exists
336
337
$(INST_ARCHLIB)$(DFSEP).exists :: Makefile.PL
338
	$(NOECHO) $(MKPATH) $(INST_ARCHLIB)
339
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHLIB)
340
	$(NOECHO) $(TOUCH) $(INST_ARCHLIB)$(DFSEP).exists
341
342
$(INST_AUTODIR)$(DFSEP).exists :: Makefile.PL
343
	$(NOECHO) $(MKPATH) $(INST_AUTODIR)
344
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_AUTODIR)
345
	$(NOECHO) $(TOUCH) $(INST_AUTODIR)$(DFSEP).exists
346
347
$(INST_ARCHAUTODIR)$(DFSEP).exists :: Makefile.PL
348
	$(NOECHO) $(MKPATH) $(INST_ARCHAUTODIR)
349
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHAUTODIR)
350
	$(NOECHO) $(TOUCH) $(INST_ARCHAUTODIR)$(DFSEP).exists
351
352
$(INST_BIN)$(DFSEP).exists :: Makefile.PL
353
	$(NOECHO) $(MKPATH) $(INST_BIN)
354
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_BIN)
355
	$(NOECHO) $(TOUCH) $(INST_BIN)$(DFSEP).exists
356
357
$(INST_SCRIPT)$(DFSEP).exists :: Makefile.PL
358
	$(NOECHO) $(MKPATH) $(INST_SCRIPT)
359
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_SCRIPT)
360
	$(NOECHO) $(TOUCH) $(INST_SCRIPT)$(DFSEP).exists
361
362
$(INST_MAN1DIR)$(DFSEP).exists :: Makefile.PL
363
	$(NOECHO) $(MKPATH) $(INST_MAN1DIR)
364
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN1DIR)
365
	$(NOECHO) $(TOUCH) $(INST_MAN1DIR)$(DFSEP).exists
366
367
$(INST_MAN3DIR)$(DFSEP).exists :: Makefile.PL
368
	$(NOECHO) $(MKPATH) $(INST_MAN3DIR)
369
	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN3DIR)
370
	$(NOECHO) $(TOUCH) $(INST_MAN3DIR)$(DFSEP).exists
371
372
373
374
# --- MakeMaker linkext section:
375
376
linkext :: $(LINKTYPE)
377
	$(NOECHO) $(NOOP)
378
379
380
# --- MakeMaker dlsyms section:
381
382
383
# --- MakeMaker dynamic section:
384
385
dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT)
386
	$(NOECHO) $(NOOP)
387
388
389
# --- MakeMaker dynamic_bs section:
390
391
BOOTSTRAP =
392
393
394
# --- MakeMaker dynamic_lib section:
395
396
397
# --- MakeMaker static section:
398
399
## $(INST_PM) has been moved to the all: target.
400
## It remains here for awhile to allow for old usage: "make static"
401
static :: $(FIRST_MAKEFILE) $(INST_STATIC)
402
	$(NOECHO) $(NOOP)
403
404
405
# --- MakeMaker static_lib section:
406
407
408
# --- MakeMaker manifypods section:
409
410
POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--"
411
POD2MAN = $(POD2MAN_EXE)
412
413
414
manifypods : pure_all  \
415
	lib/HBase/JSONRest.pm
416
	$(NOECHO) $(POD2MAN) --section=3 --perm_rw=$(PERM_RW) \
417
	  lib/HBase/JSONRest.pm $(INST_MAN3DIR)/HBase::JSONRest.$(MAN3EXT) 
418
419
420
421
422
# --- MakeMaker processPL section:
423
424
425
# --- MakeMaker installbin section:
426
427
428
# --- MakeMaker subdirs section:
429
430
# none
431
432
# --- MakeMaker clean_subdirs section:
433
clean_subdirs :
434
	$(NOECHO) $(NOOP)
435
436
437
# --- MakeMaker clean section:
438
439
# Delete temporary files but do not touch installed files. We don't delete
440
# the Makefile here so a later make realclean still has a makefile to use.
441
442
clean :: clean_subdirs
443
	- $(RM_F) \
444
	  *$(LIB_EXT) core \
445
	  core.[0-9] $(INST_ARCHAUTODIR)/extralibs.all \
446
	  core.[0-9][0-9] $(BASEEXT).bso \
447
	  pm_to_blib.ts MYMETA.json \
448
	  core.[0-9][0-9][0-9][0-9] MYMETA.yml \
449
	  $(BASEEXT).x $(BOOTSTRAP) \
450
	  perl$(EXE_EXT) tmon.out \
451
	  *$(OBJ_EXT) pm_to_blib \
452
	  $(INST_ARCHAUTODIR)/extralibs.ld blibdirs.ts \
453
	  core.[0-9][0-9][0-9][0-9][0-9] *perl.core \
454
	  core.*perl.*.? $(MAKE_APERL_FILE) \
455
	  $(BASEEXT).def perl \
456
	  core.[0-9][0-9][0-9] mon.out \
457
	  lib$(BASEEXT).def perlmain.c \
458
	  perl.exe so_locations \
459
	  $(BASEEXT).exp 
460
	- $(RM_RF) \
461
	  blib HBase-JSONRest-* 
462
	- $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)
463
464
465
# --- MakeMaker realclean_subdirs section:
466
realclean_subdirs :
467
	$(NOECHO) $(NOOP)
468
469
470
# --- MakeMaker realclean section:
471
# Delete temporary files (via clean) and also delete dist files
472
realclean purge ::  clean realclean_subdirs
473
	- $(RM_F) \
474
	  $(MAKEFILE_OLD) $(FIRST_MAKEFILE) 
475
	- $(RM_RF) \
476
	  $(DISTVNAME) 
477
478
479
# --- MakeMaker metafile section:
480
metafile : create_distdir
481
	$(NOECHO) $(ECHO) Generating META.yml
482
	$(NOECHO) $(ECHO) '---' > META_new.yml
483
	$(NOECHO) $(ECHO) 'abstract: '\''Simple REST client for HBase'\''' >> META_new.yml
484
	$(NOECHO) $(ECHO) 'author:' >> META_new.yml
485
	$(NOECHO) $(ECHO) '  - '\''Bosko Devetak <bosko.devetak@gmail.com>'\''' >> META_new.yml
486
	$(NOECHO) $(ECHO) 'build_requires:' >> META_new.yml
487
	$(NOECHO) $(ECHO) '  Test::More: 0' >> META_new.yml
488
	$(NOECHO) $(ECHO) 'configure_requires:' >> META_new.yml
489
	$(NOECHO) $(ECHO) '  ExtUtils::MakeMaker: 0' >> META_new.yml
490
	$(NOECHO) $(ECHO) 'dynamic_config: 1' >> META_new.yml
491
	$(NOECHO) $(ECHO) 'generated_by: '\''ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921'\''' >> META_new.yml
492
	$(NOECHO) $(ECHO) 'license: unknown' >> META_new.yml
493
	$(NOECHO) $(ECHO) 'meta-spec:' >> META_new.yml
494
	$(NOECHO) $(ECHO) '  url: http://module-build.sourceforge.net/META-spec-v1.4.html' >> META_new.yml
495
	$(NOECHO) $(ECHO) '  version: 1.4' >> META_new.yml
496
	$(NOECHO) $(ECHO) 'name: HBase-JSONRest' >> META_new.yml
497
	$(NOECHO) $(ECHO) 'no_index:' >> META_new.yml
498
	$(NOECHO) $(ECHO) '  directory:' >> META_new.yml
499
	$(NOECHO) $(ECHO) '    - t' >> META_new.yml
500
	$(NOECHO) $(ECHO) '    - inc' >> META_new.yml
501
	$(NOECHO) $(ECHO) 'requires:' >> META_new.yml
502
	$(NOECHO) $(ECHO) '  Data::Dumper: 0' >> META_new.yml
503
	$(NOECHO) $(ECHO) '  HTTP::Tiny: 0' >> META_new.yml
504
	$(NOECHO) $(ECHO) '  JSON::XS: 0' >> META_new.yml
505
	$(NOECHO) $(ECHO) '  MIME::Base64: 0' >> META_new.yml
506
	$(NOECHO) $(ECHO) '  Time::HiRes: 0' >> META_new.yml
507
	$(NOECHO) $(ECHO) '  URI::Escape: 0' >> META_new.yml
508
	$(NOECHO) $(ECHO) '  perl: 5.01' >> META_new.yml
509
	$(NOECHO) $(ECHO) 'version: 0.1' >> META_new.yml
510
	-$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml
511
	$(NOECHO) $(ECHO) Generating META.json
512
	$(NOECHO) $(ECHO) '{' > META_new.json
513
	$(NOECHO) $(ECHO) '   "abstract" : "Simple REST client for HBase",' >> META_new.json
514
	$(NOECHO) $(ECHO) '   "author" : [' >> META_new.json
515
	$(NOECHO) $(ECHO) '      "Bosko Devetak <bosko.devetak@gmail.com>"' >> META_new.json
516
	$(NOECHO) $(ECHO) '   ],' >> META_new.json
517
	$(NOECHO) $(ECHO) '   "dynamic_config" : 1,' >> META_new.json
518
	$(NOECHO) $(ECHO) '   "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120921",' >> META_new.json
519
	$(NOECHO) $(ECHO) '   "license" : [' >> META_new.json
520
	$(NOECHO) $(ECHO) '      "unknown"' >> META_new.json
521
	$(NOECHO) $(ECHO) '   ],' >> META_new.json
522
	$(NOECHO) $(ECHO) '   "meta-spec" : {' >> META_new.json
523
	$(NOECHO) $(ECHO) '      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",' >> META_new.json
524
	$(NOECHO) $(ECHO) '      "version" : "2"' >> META_new.json
525
	$(NOECHO) $(ECHO) '   },' >> META_new.json
526
	$(NOECHO) $(ECHO) '   "name" : "HBase-JSONRest",' >> META_new.json
527
	$(NOECHO) $(ECHO) '   "no_index" : {' >> META_new.json
528
	$(NOECHO) $(ECHO) '      "directory" : [' >> META_new.json
529
	$(NOECHO) $(ECHO) '         "t",' >> META_new.json
530
	$(NOECHO) $(ECHO) '         "inc"' >> META_new.json
531
	$(NOECHO) $(ECHO) '      ]' >> META_new.json
532
	$(NOECHO) $(ECHO) '   },' >> META_new.json
533
	$(NOECHO) $(ECHO) '   "prereqs" : {' >> META_new.json
534
	$(NOECHO) $(ECHO) '      "build" : {' >> META_new.json
535
	$(NOECHO) $(ECHO) '         "requires" : {' >> META_new.json
536
	$(NOECHO) $(ECHO) '            "Test::More" : "0"' >> META_new.json
537
	$(NOECHO) $(ECHO) '         }' >> META_new.json
538
	$(NOECHO) $(ECHO) '      },' >> META_new.json
539
	$(NOECHO) $(ECHO) '      "configure" : {' >> META_new.json
540
	$(NOECHO) $(ECHO) '         "requires" : {' >> META_new.json
541
	$(NOECHO) $(ECHO) '            "ExtUtils::MakeMaker" : "0"' >> META_new.json
542
	$(NOECHO) $(ECHO) '         }' >> META_new.json
543
	$(NOECHO) $(ECHO) '      },' >> META_new.json
544
	$(NOECHO) $(ECHO) '      "runtime" : {' >> META_new.json
545
	$(NOECHO) $(ECHO) '         "requires" : {' >> META_new.json
546
	$(NOECHO) $(ECHO) '            "Data::Dumper" : "0",' >> META_new.json
547
	$(NOECHO) $(ECHO) '            "HTTP::Tiny" : "0",' >> META_new.json
548
	$(NOECHO) $(ECHO) '            "JSON::XS" : "0",' >> META_new.json
549
	$(NOECHO) $(ECHO) '            "MIME::Base64" : "0",' >> META_new.json
550
	$(NOECHO) $(ECHO) '            "Time::HiRes" : "0",' >> META_new.json
551
	$(NOECHO) $(ECHO) '            "URI::Escape" : "0",' >> META_new.json
552
	$(NOECHO) $(ECHO) '            "perl" : "5.01"' >> META_new.json
553
	$(NOECHO) $(ECHO) '         }' >> META_new.json
554
	$(NOECHO) $(ECHO) '      }' >> META_new.json
555
	$(NOECHO) $(ECHO) '   },' >> META_new.json
556
	$(NOECHO) $(ECHO) '   "release_status" : "stable",' >> META_new.json
557
	$(NOECHO) $(ECHO) '   "version" : "0.1"' >> META_new.json
558
	$(NOECHO) $(ECHO) '}' >> META_new.json
559
	-$(NOECHO) $(MV) META_new.json $(DISTVNAME)/META.json
560
561
562
# --- MakeMaker signature section:
563
signature :
564
	cpansign -s
565
566
567
# --- MakeMaker dist_basics section:
568
distclean :: realclean distcheck
569
	$(NOECHO) $(NOOP)
570
571
distcheck :
572
	$(PERLRUN) "-MExtUtils::Manifest=fullcheck" -e fullcheck
573
574
skipcheck :
575
	$(PERLRUN) "-MExtUtils::Manifest=skipcheck" -e skipcheck
576
577
manifest :
578
	$(PERLRUN) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest
579
580
veryclean : realclean
581
	$(RM_F) *~ */*~ *.orig */*.orig *.bak */*.bak *.old */*.old 
582
583
584
585
# --- MakeMaker dist_core section:
586
587
dist : $(DIST_DEFAULT) $(FIRST_MAKEFILE)
588
	$(NOECHO) $(ABSPERLRUN) -l -e 'print '\''Warning: Makefile possibly out of date with $(VERSION_FROM)'\''' \
589
	  -e '    if -e '\''$(VERSION_FROM)'\'' and -M '\''$(VERSION_FROM)'\'' < -M '\''$(FIRST_MAKEFILE)'\'';' --
590
591
tardist : $(DISTVNAME).tar$(SUFFIX)
592
	$(NOECHO) $(NOOP)
593
594
uutardist : $(DISTVNAME).tar$(SUFFIX)
595
	uuencode $(DISTVNAME).tar$(SUFFIX) $(DISTVNAME).tar$(SUFFIX) > $(DISTVNAME).tar$(SUFFIX)_uu
596
597
$(DISTVNAME).tar$(SUFFIX) : distdir
598
	$(PREOP)
599
	$(TO_UNIX)
600
	$(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME)
601
	$(RM_RF) $(DISTVNAME)
602
	$(COMPRESS) $(DISTVNAME).tar
603
	$(POSTOP)
604
605
zipdist : $(DISTVNAME).zip
606
	$(NOECHO) $(NOOP)
607
608
$(DISTVNAME).zip : distdir
609
	$(PREOP)
610
	$(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME)
611
	$(RM_RF) $(DISTVNAME)
612
	$(POSTOP)
613
614
shdist : distdir
615
	$(PREOP)
616
	$(SHAR) $(DISTVNAME) > $(DISTVNAME).shar
617
	$(RM_RF) $(DISTVNAME)
618
	$(POSTOP)
619
620
621
# --- MakeMaker distdir section:
622
create_distdir :
623
	$(RM_RF) $(DISTVNAME)
624
	$(PERLRUN) "-MExtUtils::Manifest=manicopy,maniread" \
625
		-e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');"
626
627
distdir : create_distdir distmeta 
628
	$(NOECHO) $(NOOP)
629
630
631
632
# --- MakeMaker dist_test section:
633
disttest : distdir
634
	cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL 
635
	cd $(DISTVNAME) && $(MAKE) $(PASTHRU)
636
	cd $(DISTVNAME) && $(MAKE) test $(PASTHRU)
637
638
639
640
# --- MakeMaker dist_ci section:
641
642
ci :
643
	$(PERLRUN) "-MExtUtils::Manifest=maniread" \
644
	  -e "@all = keys %{ maniread() };" \
645
	  -e "print(qq{Executing $(CI) @all\n}); system(qq{$(CI) @all});" \
646
	  -e "print(qq{Executing $(RCS_LABEL) ...\n}); system(qq{$(RCS_LABEL) @all});"
647
648
649
# --- MakeMaker distmeta section:
650
distmeta : create_distdir metafile
651
	$(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'exit unless -e q{META.yml};' \
652
	  -e 'eval { maniadd({q{META.yml} => q{Module YAML meta-data (added by MakeMaker)}}) }' \
653
	  -e '    or print "Could not add META.yml to MANIFEST: $$$${'\''@'\''}\n"' --
654
	$(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'exit unless -f q{META.json};' \
655
	  -e 'eval { maniadd({q{META.json} => q{Module JSON meta-data (added by MakeMaker)}}) }' \
656
	  -e '    or print "Could not add META.json to MANIFEST: $$$${'\''@'\''}\n"' --
657
658
659
660
# --- MakeMaker distsignature section:
661
distsignature : create_distdir
662
	$(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{SIGNATURE} => q{Public-key signature (added by MakeMaker)}}) } ' \
663
	  -e '    or print "Could not add SIGNATURE to MANIFEST: $$$${'\''@'\''}\n"' --
664
	$(NOECHO) cd $(DISTVNAME) && $(TOUCH) SIGNATURE
665
	cd $(DISTVNAME) && cpansign -s
666
667
668
669
# --- MakeMaker install section:
670
671
install :: pure_install doc_install
672
	$(NOECHO) $(NOOP)
673
674
install_perl :: pure_perl_install doc_perl_install
675
	$(NOECHO) $(NOOP)
676
677
install_site :: pure_site_install doc_site_install
678
	$(NOECHO) $(NOOP)
679
680
install_vendor :: pure_vendor_install doc_vendor_install
681
	$(NOECHO) $(NOOP)
682
683
pure_install :: pure_$(INSTALLDIRS)_install
684
	$(NOECHO) $(NOOP)
685
686
doc_install :: doc_$(INSTALLDIRS)_install
687
	$(NOECHO) $(NOOP)
688
689
pure__install : pure_site_install
690
	$(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
691
692
doc__install : doc_site_install
693
	$(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
694
695
pure_perl_install :: all
696
	$(NOECHO) $(MOD_INSTALL) \
697
		read $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist \
698
		write $(DESTINSTALLARCHLIB)/auto/$(FULLEXT)/.packlist \
699
		$(INST_LIB) $(DESTINSTALLPRIVLIB) \
700
		$(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \
701
		$(INST_BIN) $(DESTINSTALLBIN) \
702
		$(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
703
		$(INST_MAN1DIR) $(DESTINSTALLMAN1DIR) \
704
		$(INST_MAN3DIR) $(DESTINSTALLMAN3DIR)
705
	$(NOECHO) $(WARN_IF_OLD_PACKLIST) \
706
		$(SITEARCHEXP)/auto/$(FULLEXT)
707
708
709
pure_site_install :: all
710
	$(NOECHO) $(MOD_INSTALL) \
711
		read $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist \
712
		write $(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist \
713
		$(INST_LIB) $(DESTINSTALLSITELIB) \
714
		$(INST_ARCHLIB) $(DESTINSTALLSITEARCH) \
715
		$(INST_BIN) $(DESTINSTALLSITEBIN) \
716
		$(INST_SCRIPT) $(DESTINSTALLSITESCRIPT) \
717
		$(INST_MAN1DIR) $(DESTINSTALLSITEMAN1DIR) \
718
		$(INST_MAN3DIR) $(DESTINSTALLSITEMAN3DIR)
719
	$(NOECHO) $(WARN_IF_OLD_PACKLIST) \
720
		$(PERL_ARCHLIB)/auto/$(FULLEXT)
721
722
pure_vendor_install :: all
723
	$(NOECHO) $(MOD_INSTALL) \
724
		read $(VENDORARCHEXP)/auto/$(FULLEXT)/.packlist \
725
		write $(DESTINSTALLVENDORARCH)/auto/$(FULLEXT)/.packlist \
726
		$(INST_LIB) $(DESTINSTALLVENDORLIB) \
727
		$(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
728
		$(INST_BIN) $(DESTINSTALLVENDORBIN) \
729
		$(INST_SCRIPT) $(DESTINSTALLVENDORSCRIPT) \
730
		$(INST_MAN1DIR) $(DESTINSTALLVENDORMAN1DIR) \
731
		$(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
732
733
doc_perl_install :: all
734
	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
735
	-$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
736
	-$(NOECHO) $(DOC_INSTALL) \
737
		"Module" "$(NAME)" \
738
		"installed into" "$(INSTALLPRIVLIB)" \
739
		LINKTYPE "$(LINKTYPE)" \
740
		VERSION "$(VERSION)" \
741
		EXE_FILES "$(EXE_FILES)" \
742
		>> $(DESTINSTALLARCHLIB)/perllocal.pod
743
744
doc_site_install :: all
745
	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
746
	-$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
747
	-$(NOECHO) $(DOC_INSTALL) \
748
		"Module" "$(NAME)" \
749
		"installed into" "$(INSTALLSITELIB)" \
750
		LINKTYPE "$(LINKTYPE)" \
751
		VERSION "$(VERSION)" \
752
		EXE_FILES "$(EXE_FILES)" \
753
		>> $(DESTINSTALLARCHLIB)/perllocal.pod
754
755
doc_vendor_install :: all
756
	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
757
	-$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
758
	-$(NOECHO) $(DOC_INSTALL) \
759
		"Module" "$(NAME)" \
760
		"installed into" "$(INSTALLVENDORLIB)" \
761
		LINKTYPE "$(LINKTYPE)" \
762
		VERSION "$(VERSION)" \
763
		EXE_FILES "$(EXE_FILES)" \
764
		>> $(DESTINSTALLARCHLIB)/perllocal.pod
765
766
767
uninstall :: uninstall_from_$(INSTALLDIRS)dirs
768
	$(NOECHO) $(NOOP)
769
770
uninstall_from_perldirs ::
771
	$(NOECHO) $(UNINSTALL) $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist
772
773
uninstall_from_sitedirs ::
774
	$(NOECHO) $(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist
775
776
uninstall_from_vendordirs ::
777
	$(NOECHO) $(UNINSTALL) $(VENDORARCHEXP)/auto/$(FULLEXT)/.packlist
778
779
780
# --- MakeMaker force section:
781
# Phony target to force checking subdirectories.
782
FORCE :
783
	$(NOECHO) $(NOOP)
784
785
786
# --- MakeMaker perldepend section:
787
788
789
# --- MakeMaker makefile section:
790
# We take a very conservative approach here, but it's worth it.
791
# We move Makefile to Makefile.old here to avoid gnu make looping.
792
$(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP)
793
	$(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?"
794
	$(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..."
795
	-$(NOECHO) $(RM_F) $(MAKEFILE_OLD)
796
	-$(NOECHO) $(MV)   $(FIRST_MAKEFILE) $(MAKEFILE_OLD)
797
	- $(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) clean $(DEV_NULL)
798
	$(PERLRUN) Makefile.PL 
799
	$(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <=="
800
	$(NOECHO) $(ECHO) "==> Please rerun the $(MAKE) command.  <=="
801
	$(FALSE)
802
803
804
805
# --- MakeMaker staticmake section:
806
807
# --- MakeMaker makeaperl section ---
808
MAP_TARGET    = perl
809
FULLPERL      = /usr/bin/perl
810
811
$(MAP_TARGET) :: static $(MAKE_APERL_FILE)
812
	$(MAKE) $(USEMAKEFILE) $(MAKE_APERL_FILE) $@
813
814
$(MAKE_APERL_FILE) : $(FIRST_MAKEFILE) pm_to_blib
815
	$(NOECHO) $(ECHO) Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET)
816
	$(NOECHO) $(PERLRUNINST) \
817
		Makefile.PL DIR= \
818
		MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \
819
		MAKEAPERL=1 NORECURS=1 CCCDLFLAGS=
820
821
822
# --- MakeMaker test section:
823
824
TEST_VERBOSE=0
825
TEST_TYPE=test_$(LINKTYPE)
826
TEST_FILE = test.pl
827
TEST_FILES = t/*.t
828
TESTDB_SW = -d
829
830
testdb :: testdb_$(LINKTYPE)
831
832
test :: $(TEST_TYPE) subdirs-test
833
834
subdirs-test ::
835
	$(NOECHO) $(NOOP)
836
837
838
test_dynamic :: pure_all
839
	PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)
840
841
testdb_dynamic :: pure_all
842
	PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE)
843
844
test_ : test_dynamic
845
846
test_static :: test_dynamic
847
testdb_static :: testdb_dynamic
848
849
850
# --- MakeMaker ppd section:
851
# Creates a PPD (Perl Package Description) for a binary distribution.
852
ppd :
853
	$(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="$(VERSION)">' > $(DISTNAME).ppd
854
	$(NOECHO) $(ECHO) '    <ABSTRACT>Simple REST client for HBase</ABSTRACT>' >> $(DISTNAME).ppd
855
	$(NOECHO) $(ECHO) '    <AUTHOR>Bosko Devetak &lt;bosko.devetak@gmail.com&gt;</AUTHOR>' >> $(DISTNAME).ppd
856
	$(NOECHO) $(ECHO) '    <IMPLEMENTATION>' >> $(DISTNAME).ppd
857
	$(NOECHO) $(ECHO) '        <PERLCORE VERSION="5,01,0,0" />' >> $(DISTNAME).ppd
858
	$(NOECHO) $(ECHO) '        <REQUIRE NAME="Data::Dumper" />' >> $(DISTNAME).ppd
859
	$(NOECHO) $(ECHO) '        <REQUIRE NAME="HTTP::Tiny" />' >> $(DISTNAME).ppd
860
	$(NOECHO) $(ECHO) '        <REQUIRE NAME="JSON::XS" />' >> $(DISTNAME).ppd
861
	$(NOECHO) $(ECHO) '        <REQUIRE NAME="MIME::Base64" />' >> $(DISTNAME).ppd
862
	$(NOECHO) $(ECHO) '        <REQUIRE NAME="Time::HiRes" />' >> $(DISTNAME).ppd
863
	$(NOECHO) $(ECHO) '        <REQUIRE NAME="URI::Escape" />' >> $(DISTNAME).ppd
864
	$(NOECHO) $(ECHO) '        <ARCHITECTURE NAME="darwin-thread-multi-2level-5.16" />' >> $(DISTNAME).ppd
865
	$(NOECHO) $(ECHO) '        <CODEBASE HREF="" />' >> $(DISTNAME).ppd
866
	$(NOECHO) $(ECHO) '    </IMPLEMENTATION>' >> $(DISTNAME).ppd
867
	$(NOECHO) $(ECHO) '</SOFTPKG>' >> $(DISTNAME).ppd
868
869
870
# --- MakeMaker pm_to_blib section:
871
872
pm_to_blib : $(FIRST_MAKEFILE) $(TO_INST_PM)
873
	$(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', q[$(PM_FILTER)], '\''$(PERM_DIR)'\'')' -- \
874
	  lib/HBase/JSONRest.pm blib/lib/HBase/JSONRest.pm 
875
	$(NOECHO) $(TOUCH) pm_to_blib
876
877
878
# --- MakeMaker selfdocument section:
879
880
881
# --- MakeMaker postamble section:
882
883
884
# End.

+ 85 - 0
README

@ -0,0 +1,85 @@
1
HBase-JSONRest
2
3
The README is used to introduce the module and provide instructions on
4
how to install the module, any machine dependencies it may have (for
5
example C compilers and installed libraries) and any other information
6
that should be provided before the module is installed.
7
8
A README file is required for CPAN modules since CPAN extracts the README
9
file from a module distribution so that people browsing the archive
10
can use it to get an idea of the module's uses. It is usually a good idea
11
to provide version information here so that people can decide whether
12
fixes for the module are worth downloading.
13
14
15
INSTALLATION
16
17
To install this module, run the following commands:
18
19
	perl Makefile.PL
20
	make
21
	make test
22
	make install
23
24
SUPPORT AND DOCUMENTATION
25
26
After installing, you can find documentation for this module with the
27
perldoc command.
28
29
    perldoc HBase::JSONRest
30
31
You can also look for information at:
32
33
    RT, CPAN's request tracker (report bugs here)
34
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=HBase-JSONRest
35
36
    AnnoCPAN, Annotated CPAN documentation
37
        http://annocpan.org/dist/HBase-JSONRest
38
39
    CPAN Ratings
40
        http://cpanratings.perl.org/d/HBase-JSONRest
41
42
    Search CPAN
43
        http://search.cpan.org/dist/HBase-JSONRest/
44
45
46
LICENSE AND COPYRIGHT
47
48
Copyright (C) 2014 Bosko Devetak
49
50
This program is free software; you can redistribute it and/or modify it
51
under the terms of the the Artistic License (2.0). You may obtain a
52
copy of the full license at:
53
54
L<http://www.perlfoundation.org/artistic_license_2_0>
55
56
Any use, modification, and distribution of the Standard or Modified
57
Versions is governed by this Artistic License. By using, modifying or
58
distributing the Package, you accept this license. Do not use, modify,
59
or distribute the Package, if you do not accept this license.
60
61
If your Modified Version has been derived from a Modified Version made
62
by someone other than you, you are nevertheless required to ensure that
63
your Modified Version complies with the requirements of this license.
64
65
This license does not grant you the right to use any trademark, service
66
mark, tradename, or logo of the Copyright Holder.
67
68
This license includes the non-exclusive, worldwide, free-of-charge
69
patent license to make, have made, use, offer to sell, sell, import and
70
otherwise transfer the Package with respect to any patent claims
71
licensable by the Copyright Holder that are necessarily infringed by the
72
Package. If you institute patent litigation (including a cross-claim or
73
counterclaim) against any party alleging that the Package constitutes
74
direct or contributory patent infringement, then this Artistic License
75
to you shall terminate on the date that such litigation is filed.
76
77
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
78
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
79
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
80
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
81
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
82
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
83
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
84
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
85

+ 18 - 0
ignore.txt

@ -0,0 +1,18 @@
1
Makefile
2
Makefile.old
3
Build
4
Build.bat
5
META.*
6
MYMETA.*
7
.build/
8
_build/
9
cover_db/
10
blib/
11
inc/
12
.lwpcookies
13
.last_cover_stats
14
nytprof.out
15
pod2htm*.tmp
16
pm_to_blib
17
HBase-JSONRest-*
18
HBase-JSONRest-*.tar.gz

+ 13 - 0
t/00-load.t

@ -0,0 +1,13 @@
1
#!perl -T
2
use 5.006;
3
use strict;
4
use warnings FATAL => 'all';
5
use Test::More;
6
7
plan tests => 1;
8
9
BEGIN {
10
    use_ok( 'HBase::JSONRest' ) || print "Bail out!\n";
11
}
12
13
diag( "Testing HBase::JSONRest $HBase::JSONRest::VERSION, Perl $], $^X" );

+ 57 - 0
t/boilerplate.t

@ -0,0 +1,57 @@
1
#!perl -T
2
use 5.006;
3
use strict;
4
use warnings FATAL => 'all';
5
use Test::More;
6
7
plan tests => 3;
8
9
sub not_in_file_ok {
10
    my ($filename, %regex) = @_;
11
    open( my $fh, '<', $filename )
12
        or die "couldn't open $filename for reading: $!";
13
14
    my %violated;
15
16
    while (my $line = <$fh>) {
17
        while (my ($desc, $regex) = each %regex) {
18
            if ($line =~ $regex) {
19
                push @{$violated{$desc}||=[]}, $.;
20
            }
21
        }
22
    }
23
24
    if (%violated) {
25
        fail("$filename contains boilerplate text");
26
        diag "$_ appears on lines @{$violated{$_}}" for keys %violated;
27
    } else {
28
        pass("$filename contains no boilerplate text");
29
    }
30
}
31
32
sub module_boilerplate_ok {
33
    my ($module) = @_;
34
    not_in_file_ok($module =>
35
        'the great new $MODULENAME'   => qr/ - The great new /,
36
        'boilerplate description'     => qr/Quick summary of what the module/,
37
        'stub function definition'    => qr/function[12]/,
38
    );
39
}
40
41
TODO: {
42
  local $TODO = "Need to replace the boilerplate text";
43
44
  not_in_file_ok(README =>
45
    "The README is used..."       => qr/The README is used/,
46
    "'version information here'"  => qr/to provide version information/,
47
  );
48
49
  not_in_file_ok(Changes =>
50
    "placeholder date/time"       => qr(Date/time)
51
  );
52
53
  module_boilerplate_ok('lib/HBase/JSONRest.pm');
54
55
56
}
57

+ 15 - 0
t/manifest.t

@ -0,0 +1,15 @@
1
#!perl -T
2
use 5.006;
3
use strict;
4
use warnings FATAL => 'all';
5
use Test::More;
6
7
unless ( $ENV{RELEASE_TESTING} ) {
8
    plan( skip_all => "Author tests not required for installation" );
9
}
10
11
my $min_tcm = 0.9;
12
eval "use Test::CheckManifest $min_tcm";
13
plan skip_all => "Test::CheckManifest $min_tcm required" if $@;
14
15
ok_manifest();

+ 20 - 0
t/pod-coverage.t

@ -0,0 +1,20 @@
1
#!perl -T
2
use 5.006;
3
use strict;
4
use warnings FATAL => 'all';
5
use Test::More;
6
7
# Ensure a recent version of Test::Pod::Coverage
8
my $min_tpc = 1.08;
9
eval "use Test::Pod::Coverage $min_tpc";
10
plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
11
    if $@;
12
13
# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
14
# but older versions don't recognize some common documentation styles
15
my $min_pc = 0.18;
16
eval "use Pod::Coverage $min_pc";
17
plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
18
    if $@;
19
20
all_pod_coverage_ok();

+ 12 - 0
t/pod.t

@ -0,0 +1,12 @@
1
#!perl -T
2
use 5.006;
3
use strict;
4
use warnings FATAL => 'all';
5
use Test::More;
6
7
# Ensure a recent version of Test::Pod
8
my $min_tp = 1.22;
9
eval "use Test::Pod $min_tp";
10
plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
11
12
all_pod_files_ok();