Commit 08e90e3b authored by Jérémy Lal's avatar Jérémy Lal

Build nodejs-doc, Closes: #872488.

Thanks to Felipe Sateler.
parent f4ba6eab
......@@ -5,6 +5,8 @@ Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.deb
Uploaders: Jérémy Lal <kapouer@melix.org>,
Jonas Smedegaard <dr@jones.dk>
Build-Depends: @cdbs@
Build-Depends-Indep: node-yamlish,
node-marked
Standards-Version: 4.0.0
Homepage: http://nodejs.org/
Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/nodejs.git
......@@ -33,7 +35,8 @@ Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends}
Provides: ${cdbs:Provides}
Recommends: ${cdbs:Recommends}
Recommends: ${cdbs:Recommends},
nodejs-doc
Replaces: nodejs-legacy
Conflicts: nodejs-legacy
Description: evented I/O for V8 javascript
......@@ -49,3 +52,25 @@ Description: evented I/O for V8 javascript
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
Package: nodejs-doc
Architecture: all
Depends: ${misc:Depends}
Provides: ${cdbs:Provides}
Recommends: ${cdbs:Recommends}, nodejs
Replaces: nodejs (<< 6.11.2~dfsg-3)
Conflicts: nodejs (<< 6.11.2~dfsg-3)
Description: evented I/O for V8 javascript
Node.js is a platform built on Chrome's JavaScript runtime for easily
building fast, scalable network applications. Node.js uses an
event-driven, non-blocking I/O model that makes it lightweight and
efficient, perfect for data-intensive real-time applications that run
across distributed devices.
.
Node.js is bundled with several useful libraries to handle server
tasks:
.
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
.
This package contains documentation for nodejs.
......@@ -24,10 +24,6 @@ bdeps +=, bash-completion, curl, procps, zlib1g-dev, libicu-dev, libc-ares-dev (
bdeps +=, libkvm-dev [kfreebsd-any], gyp (>= 0.1~svn1773)
# Needed for tests
bdeps +=, ca-certificates
# needed by doctool-yaml.patch
bdeps +=, node-yamlish <!stage1>
# needed by doc builder
bdeps +=, node-marked <!stage1>
# Needed by upstream build and binary development package
deps = python, libssl1.0-dev (>= $(ssl-minver))
......@@ -160,24 +156,16 @@ clean::
find . -name "*.pyc" -delete
rm -rf out
ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
# remove *.json files from documentation
binary-install/nodejs::
binary-install/nodejs-doc::
find debian/nodejs/usr/share/doc/nodejs -name *.json -delete
endif
pre-build::
ln -sTf /usr/lib/nodejs node_modules
mkdir -p $(NODE_TEST_DIR)
ifeq ($(filter stage1,$(DEB_BUILD_PROFILES)),)
build/nodejs::
make doc
else
# Stops the stage1 variant from breaking dh_installdocs
build/nodejs::
mkdir -p out/doc/api
endif
build/nodejs-doc::
make doc-only
# Provide dependency hints for reverse dependencies to consume
CDBS_SUGGESTS_nodejs-dev = debhelper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment