| #!/usr/bin/make -f |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| # use this file except in compliance with the License. You may obtain a copy of |
| # the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations under |
| # the License. |
| |
| |
| # Drop -fdebug-prefix-map. Its value embeds the dpkg version as |
| # 3.5.2-$sha~resolute. However that then gets passed to rebar's |
| # io:format() as is and ~r is interpreted as an invalid format control |
| # sequence |
| # |
| export DEB_CFLAGS_STRIP = $(shell dpkg-buildflags --get CFLAGS | tr ' ' '\n' | grep '^-fdebug-prefix-map=') |
| export DEB_CXXFLAGS_STRIP = $(shell dpkg-buildflags --get CXXFLAGS | tr ' ' '\n' | grep '^-fdebug-prefix-map=') |
| |
| |
| include debian/sm_ver.mk |
| |
| %: |
| dh $@ --no-automatic-dbgsym |
| |
| override_dh_auto_clean: |
| dh_auto_clean |
| -mv src/mango/src/mango_cursor_text.erl.nocompile src/mango/src/mango_cursor_text.erl |
| -mv src/mango/src/mango_cursor_text.nocompile src/mango/src/mango_cursor_text.erl |
| |
| override_dh_auto_configure: |
| if [ -d "./nouveau" -o -d "./extra/nouveau" ]; then \ |
| ./configure --spidermonkey-version $(SM_VER) --with-nouveau; \ |
| else \ |
| ./configure --spidermonkey-version $(SM_VER); \ |
| fi |
| |
| override_dh_auto_build: |
| dh_auto_build -- release |
| rm -rf rel/couchdb/var/log |
| -rm -rf rel/couchdb/data |
| |
| # skip generating buidinfo files |
| override_dh_genbuildinfo: |
| # skip |
| |
| override_dh_genchanges: |
| # skip |
| |
| # skipping tests until suite is 100% reliable |
| override_dh_auto_test: |
| # skip |
| |
| # instead we rely on dh_install and the couchdb.install file |
| override_dh_auto_install: |
| # skip |
| |
| # do not install man pages |
| override_dh_installman: |
| # skip |
| |
| get-orig-source: |
| uscan --noconf --download-current-version --destdir=. --rename |
| |
| # bintray doesn't support xz uploads :( |
| override_dh_builddeb: |
| dh_builddeb -- -Zgzip |