Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dh7 usage cleanup and polishing #9

Merged
merged 1 commit into from
Feb 18, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debian-npm-ver/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: #PACKAGE#
Section: misc
Priority: optional
Maintainer: #USERNAME# <#EMAIL#>
Build-Depends: nodejs, ${buildDepends}, #BUILD_DEPS#
Build-Depends: nodejs, debhelper (>= 7.0.52), ${buildDepends}, #BUILD_DEPS#
Standards-Version: #POLICY#

Package: #PACKAGE#
Expand Down
17 changes: 4 additions & 13 deletions debian-npm-ver/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,18 @@ NODE_PREFIX_VERSIONED=$(ROOT_VERSIONED)/usr
%:
dh $@

build:
override_dh_auto_build:
cp debian/dirs.in debian/$(PACKAGE_VERSIONED).dirs
dh build --before dh_auto_build
npm build
npm install --dev

override_dh_auto_test:
npm test
dh build --after dh_auto_test

install:
dh install --before dh_auto_install
dh install --after dh_auto_install
dh install --before install
override_dh_auto_install:
npm install --global --prefix $(NODE_PREFIX) .
# move module
mv $(NODE_PREFIX)/lib/node_modules/$(NPM_PACKAGE) $(NODE_PREFIX_VERSIONED)/lib/node/$(NPM_PACKAGE)@$(NPM_VERSION)
# fix removed by `npm install` links
dh_link
dh install --after install

binary: install
dh binary

clean:
-rm -f debian/$(PACKAGE)-*.dirs
Expand Down
2 changes: 1 addition & 1 deletion debian-npm/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: #PACKAGE#
Section: misc
Priority: optional
Maintainer: #USERNAME# <#EMAIL#>
Build-Depends: nodejs, ${buildDepends}, #BUILD_DEPS#
Build-Depends: nodejs, debhelper (>= 7.0.52), ${buildDepends}, #BUILD_DEPS#
Standards-Version: #POLICY#

Package: #PACKAGE#
Expand Down
15 changes: 4 additions & 11 deletions debian-npm/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,15 @@ NODE_PREFIX=debian/${debianName}/usr
%:
dh $@

build:
dh build --before dh_auto_build
override_dh_auto_build:
npm build
npm install --dev

override_dh_auto_test:
npm test
dh build --after dh_auto_test

install:
dh install --before dh_auto_install
dh install --after dh_auto_install
dh install --before install
override_dh_auto_install:
npm install --global --prefix $(NODE_PREFIX) .
dh install --after install

binary: install
dh binary

clean:
${cleanCmd}
Expand Down