Skip to content

Commit 22137ee

Browse files
committed
Updates to build script and README - REMOVED automatic libgit2 installation'
1 parent 3b7df5c commit 22137ee

2 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,18 @@ Building and installing
1111
### Dependancies ###
1212
To use `nodegit2`, you will need to have the `libgit2` shared library in `/usr/local/lib` and the `NodeJS`
1313
framework installed, you will also need `git` installed and accessible from your `PATH` to fetch any `vendor/` addons.
14-
__ You can skip this step and `nodegit2` will automatically fetch and install a fresh copy of `libgit2` for you. __
14+
15+
__ Windows Users: __ Compile through Cygwin, following the Unix instructions below.
16+
__ OS X Users: __ Install using `brew` or `macports`.
17+
__ Linux/Unix Users: __ Install from source or your favorite package manager.
1518

1619
### Using NPM ###
1720

18-
The __ easiest __ way to get `nodegit2` \* Note: If you do not have write privileges to `/usr/local/lib` this will need to be run as superuser \*
21+
The __ easiest __ way to get `nodegit2`
1922

2023
[tim@thinkpad Projects]$ npm install nodegit2
2124

22-
### Linux/Mac OS X/BSD Variants ###
23-
\*If you have `nodegit2` install `libgit2` for you, you must run `make` with a user that has priviledges to write to `/usr/local/lib`\*
24-
25-
#### Install `libgit2` from [http://libgit2.github.com/](http://libgit2.github.com/) ####
26-
27-
[tim@thinkpad Projects]$ cd libgit2
28-
[tim@thinkpad libgit2]$ ./configure
29-
[tim@thinkpad libgit2]$ make
30-
[tim@thinkpad libgit2]$ sudo make install
25+
### Mac OS X/Linux/Unix ###
3126

3227
#### Install `NodeJS` from [http://nodejs.org/](http://nodejs.org/) ####
3328

@@ -36,12 +31,17 @@ The __ easiest __ way to get `nodegit2` \* Note: If you do not have write privil
3631
[tim@thinkpad node-v0.4.0]$ make
3732
[tim@thinkpad node-v0.4.0]$ sudo make install
3833

34+
#### Install `libgit2` from [http://libgit2.github.com/](http://libgit2.github.com/) ####
35+
36+
[tim@thinkpad Projects]$ cd libgit2
37+
[tim@thinkpad libgit2]$ sudo python waf configure build-shared install
38+
3939
#### Install `nodegit2` by cloning source from __GitHub__ and running the `make` and `make install` commands. ####
4040
\* Remember you only need to run make as superuser if you want `nodegit2` to install `libgit2` for you. \*
4141

4242
[tim@thinkpad Projects]$ git clone git@github.com:tbranyen/nodegit2.git
4343
[tim@thinkpad Projects]$ cd nodegit2
44-
[tim@thinkpad nodegit2]$ sudo make
44+
[tim@thinkpad nodegit2]$ make
4545
[tim@thinkpad nodegit2]$ make install
4646

4747
### Windows via Cygiwn ###

‎wscript‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ def configure(conf):
1414

1515
if not conf.check(lib='git2'):
1616
if not conf.check(lib='git2', libpath=['/usr/local/lib'], uselib_store='GIT2'):
17-
Popen('git submodule init vendor/libgit2', shell=True).wait()
18-
Popen('git submodule update vendor/libgit2', shell=True).wait()
19-
os.chdir('vendor/libgit2')
20-
Popen('python waf configure build-shared install', shell=True).wait()
17+
print 'libgit2 is required in the folder /usr/local/lib'
18+
print ''
19+
print 'Run the following commands to install:'
20+
print 'git submodule init vendor/libgit2'
21+
print 'git submodule update vendor/libgit2'
22+
print 'vendor/libgit2'
23+
print 'python waf configure build-shared install'
2124

2225
def build(bld):
2326
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')

0 commit comments

Comments
 (0)